init: hgmj server initial commit

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 16:50:13 +08:00
co-authored by Claude Opus 4.7
commit 625e89c15d
1870 changed files with 254090 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
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"`
}