mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-28 10:19:37 +08:00
大屏
This commit is contained in:
@@ -66,5 +66,12 @@ func InitVisualScreenRouter(container *restful.Container) {
|
||||
Metadata(restfulspec.KeyOpenAPITags, tags).
|
||||
Param(ws.PathParameter("screenId", "多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.UpdateScreenStatus)
|
||||
}).
|
||||
Doc("修改状态").
|
||||
Metadata(restfulspec.KeyOpenAPITags, tags).
|
||||
Reads(entity.VisualScreen{}))
|
||||
|
||||
container.Add(ws)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user