孪生体

This commit is contained in:
XM-GO
2023-06-21 17:42:05 +08:00
parent e24f761ad6
commit 9d659c2516
2 changed files with 2 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ func InitVisualScreenRouter(container *restful.Container) {
Reads(entity.VisualScreen{}))
ws.Route(ws.GET("/twin/data").To(func(request *restful.Request, response *restful.Response) {
restfulx.NewReqCtx(request, response).WithLog("孪生体数据").Handle(s.ScreenTwinData)
restfulx.NewReqCtx(request, response).WithNeedCasbin(false).WithLog("孪生体数据").Handle(s.ScreenTwinData)
}).
Doc("孪生体数据").
Metadata(restfulspec.KeyOpenAPITags, tags))