diff --git a/apps/develop/router/gen.go b/apps/develop/router/gen.go index eb2a9f2..880b316 100644 --- a/apps/develop/router/gen.go +++ b/apps/develop/router/gen.go @@ -18,7 +18,7 @@ func InitGenRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/develop/code/gen").Produces(restful.MIME_JSON) - tags := []string{"codegen"} + tags := []string{"代码生成"} ws.Route(ws.GET("/preview/{tableId}").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取生成代码视图").Handle(s.Preview) diff --git a/apps/develop/router/table.go b/apps/develop/router/table.go index 6a158fb..d6a6696 100644 --- a/apps/develop/router/table.go +++ b/apps/develop/router/table.go @@ -20,7 +20,7 @@ func InitGenTableRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/develop/code/table").Produces(restful.MIME_JSON) - tags := []string{"codetable"} + tags := []string{"代码生成表"} ws.Route(ws.GET("/db/list").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取数据库列表").Handle(s.GetDBTableList) diff --git a/apps/device/router/device.go b/apps/device/router/device.go index a854123..4f13f0d 100644 --- a/apps/device/router/device.go +++ b/apps/device/router/device.go @@ -21,7 +21,7 @@ func InitDeviceRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/device").Produces(restful.MIME_JSON) - tags := []string{"device"} + tags := []string{"设备管理"} ws.Route(ws.GET("/panel").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取DevicePanel").Handle(s.GetDevicePanel) diff --git a/apps/device/router/device_alarm.go b/apps/device/router/device_alarm.go index c43ff59..5b8708a 100644 --- a/apps/device/router/device_alarm.go +++ b/apps/device/router/device_alarm.go @@ -18,7 +18,7 @@ func InitDeviceAlarmRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/device/alarm").Produces(restful.MIME_JSON) - tags := []string{"alarm"} + tags := []string{"设备告警"} ws.Route(ws.GET("/panel").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取面板告警分组").Handle(s.GetDeviceAlarmPanel) diff --git a/apps/device/router/device_cmd.go b/apps/device/router/device_cmd.go index bad9e0d..ec90138 100644 --- a/apps/device/router/device_cmd.go +++ b/apps/device/router/device_cmd.go @@ -19,7 +19,7 @@ func InitDeviceCmdLogRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/device/cmd").Produces(restful.MIME_JSON) - tags := []string{"cmd"} + tags := []string{"设备命令"} ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取命令下发分页列表").Handle(s.GetDeviceCmdLogList) diff --git a/apps/device/router/device_group.go b/apps/device/router/device_group.go index 8c01c58..a8f3568 100644 --- a/apps/device/router/device_group.go +++ b/apps/device/router/device_group.go @@ -17,7 +17,7 @@ func InitDeviceGroupRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/device/group").Produces(restful.MIME_JSON) - tags := []string{"DeviceGroup"} + tags := []string{"设备分组"} ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取DeviceGroup列表").Handle(s.GetDeviceGroupList) diff --git a/apps/device/router/product.go b/apps/device/router/product.go index 92de43f..f9ac2d6 100644 --- a/apps/device/router/product.go +++ b/apps/device/router/product.go @@ -23,7 +23,7 @@ func InitProductRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/device/product").Produces(restful.MIME_JSON) - tags := []string{"product"} + tags := []string{"产品管理"} ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取Product分页列表").Handle(s.GetProductList) diff --git a/apps/device/router/product_category.go b/apps/device/router/product_category.go index 45c3c6e..a1adf02 100644 --- a/apps/device/router/product_category.go +++ b/apps/device/router/product_category.go @@ -17,7 +17,7 @@ func InitProductCategoryRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/device/product/category").Produces(restful.MIME_JSON) - tags := []string{"ProductCategory"} + tags := []string{"产品分类"} ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取ProductCategory列表").Handle(s.GetProductCategoryList) diff --git a/apps/device/router/product_ota.go b/apps/device/router/product_ota.go index fb0c3e2..6077da1 100644 --- a/apps/device/router/product_ota.go +++ b/apps/device/router/product_ota.go @@ -18,7 +18,7 @@ func InitProductOtaRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/device/ota").Produces(restful.MIME_JSON) - tags := []string{"ota"} + tags := []string{"产品OTA"} ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取Ota分页列表").Handle(s.GetProductOtaList) diff --git a/apps/device/router/product_template.go b/apps/device/router/product_template.go index 010b9ed..34862e7 100644 --- a/apps/device/router/product_template.go +++ b/apps/device/router/product_template.go @@ -18,7 +18,7 @@ func InitProductTemplateRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/device/template").Produces(restful.MIME_JSON) - tags := []string{"template"} + tags := []string{"产品参数模板"} ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取Template分页列表").Handle(s.GetProductTemplateList) diff --git a/apps/job/router/job.go b/apps/job/router/job.go index a002890..dce425e 100644 --- a/apps/job/router/job.go +++ b/apps/job/router/job.go @@ -19,7 +19,7 @@ func InitJobRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/job").Produces(restful.MIME_JSON) - tags := []string{"job"} + tags := []string{"任务调度"} ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取Job列表").Handle(s.GetJobList) diff --git a/apps/job/router/job_log.go b/apps/job/router/job_log.go index c596cb7..05eb664 100644 --- a/apps/job/router/job_log.go +++ b/apps/job/router/job_log.go @@ -18,7 +18,7 @@ func InitJobLogRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/job/log").Produces(restful.MIME_JSON) - tags := []string{"JobLog"} + tags := []string{"任务日志"} ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取操作日志列表").Handle(s.GetJobLogList) diff --git a/apps/log/router/login_log.go b/apps/log/router/login_log.go index e4bbfa2..029c603 100644 --- a/apps/log/router/login_log.go +++ b/apps/log/router/login_log.go @@ -19,7 +19,7 @@ func InitLoginLogRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/log/logLogin").Produces(restful.MIME_JSON) - tags := []string{"logLogin"} + tags := []string{"日志信息"} ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取登录日志列表").Handle(s.GetLoginLogList) diff --git a/apps/log/router/oper_log.go b/apps/log/router/oper_log.go index e5ad808..52e8d95 100644 --- a/apps/log/router/oper_log.go +++ b/apps/log/router/oper_log.go @@ -19,7 +19,7 @@ func InitOperLogRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/log/logOper").Produces(restful.MIME_JSON) - tags := []string{"logOper"} + tags := []string{"日志信息"} ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取操作日志列表").Handle(s.GetOperLogList) diff --git a/apps/rule/router/rulechain.go b/apps/rule/router/rulechain.go index 223ebb7..8c8d55e 100644 --- a/apps/rule/router/rulechain.go +++ b/apps/rule/router/rulechain.go @@ -18,7 +18,7 @@ func InitRuleChainRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/rule/chain").Produces(restful.MIME_JSON) - tags := []string{"rulechain"} + tags := []string{"规则链"} ws.Route(ws.GET("/nodeLabels").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithNeedCasbin(false).WithLog("获取所有节点标签").Handle(s.GetNodeLabels) diff --git a/apps/rule/router/rulechain_log.go b/apps/rule/router/rulechain_log.go index ae2e16d..466672a 100644 --- a/apps/rule/router/rulechain_log.go +++ b/apps/rule/router/rulechain_log.go @@ -17,7 +17,7 @@ func InitRuleChainMsgLogRouter(container *restful.Container) { ws := new(restful.WebService) ws.Path("/rule/chain/log").Produces(restful.MIME_JSON) - tags := []string{"RuleChainMsgLog"} + tags := []string{"规则链日志"} ws.Route(ws.GET("/list").To(func(request *restful.Request, response *restful.Response) { restfulx.NewReqCtx(request, response).WithLog("获取规则引擎日志分页列表").Handle(s.GetRuleChainMsgLogList) diff --git a/apps/system/router/api.go b/apps/system/router/api.go index 6188ed0..7aadf6e 100644 --- a/apps/system/router/api.go +++ b/apps/system/router/api.go @@ -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) diff --git a/apps/system/router/config.go b/apps/system/router/config.go index 3673efc..6d8945c 100644 --- a/apps/system/router/config.go +++ b/apps/system/router/config.go @@ -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) diff --git a/apps/system/router/dict.go b/apps/system/router/dict.go index bba7b2d..751c38f 100644 --- a/apps/system/router/dict.go +++ b/apps/system/router/dict.go @@ -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) diff --git a/apps/system/router/menu.go b/apps/system/router/menu.go index e527ea1..6c9a1d2 100644 --- a/apps/system/router/menu.go +++ b/apps/system/router/menu.go @@ -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) diff --git a/apps/system/router/notice.go b/apps/system/router/notice.go index 69d14f8..866301d 100644 --- a/apps/system/router/notice.go +++ b/apps/system/router/notice.go @@ -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) diff --git a/apps/system/router/organization.go b/apps/system/router/organization.go index efa7a17..32e78ed 100644 --- a/apps/system/router/organization.go +++ b/apps/system/router/organization.go @@ -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) diff --git a/apps/system/router/post.go b/apps/system/router/post.go index f4b590a..0441625 100644 --- a/apps/system/router/post.go +++ b/apps/system/router/post.go @@ -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) diff --git a/apps/system/router/role.go b/apps/system/router/role.go index 601d71b..5cc5c40 100644 --- a/apps/system/router/role.go +++ b/apps/system/router/role.go @@ -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) diff --git a/apps/system/router/tenant.go b/apps/system/router/tenant.go index dea9fe2..a406496 100644 --- a/apps/system/router/tenant.go +++ b/apps/system/router/tenant.go @@ -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) diff --git a/apps/system/router/upload.go b/apps/system/router/upload.go index 7a6c2d7..2186350 100644 --- a/apps/system/router/upload.go +++ b/apps/system/router/upload.go @@ -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) diff --git a/apps/system/router/user.go b/apps/system/router/user.go index 2e85194..af288ee 100644 --- a/apps/system/router/user.go +++ b/apps/system/router/user.go @@ -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("获取验证码"))