mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
[优化]优化命名
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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