This commit is contained in:
laodaming
2023-07-27 12:32:03 +08:00
parent 2a06a28ad6
commit 8469253131
5 changed files with 101 additions and 90 deletions

View File

@@ -22,26 +22,30 @@ type DataTransferData {
T string `json:"t"` //消息类型
D interface{} `json:"d"` //传递的消息
}
type RenderImageReqMsg { //websocket接受要云渲染的图片
ProductId int64 `json:"product_id"`
SizeId int64 `json:"size_id"`
TemplateId int64 `json:"template_id"`
type RenderImageReqMsg { //websocket接受要云渲染处理的数据
ProductIds []int64 `json:"product_ids"` //产品 id
MapsSourceId int64 `json:"maps_source_id"` //贴图数据id
TemplateId int64 `json:"template_id"` //模板id
UserId int64 `json:"user_id"` //用户id(这个前端不用传,后台获取)
RenderDesignId int64 `json:"render_design_id"` //渲染设计id
}
type RenderImageRspMsg { //websocket发送渲染完的数据
ProductId int64 `json:"product_id"`
SizeId int64 `json:"size_id"`
TemplateId int64 `json:"template_id"`
Source string `json:"source"`
ProductId int64 `json:"product_id"` //产品 id
MapsSourceId int64 `json:"maps_source_id"` //贴图数据id
TemplateId int64 `json:"template_id"` //模板id
RenderDesignId int64 `json:"render_design_id"` //渲染设计id
RenderSource interface{} `json:"render_source"` //渲染结果数据
}
//渲染完了通知接口
type RenderNotifyReq {
Sign string `json:"sign"`
Time int64 `json:"time"`
NotifyList []NotifyItem `json:"notify_list"`
Sign string `json:"sign"`
Time int64 `json:"time"`
Info NotifyInfo `json:"info"`
}
type NotifyItem {
ProductId int64 `json:"product_id"`
SizeId int64 `json:"size_id"`
TemplateId int64 `json:"template_id"`
Source string `json:"source"`
type NotifyInfo {
ProductId int64 `json:"product_id"`
MapsSourceId int64 `json:"maps_source_id"`
TemplateId int64 `json:"template_id"`
RenderDesignId int64 `json:"render_design_id"` //渲染设计id
RenderSource interface{} `json:"render_source"` //渲染完返回的数据
}