fix
This commit is contained in:
21
utils/websocket_data/render_data.go
Normal file
21
utils/websocket_data/render_data.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package websocket_data
|
||||
|
||||
// websocket数据交互
|
||||
type DataTransferData struct {
|
||||
T string `json:"t"` //消息类型
|
||||
D interface{} `json:"d"` //传递的消息
|
||||
}
|
||||
type RenderImageReqMsg struct {
|
||||
//websocket接受要云渲染处理的数据
|
||||
RenderId string `json:"render_id"` //渲染id
|
||||
RenderData interface{} `json:"render_data"` //参数数据
|
||||
}
|
||||
type RenderImageRspMsg struct {
|
||||
//websocket发送渲染完的数据
|
||||
RenderId string `json:"render_id"` //渲染id
|
||||
Image string `json:"image"` //渲染结果图片
|
||||
}
|
||||
type ThirdPartyLoginRspMsg struct {
|
||||
//websocket三方登录的通知数据
|
||||
Token string `json:"token"`
|
||||
}
|
||||
Reference in New Issue
Block a user