fusenapi/server_api/websocket.api
laodaming b2460bbc87 fix
2023-08-23 17:35:43 +08:00

40 lines
1.0 KiB
Plaintext

syntax = "v1"
info (
title: "websocket"// TODO: add title
desc: // TODO: add description
author: ""
email: ""
)
import "basic.api"
service websocket {
//websocket数据交互
@handler DataTransferHandler
get /api/websocket/data_transfer(request) returns (response);
//云渲染完了通知接口
@handler RenderNotifyHandler
post /api/websocket/render_notify(RenderNotifyReq) returns (response);
//注册回调
@handler RegisterAccountNotifyHandler
post /api/websocket/register_account_notify(RegisterAccountNotifyReq) returns (response);
//登录回调
@handler LoginNotifyHandler
post /api/websocket/login_notify(LoginNotifyReq) returns (response);
}
//渲染完了通知接口
type RenderNotifyReq {
TaskId string `json:"task_id"` //任务id
UserId int64 `json:"user_id"`
GuestId int64 `json:"guest_id"`
Image string `json:"image"`
}
//注册回调
type RegisterAccountNotifyReq {
Data string `json:"data"` //aes_cbc加密密文
}
//登录回调
type LoginNotifyReq {
Data string `json:"data"` //aes_cbc加密密文
}