@@ -0,0 +1,85 @@
|
||||
package annoumod
|
||||
|
||||
import "91porn-server/models/commod"
|
||||
|
||||
// ListReq 视频列表请求
|
||||
type ListReq struct {
|
||||
Sort string `form:"sort" json:"sort"`
|
||||
Desc int `form:"desc" json:"desc"`
|
||||
commod.Page
|
||||
}
|
||||
|
||||
// EditInfo 更新的内容
|
||||
type EditInfo struct {
|
||||
Title string `form:"title" json:"title"` //公告标题
|
||||
Cover string `form:"cover" json:"cover"` //公告封面图
|
||||
Content string `form:"content" json:"content"` //公告内容
|
||||
Type int `form:"type" json:"type"` //公告类型,0,外部连接;1,直接安装app
|
||||
Href string `form:"href" json:"href"` //公告跳转地址
|
||||
Active bool `form:"active" json:"active"` //激活状态
|
||||
}
|
||||
|
||||
// EditReq 更新公告
|
||||
type EditReq struct {
|
||||
ID string `form:"id" json:"id"`
|
||||
EditInfo
|
||||
}
|
||||
|
||||
// DeleteReq 删除公告
|
||||
type DeleteReq struct {
|
||||
IDs []string `form:"ids" json:"ids"`
|
||||
}
|
||||
|
||||
// AddReq 增加一条公告
|
||||
type AddReq struct {
|
||||
Title string `form:"title" json:"title"` //公告标题
|
||||
Content string `form:"content" json:"content"` //公告内容
|
||||
Cover string `form:"cover" json:"cover"` //公告封面图
|
||||
Type int `form:"type" json:"type"` //公告类型,0,外部连接;1,直接安装app 3,会员升级公告
|
||||
Href string `form:"href" json:"href"` //公告跳转地址
|
||||
Active bool `form:"active" json:"active"` //激活状态
|
||||
}
|
||||
|
||||
// ListResp 列表应答
|
||||
type ListResp struct {
|
||||
AInfos []*Annou `json:"aInfos"`
|
||||
Total int64 `json:"total"`
|
||||
}
|
||||
|
||||
// OpeResp 操作应答
|
||||
type OpeResp struct {
|
||||
Count int64 `json:"count"`
|
||||
}
|
||||
|
||||
// EditInfo 更新的内容
|
||||
type EditAnnounceInfo struct {
|
||||
Content string `form:"content" json:"content"` //跑马灯内容
|
||||
Type int `form:"type" json:"type"` //跑马灯类型
|
||||
Url string `form:"url" json:"url"` //跳转链接
|
||||
Active bool `form:"active" json:"active"` //激活状态
|
||||
}
|
||||
|
||||
// EditReq 更新公告
|
||||
type EditAnnounceReq struct {
|
||||
ID string `form:"id" json:"id"`
|
||||
EditAnnounceInfo
|
||||
}
|
||||
|
||||
// DeleteReq 删除公告
|
||||
type DeleteAnnounceReq struct {
|
||||
IDs []string `form:"ids" json:"ids"`
|
||||
}
|
||||
|
||||
// AddReq 增加一条公告
|
||||
type AddAnnounceReq struct {
|
||||
Content string `form:"content" json:"content,omitempty" binding:"required"` //跑马灯内容
|
||||
Url string `form:"url" json:"url,omitempty"` //跳转链接
|
||||
Active bool `form:"active" json:"active,omitempty"` //激活状态
|
||||
}
|
||||
|
||||
// 3、走马灯通知
|
||||
// 接口:goldegg/announce
|
||||
// AnnounceInfoReq 走马灯通告信息请求
|
||||
type AnnounceInfoReq struct {
|
||||
commod.Page
|
||||
}
|
||||
Reference in New Issue
Block a user