feat: 添加毛隅管理模块的后台接口与菜单权限
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user