package annoumod import "go.mongodb.org/mongo-driver/bson/primitive" // PopReq 公告列表 type PopReq struct { Type int `form:"type" json:"type"` //公告类型,0,2,所有 3会员升级公告 } // AppRes 公告模型 type AnnounInfo struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` //公告id Title string `json:"title" bson:"title"` //公告标题 Content string `json:"content" bson:"content"` //公告内容 Cover string `json:"cover" bson:"cover"` //公告封面图 Href string `json:"href" bson:"href"` //公告跳转地址 Type int `json:"type" bson:"type"` //公告类型 } // MsgListReq 公告列表 type MsgListReq struct { PageNumber int `form:"pageNumber" json:"pageNumber"` PageSize int `form:"pageSize" json:"pageSize"` }