Files
olons_admin/server/api/admin/portal/portal.go
T
2026-10-10 20:56:17 +08:00

145 lines
4.9 KiB
Go

package portal
import (
"github.com/gogf/gf/v2/frame/g"
"hotgo/internal/model/entity"
"hotgo/internal/model/input/form"
"hotgo/internal/model/input/sysin"
)
type SiteConfigCurrentReq struct {
g.Meta `path:"/siteConfig/current" method:"get" tags:"门户管理" summary:"获取当前站点配置"`
sysin.SiteConfigCurrentInp
}
type SiteConfigCurrentRes struct{ *sysin.SiteConfigCurrentModel }
type SiteConfigHistoryReq struct {
g.Meta `path:"/siteConfig/history" method:"get" tags:"门户管理" summary:"获取站点配置版本"`
sysin.SiteConfigHistoryInp
}
type SiteConfigHistoryRes struct {
form.PageRes
List []*sysin.SiteConfigHistoryModel `json:"list"`
}
type SiteConfigSaveReq struct {
g.Meta `path:"/siteConfig/save" method:"post" tags:"门户管理" summary:"保存并立即生效站点配置"`
sysin.SiteConfigSaveInp
}
type SiteConfigSaveRes struct {
Id uint64 `json:"id"`
}
type SiteConfigSubmitReq struct {
g.Meta `path:"/siteConfig/submit" method:"post" tags:"门户管理" summary:"提交站点配置审批"`
sysin.SiteConfigSubmitInp
}
type SiteConfigSubmitRes struct{ *sysin.PortalApprovalModel }
type SiteConfigPublishReq struct {
g.Meta `path:"/siteConfig/publish" method:"post" tags:"门户管理" summary:"发布已审批站点配置"`
sysin.SiteConfigPublishInp
}
type SiteConfigPublishRes struct{}
type SiteConfigRollbackReq struct {
g.Meta `path:"/siteConfig/rollback" method:"post" tags:"门户管理" summary:"回滚站点配置"`
sysin.SiteConfigRollbackInp
}
type SiteConfigRollbackRes struct {
Id uint64 `json:"id"`
}
type ContentListReq struct {
g.Meta `path:"/portalContent/list" method:"get" tags:"文本管理" summary:"获取文本内容列表"`
sysin.ContentListInp
}
type ContentListRes struct {
form.PageRes
List []*sysin.ContentListModel `json:"list"`
}
type ContentViewReq struct {
g.Meta `path:"/portalContent/view" method:"get" tags:"文本管理" summary:"获取文本内容详情"`
sysin.ContentViewInp
}
type ContentViewRes struct{ *sysin.ContentViewModel }
type ContentEditReq struct {
g.Meta `path:"/portalContent/edit" method:"post" tags:"文本管理" summary:"新增或编辑文本内容"`
sysin.ContentEditInp
}
type ContentEditRes struct {
Id uint64 `json:"id"`
}
type ContentDeleteReq struct {
g.Meta `path:"/portalContent/delete" method:"post" tags:"文本管理" summary:"删除或下线文本内容"`
sysin.ContentDeleteInp
}
type ContentDeleteRes struct{}
type ContentPublishReq struct {
g.Meta `path:"/portalContent/publish" method:"post" tags:"文本管理" summary:"发布文本内容版本"`
sysin.ContentPublishInp
}
type ContentPublishRes struct{}
type ContentOfflineReq struct {
g.Meta `path:"/portalContent/offline" method:"post" tags:"文本管理" summary:"下线文本内容"`
sysin.ContentOfflineInp
}
type ContentOfflineRes struct{}
type BannerListReq struct {
g.Meta `path:"/banner/list" method:"get" tags:"Banner管理" summary:"获取Banner列表"`
sysin.BannerListInp
}
type BannerListRes struct {
form.PageRes
List []*sysin.BannerListModel `json:"list"`
}
type BannerViewReq struct {
g.Meta `path:"/banner/view" method:"get" tags:"Banner管理" summary:"获取Banner详情"`
sysin.BannerViewInp
}
type BannerViewRes struct{ *entity.Banner }
type BannerEditReq struct {
g.Meta `path:"/banner/edit" method:"post" tags:"Banner管理" summary:"新增或编辑Banner"`
sysin.BannerEditInp
}
type BannerEditRes struct {
Id uint64 `json:"id"`
}
type BannerDeleteReq struct {
g.Meta `path:"/banner/delete" method:"post" tags:"Banner管理" summary:"删除或下线Banner"`
sysin.BannerDeleteInp
}
type BannerDeleteRes struct{}
type BannerStatusReq struct {
g.Meta `path:"/banner/status" method:"post" tags:"Banner管理" summary:"更新Banner发布状态"`
sysin.BannerStatusInp
}
type BannerStatusRes struct{}
type ManualProductListReq struct {
g.Meta `path:"/manualProduct/list" method:"get" tags:"手工商城" summary:"获取手工商城商品"`
sysin.ManualProductListInp
}
type ManualProductListRes struct {
form.PageRes
List []*sysin.ManualProductListModel `json:"list"`
}
type ManualProductViewReq struct {
g.Meta `path:"/manualProduct/view" method:"get" tags:"手工商城" summary:"获取手工商城商品详情"`
sysin.ManualProductViewInp
}
type ManualProductViewRes struct{ *sysin.ManualProductViewModel }
type ManualProductEditReq struct {
g.Meta `path:"/manualProduct/edit" method:"post" tags:"手工商城" summary:"新增或编辑手工商城商品"`
sysin.ManualProductEditInp
}
type ManualProductEditRes struct {
Id uint64 `json:"id"`
}
type ManualProductDeleteReq struct {
g.Meta `path:"/manualProduct/delete" method:"post" tags:"手工商城" summary:"删除或下线手工商城商品"`
sysin.ManualProductDeleteInp
}
type ManualProductDeleteRes struct{}
type ManualProductStatusReq struct {
g.Meta `path:"/manualProduct/status" method:"post" tags:"手工商城" summary:"更新手工商城商品状态"`
sysin.ManualProductStatusInp
}
type ManualProductStatusRes struct{}