feat: 新增养成管理后台
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package cultivateflower
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"hotgo/internal/model/input/form"
|
||||
"hotgo/internal/model/input/sysin"
|
||||
)
|
||||
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/cultivate/flowers/list" method:"get" tags:"养成管理" summary:"获取花种列表"`
|
||||
sysin.CultivateFlowerListInp
|
||||
}
|
||||
type ListRes struct {
|
||||
form.PageRes
|
||||
List []*sysin.CultivateFlowerListModel `json:"list"`
|
||||
}
|
||||
type ViewReq struct {
|
||||
g.Meta `path:"/cultivate/flowers/view" method:"get" tags:"养成管理" summary:"获取花种详情"`
|
||||
sysin.CultivateFlowerViewInp
|
||||
}
|
||||
type ViewRes struct {
|
||||
*sysin.CultivateFlowerViewModel
|
||||
}
|
||||
type EditReq struct {
|
||||
g.Meta `path:"/cultivate/flowers/edit" method:"post" tags:"养成管理" summary:"新建或编辑花种及阶段规则"`
|
||||
sysin.CultivateFlowerEditInp
|
||||
}
|
||||
type EditRes struct{}
|
||||
type StatusReq struct {
|
||||
g.Meta `path:"/cultivate/flowers/status" method:"post" tags:"养成管理" summary:"更新花种上下架状态"`
|
||||
sysin.CultivateFlowerStatusInp
|
||||
}
|
||||
type StatusRes struct{}
|
||||
Reference in New Issue
Block a user