feat(bill): 初始化账单服务模块

- 创建账单服务模块并配置路由
- 实现银行卡数据的增删查功能
- 添加日志记录中间件支持
- 更新工作区依赖配置
- 修改HTTP请求示例文件
This commit is contained in:
hz
2025-12-05 11:28:25 +08:00
parent 1eee628b79
commit 770e84d53b
8 changed files with 62 additions and 14 deletions

19
packages/bill/src/main.rs Normal file
View File

@@ -0,0 +1,19 @@
mod router;
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(router::router_register);
let app = app.wrap(Logger::default());
app
})
.bind("0.0.0.0:8080")?
.run()
.await
}