32 lines
800 B
Go
32 lines
800 B
Go
package dto
|
|
|
|
type NodeOptionItem struct {
|
|
Id int64 `json:"id"`
|
|
NodeId int64 `json:"node_id"`
|
|
Text string `json:"text"`
|
|
PropId int64 `json:"prop_id"`
|
|
Audio string `json:"audio"`
|
|
NextNodeId int64 `json:"next_node_id"`
|
|
Feedback string `json:"feedback"`
|
|
FeedbackAudio string `json:"feedback_audio"`
|
|
SortOrder int `json:"sort_order"`
|
|
Status int `json:"status"`
|
|
}
|
|
|
|
type NodeOptionGetReq struct {
|
|
OptionId int64 `v:"required" json:"option_id"`
|
|
NodeId int64 `v:"required" json:"node_id"`
|
|
}
|
|
|
|
type NodeOptionGetRes struct {
|
|
NodeOption NodeOptionItem `json:"node_option"`
|
|
}
|
|
|
|
type NodeOptionListReq struct {
|
|
NodeId int64 `v:"required" json:"node_id"`
|
|
}
|
|
|
|
type NodeOptionListRes struct {
|
|
List []NodeOptionItem `json:"list"`
|
|
}
|