feat(bill): 初始化账单服务模块
- 创建账单服务模块并配置路由 - 实现银行卡数据的增删查功能 - 添加日志记录中间件支持 - 更新工作区依赖配置 - 修改HTTP请求示例文件
This commit is contained in:
19
packages/bill/src/main.rs
Normal file
19
packages/bill/src/main.rs
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user