28 lines
1.2 KiB
Go
28 lines
1.2 KiB
Go
package main
|
|
|
|
import (
|
|
"91porn-server/generate/common"
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
"time"
|
|
)
|
|
|
|
type NakedChatOrder struct {
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" comment:"文档id"`
|
|
Nid primitive.ObjectID `json:"nid" bson:"nid" comment:"裸聊id"`
|
|
Uid int64 `json:"uid" bson:"uid" comment:"uid"`
|
|
UserContact string `json:"userContact " bson:"userContact" comment:"用户联系方式"`
|
|
Num int64 `json:"num" bson:"num" comment:"购买数量"`
|
|
Price int64 `json:"price" bson:"price" comment:"购买的单价"`
|
|
Amount int64 `json:"amount" bson:"amount" comment:"总额"`
|
|
Remark string `json:"remark" bson:"remark" comment:"订单备注信息"`
|
|
Status int `json:"status" bson:"status" comment:"0-已下单 1-已完成"`
|
|
CreatedAt time.Time `json:"createdAt" bson:"createdAt" comment:"文档创建时间"` // 文档创建时间
|
|
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt" comment:"文档更新时间"` // 文档更新时间
|
|
}
|
|
|
|
func main() {
|
|
g := common.NewGen("91porn-server", "裸聊订单")
|
|
g.AppGenerate = true
|
|
g.Generate(NakedChatOrder{})
|
|
}
|