[优化]优化命名

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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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