1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- package model
- import (
- "time"
- "go.mongodb.org/mongo-driver/bson/primitive"
- )
- 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"`
- }
|