xiaoming_global 140aaf9755 提交 | 4 years ago | |
---|---|---|
.. | ||
admin_service | 5 years ago | |
article_service | 5 years ago | |
district_service | 5 years ago | |
login_service | 4 years ago | |
marketing_tool_service | 5 years ago | |
member_service | 5 years ago | |
micro_service | 4 years ago | |
org_service | 5 years ago | |
role_service | 4 years ago | |
site_service | 4 years ago | |
sms_service | 5 years ago | |
staff_service | 4 years ago | |
tencentim_service | 5 years ago | |
wechat_service | 5 years ago | |
Readme.md | 5 years ago | |
db.go | 4 years ago | |
redis.go | 4 years ago |
将 service 模块化;
通用的 redis 和 db 配置处在最外层;
具体的业务 service 按业务分模块(包);
在具体的模块包里定义 service 方法和 view model;
如果某个模块比较复杂,service 代码很多,则再将其业务细分,拆分为多个文件;