xiaoming_global 805d67cfe2 权限更改 | 4 years ago | |
---|---|---|
.. | ||
admin_user | 4 years ago | |
article | 5 years ago | |
global | 4 years ago | |
kefu | 5 years ago | |
login | 5 years ago | |
marketing_tool | 5 years ago | |
members | 5 years ago | |
micro | 4 years ago | |
mpwechat | 5 years ago | |
register | 4 years ago | |
role | 5 years ago | |
site | 4 years ago | |
sms | 5 years ago | |
staff | 4 years ago | |
Readme.md | 5 years ago | |
base_api_controller.go | 4 years ago | |
base_controller.go | 5 years ago | |
base_view_controller.go | 5 years ago |
按业务分模块(包);
对于业务比较复杂的模块,再细分业务,拆分为多个控制器;
每个控制器文件提供注册 router 的方法,每个模块建立一个 router_collector.go 文件,定义一个 RegisterRouters 方法,用以收集模块中控制器提供的注册 router 的方法,并在 router.go 中最终调用;