123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- package model
- import (
- "time"
- "go.mongodb.org/mongo-driver/bson/primitive"
- )
- type ProductPlan struct {
- Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
- Name string `bson:"name,omitempty" json:"name"`
-
- Pack *Pack `bson:"pack,omitempty" json:"pack"`
- Thumbnail string `bson:"thumbnail,omitempty" json:"thumbnail"`
- CreateUser string `bson:"createUser,omitempty" json:"createUser"`
-
- Total int `bson:"total,omitempty" json:"total"`
-
- Status string `bson:"status,omitempty" json:"status"`
-
- TotalPrice *float64 `bson:"totalPrice,omitempty" json:"totalPrice"`
- UpdateTime time.Time `bson:"updteTime,omitempty" json:"updateTime"`
- CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
- }
- type Pack struct {
- Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
- Name string `bson:"name" json:"name"`
- Thumbnail string `bson:"thumbnail" json:"thumbnail"`
-
- CompCounts int `bson:"compCounts" json:"compCounts"`
-
- Designer string `bson:"designer" json:"designer"`
-
- Components []*PackComponent `bson:"components" json:"components"`
- CreateTime time.Time `bson:"createTime" json:"createTime"`
- UpdateTime time.Time `bson:"updateTime" json:"updateTime"`
- }
- type PackComponent struct {
- Id string `bson:"id" json:"id"`
- Name string `bson:"name" json:"name"`
- Thumbnail string `bson:"thumbnail" json:"thumbnail"`
-
- Count int `bson:"count" json:"count"`
-
- Uv string `bson:"uv" json:"uv"`
-
- UvSize string `bson:"uvSize" json:"uvSize"`
-
- Stages []*ComponentStage `bson:"stages" json:"stages"`
- Remark string `bson:"remark" json:"remark"`
-
- TotalPrice float64 `bson:"totalPrice" json:"totalPrice"`
- }
- type ComponentStage struct {
- Id string `bson:"id" json:"id"`
- TypeId primitive.ObjectID `bson:"typeId" json:"typeId"`
-
- OrderPrice float64 `bson:"orderPrice" json:"orderPrice"`
-
- OrderCount int `bson:"orderCount" json:"orderCount"`
-
- IsFix *bool `bson:"isFix" json:"isFix"`
-
-
-
- ConfirmCount int `bson:"confirmCount" json:"confirmCount"`
-
-
- DeliveryTime time.Time `bson:"deliveryTime" json:"deliveryTime"`
-
- SupplierInfo *Supplier `bson:"supplierInfo" json:"supplierInfo"`
- BatchCount *float64 `bson:"batchCount" json:"batchCount"`
- BatchSizeWidth int `bson:"batchSizeWidth" json:"batchSizeWidth"`
- BatchSizeHeight int `bson:"batchSizeHeight" json:"batchSizeHeight"`
- Remark string `bson:"remark" json:"remark"`
- Size string `bson:"size" json:"size"`
- Name string `bson:"name" json:"name"`
- Category string `bson:"category" json:"category"`
- Price float64 `bson:"price" json:"price"`
- Unit string `bson:"unit" json:"unit"`
- Norm string `bson:"norm" json:"norm"`
- CreateTime time.Time `bson:"createTime" json:"createTime"`
- UpdateTime time.Time `bson:"updateTime" json:"updateTime"`
- Type int `bson:"type" json:"type"`
- Group string `bson:"group" json:"group"`
- BillId string `bson:"billId" json:"billId"`
- BillType int `bson:"billType" json:"billType"`
- Sort int `bson:"sort" json:"sort"`
- }
|