27 lines
1.4 KiB
Go
27 lines
1.4 KiB
Go
package main
|
|
|
|
import (
|
|
"91porn-server/generate/common"
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
"time"
|
|
)
|
|
|
|
type ImGroup struct {
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id"`
|
|
GroupId int64 `json:"groupId" bson:"groupId" comment:"群id"` // 群id
|
|
Name string `json:"name" bson:"name" comment:"群组名"` // 群组名
|
|
Cover string `json:"cover" bson:"cover" comment:"封面"`
|
|
Summary string `json:"summary" bson:"summary" comment:"简介"` // 简介
|
|
MemberNum int64 `json:"memberNum" bson:"memberNum" comment:"成员数量(真实)"` // 成员数量(真实)
|
|
FakeMemberNum int64 `json:"fakeMemberNum" bson:"fakeMemberNum" comment:"成员数量(假的)"` // 成员数量(假的)
|
|
Price int64 `bson:"price" json:"price" comment:"加入群聊价格 0-免费"` // 加入群聊价格 0-免费
|
|
CreatedAt time.Time `json:"createdAt" bson:"createdAt" comment:"文档创建时间"` // 文档创建时间
|
|
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt" comment:"文档更新时间"` // 文档更新时间
|
|
}
|
|
|
|
func main() {
|
|
g := common.NewGen("91porn-server", "im群组")
|
|
g.AppGenerate = true
|
|
g.Generate(ImGroup{})
|
|
}
|