feat: 添加毛隅管理模块的后台接口与菜单权限

This commit is contained in:
Austin
2026-10-15 18:20:26 +08:00
parent db2eb62277
commit 64037863ef
9 changed files with 1113 additions and 0 deletions
+82
View File
@@ -0,0 +1,82 @@
package maoyupet
import (
"github.com/gogf/gf/v2/frame/g"
"hotgo/internal/model/input/form"
"hotgo/internal/model/input/sysin"
)
// 毛隅萌宠管理页面:互动动作配置、宠物档案、场景生成任务、互动通知。
type MaoyuActionConfigListReq struct {
g.Meta `path:"/maoyu/action-configs/list" method:"get" tags:"毛隅管理" summary:"获取毛隅动作配置列表"`
*sysin.MaoyuActionConfigListInp
}
type MaoyuActionConfigListRes struct {
List []*sysin.MaoyuActionConfigListModel `json:"list" dc:"动作配置列表"`
form.PageRes
}
type MaoyuActionConfigViewReq struct {
g.Meta `path:"/maoyu/action-configs/view" method:"get" tags:"毛隅管理" summary:"获取毛隅动作配置详情"`
*sysin.MaoyuActionConfigViewInp
}
type MaoyuActionConfigViewRes struct {
*sysin.MaoyuActionConfigViewModel
}
type MaoyuActionConfigEditReq struct {
g.Meta `path:"/maoyu/action-configs/edit" method:"post" tags:"毛隅管理" summary:"新增或编辑毛隅动作配置"`
*sysin.MaoyuActionConfigEditInp
}
type MaoyuActionConfigEditRes struct{}
type MaoyuActionConfigStatusReq struct {
g.Meta `path:"/maoyu/action-configs/status" method:"post" tags:"毛隅管理" summary:"启用/停用毛隅动作配置"`
*sysin.MaoyuActionConfigStatusInp
}
type MaoyuActionConfigStatusRes struct{}
type MaoyuPetListReq struct {
g.Meta `path:"/maoyu/pets/list" method:"get" tags:"毛隅管理" summary:"获取毛隅宠物档案列表"`
*sysin.MaoyuPetListInp
}
type MaoyuPetListRes struct {
List []*sysin.MaoyuPetListModel `json:"list" dc:"宠物档案列表"`
form.PageRes
}
type MaoyuPetViewReq struct {
g.Meta `path:"/maoyu/pets/view" method:"get" tags:"毛隅管理" summary:"获取毛隅宠物档案详情"`
*sysin.MaoyuPetViewInp
}
type MaoyuPetViewRes struct {
*sysin.MaoyuPetViewModel
}
type MaoyuJobListReq struct {
g.Meta `path:"/maoyu/generation-jobs/list" method:"get" tags:"毛隅管理" summary:"获取毛隅生成任务列表"`
*sysin.MaoyuJobListInp
}
type MaoyuJobListRes struct {
List []*sysin.MaoyuJobListModel `json:"list" dc:"生成任务列表"`
form.PageRes
}
type MaoyuJobViewReq struct {
g.Meta `path:"/maoyu/generation-jobs/view" method:"get" tags:"毛隅管理" summary:"获取毛隅生成任务详情"`
*sysin.MaoyuJobViewInp
}
type MaoyuJobViewRes struct {
*sysin.MaoyuJobViewModel
}
type MaoyuNoticeListReq struct {
g.Meta `path:"/maoyu/notices/list" method:"get" tags:"毛隅管理" summary:"获取毛隅互动通知列表"`
*sysin.MaoyuNoticeListInp
}
type MaoyuNoticeListRes struct {
List []*sysin.MaoyuNoticeListModel `json:"list" dc:"互动通知列表"`
form.PageRes
}