This commit is contained in:
laodaming
2023-07-27 16:13:06 +08:00
parent 7297a1ef02
commit 5532cd1a11
5 changed files with 27 additions and 21 deletions

View File

@@ -23,13 +23,15 @@ type DataTransferData {
D interface{} `json:"d"` //传递的消息
}
type RenderImageReqMsg { //websocket接受要云渲染处理的数据
ProductIds []int64 `json:"product_ids"` //产品 id
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
ProductIds []int64 `json:"product_ids"` //产品 id
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
}
type RenderImageRspMsg { //websocket发送渲染完的数据
ProductId int64 `json:"product_id"` //产品 id
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
Image string `json:"image"` //渲染后的图片
ProductId int64 `json:"product_id"` //产品 id
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
Image string `json:"image"` //渲染后的图片
}
//渲染完了通知接口
type RenderNotifyReq {
@@ -38,7 +40,8 @@ type RenderNotifyReq {
Info NotifyInfo `json:"info"`
}
type NotifyInfo {
ProductId int64 `json:"product_id"`
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
Image string `json:"image"`
ProductId int64 `json:"product_id"` //产品id
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
Image string `json:"image"`
}