This commit is contained in:
laodaming
2023-10-11 18:54:14 +08:00
parent afe8b26eee
commit 2e4be2800f
4 changed files with 16 additions and 36 deletions

View File

@@ -11,7 +11,7 @@ import "basic.api"
service websocket {
//websocket数据交互
@handler DataTransferHandler
get /api/websocket/data_transfer(request) returns (response);
get /api/websocket/data_transfer(DataTransferReq) returns (response);
//云渲染完了通知接口
@handler RenderNotifyHandler
post /api/websocket/render_notify(RenderNotifyReq) returns (response);
@@ -20,6 +20,10 @@ service websocket {
post /api/websocket/common_notify(CommonNotifyReq) returns (response);
}
//websocket数据交互[
type DataTransferReq {
Wid string `form:"wid"`
}
//渲染完了通知接口
type RenderNotifyReq {
TaskId string `json:"task_id"`