mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-27 08:09:36 +08:00
[优化]优化命名
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user