This commit is contained in:
laodaming
2023-10-11 14:19:22 +08:00
parent 2d897d26d0
commit 2b084bfdc9
3 changed files with 28 additions and 17 deletions

View File

@@ -10,7 +10,8 @@ type DataTransferData struct {
// websocket接受要云渲染处理的数据
type RenderImageReqMsg struct {
RenderId string `json:"render_id"` //渲染id
RenderId string `json:"render_id"` //渲染id
RequestId string `json:"request_id"`
RenderData RenderData `json:"render_data"` //渲染主要参数
}
type RenderData struct {
@@ -35,7 +36,8 @@ type TemplateTagColor struct {
// websocket发送渲染完的数据
type RenderImageRspMsg struct {
RenderId string `json:"render_id"` //渲染id
RenderId string `json:"render_id"` //渲染id
RequestId string `json:"request_id"`
Image string `json:"image"` //渲染结果图片
RenderProcessTime RenderProcessTime `json:"render_process_time"` //流程耗时
}
@@ -46,7 +48,8 @@ type RenderProcessTime struct {
// 合图返回数据
type CombineImageRspMsg struct {
RenderId string `json:"render_id"` //渲染id
RenderId string `json:"render_id"` //渲染id
RequestId string `json:"request_id"`
CombineImage string `json:"combine_image"` //刀版图
SizeId int64 `json:"size_id"` //尺寸id
ModelId int64 `json:"model_id"`
@@ -60,12 +63,14 @@ type CombineProcessTime struct {
// 发送到组装渲染阶段信息返回数据
type AssembleRenderDataRspMsg struct {
RenderId string `json:"render_id"` //渲染id
RenderId string `json:"render_id"` //渲染id
RequestId string `json:"request_id"`
}
// 发送到unity阶段信息返回数据
type ToUnityRspMsg struct {
RenderId string `json:"render_id"` //渲染id
RenderId string `json:"render_id"` //渲染id
RequestId string `json:"request_id"`
}
// 发送到unity结构中id的结构
@@ -73,6 +78,7 @@ 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"`
}