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,omitempty" json:"name"`
- Thumbnail string `bson:"thumbnail,omitempty" json:"thumbnail"`
-
- CompCounts int `bson:"compCounts,omitempty" json:"compCounts"`
-
- Designer string `bson:"designer,omitempty" json:"designer"`
-
- Components []*PackComponent `bson:"components,omitempty" json:"components"`
- CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
- UpdateTime time.Time `bson:"updateTime,omitempty" json:"updateTime"`
- }
- type PackComponent struct {
- Id string `bson:"id,omitempty" json:"id"`
- Name string `bson:"name,omitempty" json:"name"`
- Thumbnail string `bson:"thumbnail,omitempty" json:"thumbnail"`
-
- Count int `bson:"count,omitempty" json:"count"`
-
- Uv string `bson:"uv,omitempty" json:"uv"`
-
- UvSize string `bson:"uvSize,omitempty" json:"uvSize"`
-
- Stages []*ComponentStage `bson:"stages,omitempty" json:"stages"`
- Remark string `bson:"remark,omitempty" json:"remark"`
-
- TotalPrice float64 `bson:"totalPrice,omitempty" json:"totalPrice"`
- }
- type ComponentStage struct {
- Id string `bson:"id,omitempty" json:"id"`
- TypeId primitive.ObjectID `bson:"typeId,omitempty" json:"typeId"`
-
- OrderPrice float64 `bson:"orderPrice,omitempty" json:"orderPrice"`
-
- OrderCount int `bson:"orderCount,omitempty" json:"orderCount"`
-
- IsFix *bool `bson:"isFix,omitempty" json:"isFix"`
-
-
-
- ConfirmCount int `bson:"confirmCount,omitempty" json:"confirmCount"`
-
-
- DeliveryTime time.Time `bson:"deliveryTime,omitempty" json:"deliveryTime"`
-
- SupplierInfo *Supplier `bson:"supplierInfo,omitempty" json:"supplierInfo"`
- BatchCount *float64 `bson:"batchCount,omitempty" json:"batchCount"`
- BatchSizeWidth int `bson:"batchSizeWidth,omitempty" json:"batchSizeWidth"`
- BatchSizeHeight int `bson:"batchSizeHeight,omitempty" json:"batchSizeHeight"`
- Remark string `bson:"remark,omitempty" json:"remark"`
- Size string `bson:"size,omitempty" json:"size"`
- Name string `bson:"name,omitempty" json:"name"`
- Category string `bson:"category,omitempty" json:"category"`
- Price float64 `bson:"price,omitempty" json:"price"`
- Unit string `bson:"unit,omitempty" json:"unit"`
- Norm string `bson:"norm,omitempty" json:"norm"`
- CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
- UpdateTime time.Time `bson:"updateTime,omitempty" json:"updateTime"`
- Type int `bson:"type,omitempty" json:"type"`
- Group string `bson:"group,omitempty" json:"group"`
- BillId string `bson:"billId,omitempty" json:"billId"`
- BillType int `bson:"billType,omitempty" json:"billType"`
- }
|