Files
servicebase/README.md
2025-11-18 18:33:22 +08:00

21 lines
644 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 代码说明
### 目录说明
- pkg通用模块
- errors错误定义
- client三方api客户端封装
- lock内存中的单体服务全局锁
- constant常量定义
- datasource数据库连接其中的fields可以用户res结构体的scan映射
- log日志
- model模型实体定义自动生成
- repo数据库访问方法定义自动生成
- req请求体定义前缀为模块名
- res响应体定义前缀为模块名
- tools通用工具封装
```
git config --global url."git@gitea.ddegame.cn:".insteadOf "https://gitea.ddegame.cn/"
```