[优化]优化命名

This commit is contained in:
PandaX
2024-03-13 14:09:19 +08:00
parent e4dbd843f2
commit 7a25d49846
27 changed files with 27 additions and 27 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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("获取验证码"))