feat(api): 新增客户端添加功能并优化路由加载

- 新增客户端添加 API,实现客户端信息的添加和处理
- 重构路由加载函数,支持递归加载子目录中的路由文件
- 添加日志记录,便于调试和监控
- 优化 HTTP 请求处理,增加错误处理和状态码检查
This commit is contained in:
aixianling
2025-02-26 14:16:26 +08:00
parent 7ab5d7dbbf
commit b958beaf2f
5 changed files with 87 additions and 21 deletions

View File

@@ -11,6 +11,7 @@
"license": "ISC",
"dependencies": {
"axios": "^1.7.9",
"dayjs": "^1.11.13",
"dotenv": "^16.4.7",
"jsonwebtoken": "^9.0.2",
"koa": "^2.15.4",