fix
This commit is contained in:
@@ -16,10 +16,18 @@ type RequestReadImages {
|
||||
}
|
||||
|
||||
service render {
|
||||
// 发送数据到unity渲染
|
||||
@handler ToUnityHandler
|
||||
get /api/render/to-unity(RequestToUnity) returns (response);
|
||||
// 读图像
|
||||
@handler ReadImagesHandler
|
||||
get /api/render/read-images(RequestReadImages) returns (response);
|
||||
//云渲染完了通知接口
|
||||
@handler RenderNotifyHandler
|
||||
post /api/render/render_notify(RenderNotifyReq) returns (response);
|
||||
}
|
||||
|
||||
//渲染完了通知接口
|
||||
type RenderNotifyReq {
|
||||
Sign string `json:"sign"`
|
||||
Time int64 `json:"time"`
|
||||
Info NotifyInfo `json:"info"`
|
||||
}
|
||||
type NotifyInfo {
|
||||
TaskId string `json:"task_id"` //任务id
|
||||
Image string `json:"image"`
|
||||
}
|
||||
@@ -12,31 +12,4 @@ service websocket {
|
||||
//websocket数据交互
|
||||
@handler DataTransferHandler
|
||||
get /api/websocket/data_transfer(request) returns (response);
|
||||
//云渲染完了通知接口
|
||||
@handler RenderNotifyHandler
|
||||
post /api/websocket/render_notify(RenderNotifyReq) returns (response);
|
||||
//第三方登录通知接口
|
||||
@handler ThirdPartyLoginNotifyHandler
|
||||
post /api/websocket/third_party_login_notify(ThirdPartyLoginNotifyReq) returns (response);
|
||||
}
|
||||
|
||||
//渲染完了通知接口
|
||||
type RenderNotifyReq {
|
||||
Sign string `json:"sign"`
|
||||
Time int64 `json:"time"`
|
||||
Info NotifyInfo `json:"info"`
|
||||
}
|
||||
type NotifyInfo {
|
||||
TaskId string `json:"task_id"` //任务id
|
||||
Image string `json:"image"`
|
||||
}
|
||||
//第三方登录通知接口
|
||||
type ThirdPartyLoginNotifyReq {
|
||||
Sign string `json:"sign"`
|
||||
Time int64 `json:"time"`
|
||||
Info ThirdPartyLoginNotify `json:"info"`
|
||||
}
|
||||
type ThirdPartyLoginNotify {
|
||||
WebsocketId uint64 `json:"websocket_id"`
|
||||
Token string `json:"token"`
|
||||
}
|
||||
Reference in New Issue
Block a user