refactor(bill): 重构 bank card 路由删除逻辑以支持 ID 参数
- 修改 DELETE 路由以接收 ID 参数 - 移除了冗余的 HTTP 请求示例文件 - 将 bill 包从主应用中解耦为库模块 - 更新 Cargo.toml 依赖关系以包含 bill 模块 - 升级多个工作区依赖版本 - 移除了已弃用的 docker-watcher 包及相关测试代码 - 修正数据库执行语句引用方式 - 添加 EntityTrait 引用以支持模型操作
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user