@@ -0,0 +1,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"91porn-server/generate/common"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"time"
|
||||
)
|
||||
|
||||
type ImMessage struct {
|
||||
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" comment:"文档id"`
|
||||
GroupId int64 `json:"groupId" bson:"groupId" comment:"群组id"`
|
||||
Uid int64 `json:"uid" bson:"uid" comment:"用户id"`
|
||||
Content string `json:"content" bson:"content" comment:"消息内容"`
|
||||
Image string `json:"image" bson:"image" comment:"图片"`
|
||||
CreatedAt time.Time `json:"createdAt" bson:"createdAt" comment:"创建时间"`
|
||||
}
|
||||
|
||||
func main() {
|
||||
g := common.NewGen("91porn-server", "im消息")
|
||||
g.AppGenerate = true
|
||||
g.Generate(ImMessage{})
|
||||
}
|
||||
Reference in New Issue
Block a user