Files
36Wisdom/biz/model/dto/level.go
T

60 lines
2.0 KiB
Go

package dto
import "github.com/gogf/gf/v2/frame/g"
type LevelDetailReq struct {
g.Meta `path:"/level/detail" method:"get" summary:"关卡详情"`
LevelId int64 `v:"required" json:"level_id"`
ChildId int64 `v:"required" json:"child_id"`
}
type ElementVO struct {
Id int64 `json:"id"`
EType int `json:"e_type"`
Name string `json:"name"`
NamePinyin string `json:"name_pinyin"`
Image string `json:"image"`
Audio string `json:"audio"`
Description string `json:"description"`
}
type OptionVO struct {
OptionId int64 `json:"option_id"`
Text string `json:"text"`
TextPinyin string `json:"text_pinyin"`
FeedbackPros string `json:"feedback_pros"`
FeedbackCons string `json:"feedback_cons"`
Audio string `json:"audio"`
Prop *ElementVO `json:"prop"`
}
type NodeVO struct {
NodeId int64 `json:"node_id"`
Title string `json:"title"`
Content string `json:"content"`
ContentPinyin string `json:"content_pinyin"`
Image string `json:"image"`
Audio string `json:"audio"`
Character *ElementVO `json:"character"`
InteractionType int `json:"interaction_type"`
Config string `json:"config"`
Script string `json:"script"`
NodeType int `json:"node_type"`
ResultType int `json:"result_type"`
Options []OptionVO `json:"options"`
}
type LevelDetailRes struct {
LevelId int64 `json:"level_id"`
Title string `json:"title"`
Scene *ElementVO `json:"scene"`
SceneContent string `json:"scene_content"`
SceneContentPinyin string `json:"scene_content_pinyin"`
SceneImage string `json:"scene_image"`
SceneAudio string `json:"scene_audio"`
Entry NodeVO `json:"entry"`
TotalFinals int `json:"total_finals"`
Perfect bool `json:"perfect"`
Stars int `json:"stars"`
}