mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-29 12:51:26 +08:00
大屏
This commit is contained in:
@@ -77,6 +77,13 @@ func InitRuleChainRouter(container *restful.Container) {
|
||||
Metadata(restfulspec.KeyOpenAPITags, tags).
|
||||
Param(ws.PathParameter("id", "多id 1,2,3").DataType("string")))
|
||||
|
||||
ws.Route(ws.PUT("/changeStatus").To(func(request *restful.Request, response *restful.Response) {
|
||||
restfulx.NewReqCtx(request, response).WithLog("修改状态").Handle(s.UpdateRuleStatus)
|
||||
}).
|
||||
Doc("修改状态").
|
||||
Metadata(restfulspec.KeyOpenAPITags, tags).
|
||||
Reads(entity.VisualScreen{}))
|
||||
|
||||
container.Add(ws)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user