|
|
@@ -6,6 +6,7 @@ import ( |
|
|
|
"applet/app/hdl/comm" |
|
|
|
"applet/app/hdl/institutional_management/egg_energy" |
|
|
|
"applet/app/hdl/institutional_management/public_platoon" |
|
|
|
"applet/app/hdl/setCenter/oss/aliyun" |
|
|
|
"applet/app/mw" |
|
|
|
_ "applet/docs" |
|
|
|
"github.com/gin-gonic/gin" |
|
|
@@ -55,6 +56,18 @@ func route(r *gin.RouterGroup) { |
|
|
|
rComm(r.Group("/comm")) |
|
|
|
r.Use(mw.CheckPermission) // 检测权限 |
|
|
|
rInstitutionalManagement(r.Group("/institutionalManagement")) |
|
|
|
rSettCenter(r.Group("/settCenter")) |
|
|
|
} |
|
|
|
|
|
|
|
func rSettCenter(r *gin.RouterGroup) { //设置中心 |
|
|
|
rOss := r.Group("/oss") //oss设置 |
|
|
|
{ |
|
|
|
rOssAliYun := rOss.Group("/oss") //oss设置 |
|
|
|
{ |
|
|
|
rOssAliYun.GET("/getBasic", aliyun.GetBasic) |
|
|
|
rOssAliYun.POST("/setBasic", aliyun.SetBasic) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func rInstitutionalManagement(r *gin.RouterGroup) { //制度管理 |
|
|
@@ -113,4 +126,5 @@ func rInstitutionalManagement(r *gin.RouterGroup) { //制度管理 |
|
|
|
|
|
|
|
func rComm(r *gin.RouterGroup) { |
|
|
|
r.POST("/getMenuList", comm.MenuList) // 获取菜单栏列表 |
|
|
|
r.POST("/getOssUrl", comm.GetOssUrl) // 获取阿里云上传PutObject所需的签名URL |
|
|
|
} |