This commit is contained in:
XM-GO
2023-04-13 16:39:15 +08:00
parent 078781a240
commit c0d90c080e
12 changed files with 391 additions and 125 deletions

View File

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