37 lines
1021 B
Go
37 lines
1021 B
Go
package dto
|
|
|
|
type SceneNodeItem struct {
|
|
Id int64 `json:"id"`
|
|
LevelId int64 `json:"level_id"`
|
|
Title string `json:"title"`
|
|
CharacterId int64 `json:"character_id"`
|
|
Content string `json:"content"`
|
|
Image string `json:"image"`
|
|
Audio string `json:"audio"`
|
|
NodeType int `json:"node_type"`
|
|
InteractionType int `json:"interaction_type"`
|
|
Config string `json:"config"`
|
|
Script string `json:"script"`
|
|
ResultType int `json:"result_type"`
|
|
IsEntry int `json:"is_entry"`
|
|
SortOrder int `json:"sort_order"`
|
|
Status int `json:"status"`
|
|
}
|
|
|
|
type SceneNodeGetReq struct {
|
|
NodeId int64 `v:"required" json:"node_id"`
|
|
LevelId int64 `v:"required" json:"level_id"`
|
|
}
|
|
|
|
type SceneNodeGetRes struct {
|
|
SceneNode SceneNodeItem `json:"scene_node"`
|
|
}
|
|
|
|
type SceneNodeListReq struct {
|
|
LevelId int64 `v:"required" json:"level_id"`
|
|
}
|
|
|
|
type SceneNodeListRes struct {
|
|
List []SceneNodeItem `json:"list"`
|
|
}
|