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