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
@@ -0,0 +1,82 @@
package maoyucontent
import (
"github.com/gogf/gf/v2/frame/g"
"hotgo/internal/model/input/form"
"hotgo/internal/model/input/sysin"
)
// 毛隅内容治理页面:概览、动态/评论审核、举报、操作日志。
// 页面协议与养成内容治理一致,通过 maoyu-server 内部接口处理毛隅业务。
type MaoyuContentDashboardReq struct {
g.Meta `path:"/maoyu/dashboard" method:"get" tags:"毛隅管理" summary:"获取毛隅管理概览"`
sysin.MaoyuDashboardInp
}
type MaoyuContentDashboardRes struct {
*sysin.MaoyuDashboardModel
}
type MaoyuContentListReq struct {
g.Meta `path:"/maoyu/content/list" method:"get" tags:"毛隅管理" summary:"获取毛隅内容列表"`
*sysin.CultivateContentListInp
}
type MaoyuContentListRes struct {
List []*sysin.CultivateContentListModel `json:"list" dc:"内容列表"`
form.PageRes
}
type MaoyuContentViewReq struct {
g.Meta `path:"/maoyu/content/view" method:"get" tags:"毛隅管理" summary:"获取毛隅内容详情"`
*sysin.CultivateContentViewInp
}
type MaoyuContentViewRes struct {
*sysin.CultivateContentViewModel
}
type MaoyuContentReviewReq struct {
g.Meta `path:"/maoyu/content/review" method:"post" tags:"毛隅管理" summary:"毛隅内容单条审核"`
*sysin.CultivateContentReviewInp
}
type MaoyuContentReviewRes struct{}
type MaoyuContentBatchReviewReq struct {
g.Meta `path:"/maoyu/content/batch-review" method:"post" tags:"毛隅管理" summary:"毛隅内容批量审核"`
*sysin.CultivateContentBatchReviewInp
}
type MaoyuContentBatchReviewRes struct {
*sysin.CultivateContentBatchReviewModel
}
type MaoyuReportListReq struct {
g.Meta `path:"/maoyu/reports/list" method:"get" tags:"毛隅管理" summary:"获取毛隅举报列表"`
*sysin.CultivateReportListInp
}
type MaoyuReportListRes struct {
List []*sysin.CultivateReportListModel `json:"list" dc:"举报列表"`
form.PageRes
}
type MaoyuReportViewReq struct {
g.Meta `path:"/maoyu/reports/view" method:"get" tags:"毛隅管理" summary:"获取毛隅举报详情"`
*sysin.CultivateReportViewInp
}
type MaoyuReportViewRes struct {
*sysin.CultivateReportViewModel
}
type MaoyuReportHandleReq struct {
g.Meta `path:"/maoyu/reports/handle" method:"post" tags:"毛隅管理" summary:"处理毛隅举报"`
*sysin.CultivateReportHandleInp
}
type MaoyuReportHandleRes struct{}
type MaoyuLogListReq struct {
g.Meta `path:"/maoyu/logs/list" method:"get" tags:"毛隅管理" summary:"获取毛隅操作日志列表"`
*sysin.CultivateOperationLogListInp
}
type MaoyuLogListRes struct {
List []*sysin.CultivateOperationLogListModel `json:"list" dc:"操作日志列表"`
form.PageRes
}
+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
}