refactor(bill): 重构 bank card 路由删除逻辑以支持 ID 参数

- 修改 DELETE 路由以接收 ID 参数
- 移除了冗余的 HTTP 请求示例文件
- 将 bill 包从主应用中解耦为库模块
- 更新 Cargo.toml 依赖关系以包含 bill 模块
- 升级多个工作区依赖版本
- 移除了已弃用的 docker-watcher 包及相关测试代码
- 修正数据库执行语句引用方式
- 添加 EntityTrait 引用以支持模型操作
This commit is contained in:
hz
2025-12-05 14:31:37 +08:00
parent 770e84d53b
commit bb01f99fc0
14 changed files with 40 additions and 67 deletions

View File

@@ -11,4 +11,5 @@ sea-orm.workspace = true
regex.workspace = true
actix-web.workspace = true
model.workspace = true
hutils.workspace = true
hutils.workspace = true
bill.workspace = true

View File

@@ -1,5 +1,20 @@
mod handler;
mod test;
#[tokio::main]
async fn main() {}
use actix_web::middleware::Logger;
use actix_web::{App, HttpServer, main};
use hutils::logger::init_logger;
#[main]
async fn main() -> std::io::Result<()> {
init_logger();
HttpServer::new(move || {
let app = App::new();
let app = app.configure(bill::router::router_register);
let app = app.wrap(Logger::default());
app
})
.bind("0.0.0.0:8080")?
.run()
.await
}