孪生体

This commit is contained in:
XM-GO
2023-06-20 17:43:57 +08:00
parent 8b5a0206b9
commit e24f761ad6
2 changed files with 15 additions and 0 deletions

View File

@@ -75,5 +75,11 @@ func InitVisualScreenRouter(container *restful.Container) {
Metadata(restfulspec.KeyOpenAPITags, tags).
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)
}).
Doc("孪生体数据").
Metadata(restfulspec.KeyOpenAPITags, tags))
container.Add(ws)
}