fix
This commit is contained in:
@@ -12,9 +12,12 @@ 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);
|
||||
}
|
||||
|
||||
//websocket数据交互
|
||||
@@ -33,6 +36,9 @@ type RenderImageRspMsg { //websocket发送渲染完的数据
|
||||
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
|
||||
Image string `json:"image"` //渲染后的图片
|
||||
}
|
||||
type ThirdPartyLoginRspMsg { //websocket三方登录的通知数据
|
||||
Token string `json:"token"`
|
||||
}
|
||||
//渲染完了通知接口
|
||||
type RenderNotifyReq {
|
||||
Sign string `json:"sign"`
|
||||
@@ -44,4 +50,14 @@ type NotifyInfo {
|
||||
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
|
||||
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
|
||||
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