From 9131358716317fe8d645a3e314d00338482b61cf Mon Sep 17 00:00:00 2001 From: matresnan <1358168412@qq.com> Date: Tue, 19 Aug 2025 22:46:52 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4Welds=E5=BA=93?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=B9=B6=E7=AE=80=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除对Welds库的依赖及相关数据模型定义以简化项目结构。 --- src/main.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8b5bf1f..0ef72fa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,23 +7,10 @@ use axum::{ use chrono::{prelude::*, Duration, ParseError}; use serde::{Deserialize, Serialize}; use std::{env, ops::Deref, sync::Arc}; -use welds::prelude::*; mod db; mod generate; -#[derive(WeldsModel)] -#[welds(table = "authorize")] -pub struct Authorize { - #[welds(primary_key)] - pub id: i32, - pub project: String, - pub key: String, - pub device_id: String, - pub expire: String, - pub insert_time: String, -} - #[tokio::main] async fn main() -> Result<(), Box> { // 根据操作系统选择数据库路径