70 lines
2.2 KiB
Go
70 lines
2.2 KiB
Go
package cultivatecontent
|
|
|
|
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/content/list" method:"get" tags:"养成管理" summary:"获取动态或评论审核列表"`
|
|
sysin.CultivateContentListInp
|
|
}
|
|
type ListRes struct {
|
|
form.PageRes
|
|
List []*sysin.CultivateContentListModel `json:"list"`
|
|
}
|
|
type ReviewReq struct {
|
|
g.Meta `path:"/cultivate/content/review" method:"post" tags:"养成管理" summary:"审核或下架动态评论"`
|
|
sysin.CultivateContentReviewInp
|
|
}
|
|
type ReviewRes struct{}
|
|
type BatchReviewReq struct {
|
|
g.Meta `path:"/cultivate/content/batch-review" method:"post" tags:"养成管理" summary:"批量审核或下架动态评论"`
|
|
sysin.CultivateContentBatchReviewInp
|
|
}
|
|
type BatchReviewRes struct {
|
|
*sysin.CultivateContentBatchReviewModel
|
|
}
|
|
|
|
type ViewReq struct {
|
|
g.Meta `path:"/cultivate/content/view" method:"get" tags:"养成管理" summary:"获取内容审核详情"`
|
|
sysin.CultivateContentViewInp
|
|
}
|
|
type ViewRes struct {
|
|
*sysin.CultivateContentViewModel
|
|
}
|
|
type ReportListReq struct {
|
|
g.Meta `path:"/cultivate/reports/list" method:"get" tags:"养成管理" summary:"获取举报列表"`
|
|
sysin.CultivateReportListInp
|
|
}
|
|
type ReportListRes struct {
|
|
form.PageRes
|
|
List []*sysin.CultivateReportListModel `json:"list"`
|
|
}
|
|
type ReportHandleReq struct {
|
|
g.Meta `path:"/cultivate/reports/handle" method:"post" tags:"养成管理" summary:"处理举报"`
|
|
sysin.CultivateReportHandleInp
|
|
}
|
|
type ReportHandleRes struct{}
|
|
type ReportViewReq struct {
|
|
g.Meta `path:"/cultivate/reports/view" method:"get" tags:"养成管理" summary:"获取举报详情"`
|
|
sysin.CultivateReportViewInp
|
|
}
|
|
type ReportViewRes struct {
|
|
*sysin.CultivateReportViewModel
|
|
}
|
|
type LogListReq struct {
|
|
g.Meta `path:"/cultivate/logs/list" method:"get" tags:"养成管理" summary:"获取养成管理操作日志"`
|
|
sysin.CultivateOperationLogListInp
|
|
}
|
|
type LogListRes struct {
|
|
form.PageRes
|
|
List []*sysin.CultivateOperationLogListModel `json:"list"`
|
|
}
|
|
type DashboardReq struct {
|
|
g.Meta `path:"/cultivate/dashboard" method:"get" tags:"养成管理" summary:"获取养成管理统计"`
|
|
sysin.CultivateDashboardInp
|
|
}
|
|
type DashboardRes struct{ *sysin.CultivateDashboardModel }
|