76 lines
2.5 KiB
Go
76 lines
2.5 KiB
Go
package dto
|
|
|
|
import "github.com/gogf/gf/v2/frame/g"
|
|
|
|
// ---------- 后台管理 ----------
|
|
|
|
type AdminNodeOptionItem struct {
|
|
Id int64 `json:"id"`
|
|
NodeId int64 `json:"node_id"`
|
|
NodeTitle string `json:"node_title"`
|
|
Text string `json:"text"`
|
|
PropId int64 `json:"prop_id"`
|
|
PropName string `json:"prop_name"`
|
|
Audio string `json:"audio"`
|
|
NextNodeId int64 `json:"next_node_id"`
|
|
NextNodeTitle string `json:"next_node_title"`
|
|
Feedback string `json:"feedback"`
|
|
FeedbackAudio string `json:"feedback_audio"`
|
|
SortOrder int `json:"sort_order"`
|
|
Status int `json:"status"`
|
|
}
|
|
|
|
type AdminNodeOptionListReq struct {
|
|
g.Meta `path:"/node-option/list" method:"get" summary:"分支选项列表(按节点)"`
|
|
NodeId int64 `v:"required|min:1" json:"node_id"`
|
|
}
|
|
|
|
type AdminNodeOptionListRes struct {
|
|
List []*AdminNodeOptionItem `json:"list"`
|
|
}
|
|
|
|
type AdminNodeOptionCreateReq struct {
|
|
g.Meta `path:"/node-option/create" method:"post" summary:"新增分支选项"`
|
|
NodeId int64 `v:"required|min:1" json:"node_id"`
|
|
Text string `v:"required|length:1,128" json:"text"`
|
|
PropId int64 `json:"prop_id"`
|
|
Audio string `json:"audio"`
|
|
NextNodeId int64 `v:"required|min:1" json:"next_node_id"`
|
|
Feedback string `json:"feedback"`
|
|
FeedbackAudio string `json:"feedback_audio"`
|
|
SortOrder int `json:"sort_order"`
|
|
}
|
|
|
|
type AdminNodeOptionCreateRes struct {
|
|
Id int64 `json:"id"`
|
|
}
|
|
|
|
type AdminNodeOptionUpdateReq struct {
|
|
g.Meta `path:"/node-option/update" method:"post" summary:"编辑分支选项"`
|
|
Id int64 `v:"required|min:1" json:"id"`
|
|
NodeId int64 `v:"required|min:1" json:"node_id"`
|
|
Text string `v:"required|length:1,128" json:"text"`
|
|
PropId int64 `json:"prop_id"`
|
|
Audio string `json:"audio"`
|
|
NextNodeId int64 `v:"required|min:1" json:"next_node_id"`
|
|
Feedback string `json:"feedback"`
|
|
FeedbackAudio string `json:"feedback_audio"`
|
|
SortOrder int `json:"sort_order"`
|
|
}
|
|
|
|
type AdminNodeOptionUpdateRes struct{}
|
|
|
|
type AdminNodeOptionDisableReq struct {
|
|
g.Meta `path:"/node-option/disable" method:"post" summary:"下架分支选项"`
|
|
Id int64 `v:"required|min:1" json:"id"`
|
|
}
|
|
|
|
type AdminNodeOptionDisableRes struct{}
|
|
|
|
type AdminNodeOptionEnableReq struct {
|
|
g.Meta `path:"/node-option/enable" method:"post" summary:"上架分支选项"`
|
|
Id int64 `v:"required|min:1" json:"id"`
|
|
}
|
|
|
|
type AdminNodeOptionEnableRes struct{}
|