feat: 新增养成管理后台

This commit is contained in:
richjohnrambo
2026-09-19 14:36:30 +08:00
parent 7c8b4d9b7c
commit f6766d3dbd
59 changed files with 3001 additions and 0 deletions
@@ -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{}