mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-28 16:39:37 +08:00
[优化]优化命名
This commit is contained in:
@@ -19,7 +19,7 @@ func InitApiRouter(container *restful.Container) {
|
||||
|
||||
ws := new(restful.WebService)
|
||||
ws.Path("/system/api").Produces(restful.MIME_JSON)
|
||||
tags := []string{"api"}
|
||||
tags := []string{"system", "api"}
|
||||
|
||||
ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) {
|
||||
restfulx.NewReqCtx(request, response).WithLog("获取api分页列表").Handle(s.GetApiList)
|
||||
|
||||
@@ -18,7 +18,7 @@ func InitConfigRouter(container *restful.Container) {
|
||||
|
||||
ws := new(restful.WebService)
|
||||
ws.Path("/system/config").Produces(restful.MIME_JSON)
|
||||
tags := []string{"config"}
|
||||
tags := []string{"system", "config"}
|
||||
|
||||
ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) {
|
||||
restfulx.NewReqCtx(request, response).WithLog("获取配置分页列表").Handle(s.GetConfigList)
|
||||
|
||||
@@ -18,7 +18,7 @@ func InitDictRouter(container *restful.Container) {
|
||||
}
|
||||
ws := new(restful.WebService)
|
||||
ws.Path("/system/dict").Produces(restful.MIME_JSON)
|
||||
tags := []string{"dict"}
|
||||
tags := []string{"system", "字典"}
|
||||
|
||||
ws.Route(ws.GET("/type/list").To(func(request *restful.Request, response *restful.Response) {
|
||||
restfulx.NewReqCtx(request, response).WithLog("获取字典类型分页列表").Handle(s.GetDictTypeList)
|
||||
|
||||
@@ -20,7 +20,7 @@ func InitMenuRouter(container *restful.Container) {
|
||||
}
|
||||
ws := new(restful.WebService)
|
||||
ws.Path("/system/menu").Produces(restful.MIME_JSON)
|
||||
tags := []string{"menu"}
|
||||
tags := []string{"system", "菜单"}
|
||||
|
||||
ws.Route(ws.GET("/menuTreeSelect").To(func(request *restful.Request, response *restful.Response) {
|
||||
restfulx.NewReqCtx(request, response).WithLog("获取菜单树").WithNeedToken(false).WithNeedCasbin(false).Handle(s.GetMenuTreeSelect)
|
||||
|
||||
@@ -18,7 +18,7 @@ func InitNoticeRouter(container *restful.Container) {
|
||||
}
|
||||
ws := new(restful.WebService)
|
||||
ws.Path("/system/notice").Produces(restful.MIME_JSON)
|
||||
tags := []string{"notice"}
|
||||
tags := []string{"system", "通知"}
|
||||
|
||||
ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) {
|
||||
restfulx.NewReqCtx(request, response).WithLog("获取通知分页列表").Handle(s.GetNoticeList)
|
||||
|
||||
@@ -20,7 +20,7 @@ func InitOrganizationRouter(container *restful.Container) {
|
||||
|
||||
ws := new(restful.WebService)
|
||||
ws.Path("/system/organization").Produces(restful.MIME_JSON)
|
||||
tags := []string{"organization"}
|
||||
tags := []string{"system", "组织"}
|
||||
|
||||
ws.Route(ws.GET("/roleOrganizationTreeSelect/{roleId}").To(func(request *restful.Request, response *restful.Response) {
|
||||
restfulx.NewReqCtx(request, response).WithLog("获取角色组织树").Handle(s.GetOrganizationTreeRoleSelect)
|
||||
|
||||
@@ -19,7 +19,7 @@ func InitPostRouter(container *restful.Container) {
|
||||
}
|
||||
ws := new(restful.WebService)
|
||||
ws.Path("/system/post").Produces(restful.MIME_JSON)
|
||||
tags := []string{"post"}
|
||||
tags := []string{"system", "部门"}
|
||||
|
||||
ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) {
|
||||
restfulx.NewReqCtx(request, response).WithLog("获取岗位分页列表").Handle(s.GetPostList)
|
||||
|
||||
@@ -21,7 +21,7 @@ func InitRoleRouter(container *restful.Container) {
|
||||
}
|
||||
ws := new(restful.WebService)
|
||||
ws.Path("/system/role").Produces(restful.MIME_JSON)
|
||||
tags := []string{"role"}
|
||||
tags := []string{"system", "角色"}
|
||||
|
||||
ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) {
|
||||
restfulx.NewReqCtx(request, response).WithLog("获取角色分页列表").Handle(s.GetRoleList)
|
||||
|
||||
@@ -23,7 +23,7 @@ func InitSysTenantRouter(container *restful.Container) {
|
||||
}
|
||||
ws := new(restful.WebService)
|
||||
ws.Path("/system/tenant").Produces(restful.MIME_JSON)
|
||||
tags := []string{"tenant"}
|
||||
tags := []string{"system", "租户"}
|
||||
|
||||
ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) {
|
||||
restfulx.NewReqCtx(request, response).WithLog("获取SysTenant分页列表").Handle(s.GetSysTenantsList)
|
||||
|
||||
@@ -12,7 +12,7 @@ func InitUploadRouter(container *restful.Container) {
|
||||
s := &api.UploadApi{}
|
||||
ws := new(restful.WebService)
|
||||
ws.Path("/upload").Produces(restful.MIME_JSON)
|
||||
tags := []string{"upload"}
|
||||
tags := []string{"system", "文件"}
|
||||
|
||||
ws.Route(ws.POST("/up").To(func(request *restful.Request, response *restful.Response) {
|
||||
restfulx.NewReqCtx(request, response).WithLog("上传图片").Handle(s.UploadImage)
|
||||
|
||||
@@ -27,7 +27,7 @@ func InitUserRouter(container *restful.Container) {
|
||||
}
|
||||
ws := new(restful.WebService)
|
||||
ws.Path("/system/user").Produces(restful.MIME_JSON)
|
||||
tags := []string{"user"}
|
||||
tags := []string{"system", "用户"}
|
||||
|
||||
ws.Route(ws.GET("/getCaptcha").To(s.GenerateCaptcha).Doc("获取验证码"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user