21 lines
592 B
Go
21 lines
592 B
Go
package main
|
|
|
|
import (
|
|
"91porn-server/generate/common"
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
"time"
|
|
)
|
|
|
|
type ImGroupMember struct {
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" comment:"文档id"`
|
|
Uid int64 `json:"uid" bson:"uid" comment:"uid"`
|
|
Price int64 `json:"price" bson:"price" comment:"进群花费价格"`
|
|
CreatedAt time.Time `json:"createdAt" bson:"createdAt" comment:"创建时间"`
|
|
}
|
|
|
|
func main() {
|
|
g := common.NewGen("91porn-server", "im群组成员")
|
|
g.AppGenerate = true
|
|
g.Generate(ImGroupMember{})
|
|
}
|