This commit is contained in:
laodaming
2023-10-27 17:46:24 +08:00
parent cd5990ca62
commit c7ab3419b4
5 changed files with 37 additions and 49 deletions

View File

@@ -2,7 +2,6 @@ package websocket_data
// websocket接受要云渲染处理的数据
type RenderImageReqMsg struct {
RenderId string `json:"render_id"` //渲染id
RequestId string `json:"request_id"`
RenderData RenderData `json:"render_data"` //渲染主要参数
}
@@ -28,7 +27,6 @@ type TemplateTagColor struct {
// websocket发送渲染完的数据
type RenderImageRspMsg struct {
RenderId string `json:"render_id"` //渲染id
RequestId string `json:"request_id"`
Image string `json:"image"` //渲染结果图片
RenderProcessTime RenderProcessTime `json:"render_process_time"` //流程耗时
@@ -40,7 +38,6 @@ type RenderProcessTime struct {
// 合图返回数据
type CombineImageRspMsg struct {
RenderId string `json:"render_id"` //渲染id
RequestId string `json:"request_id"`
CombineImage string `json:"combine_image"` //刀版图
SizeId int64 `json:"size_id"` //尺寸id
@@ -55,13 +52,11 @@ type CombineProcessTime struct {
// 发送到组装渲染阶段信息返回数据
type AssembleRenderDataRspMsg struct {
RenderId string `json:"render_id"` //渲染id
RequestId string `json:"request_id"`
}
// 发送到unity阶段信息返回数据
type ToUnityRspMsg struct {
RenderId string `json:"render_id"` //渲染id
RequestId string `json:"request_id"`
}
@@ -69,7 +64,6 @@ type ToUnityRspMsg struct {
type ToUnityIdStruct struct {
TaskId string `json:"task_id"`
Wid string `json:"wid"`
RenderId string `json:"render_id"`
RequestId string `json:"request_id"`
RenderBeginTime int64 `json:"render_begin_time"`
TemplateTag string `json:"template_tag"`