Files
rootandClaude Opus 5 8679200f41 Initial commit
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 13:57:10 +08:00

23 lines
737 B
Go

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{})
}