mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-27 04:59:36 +08:00
设备分配组织
This commit is contained in:
@@ -122,5 +122,12 @@ func InitDeviceRouter(container *restful.Container) {
|
||||
Writes([]entity.VisualClass{}). // on the response
|
||||
Returns(200, "OK", []entity.VisualClass{}))
|
||||
|
||||
ws.Route(ws.GET("/{id}/allot/org").To(func(request *restful.Request, response *restful.Response) {
|
||||
restfulx.NewReqCtx(request, response).WithLog("分配组织").Handle(s.DeviceAllotOrg)
|
||||
}).
|
||||
Doc("分配组织").
|
||||
Metadata(restfulspec.KeyOpenAPITags, tags). // on the response
|
||||
Returns(200, "OK", ""))
|
||||
|
||||
container.Add(ws)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user