123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- 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"`
-
- Mats []*PackComponentMat `bson:"mats,omitempty" json:"mats"`
- Remark string `bson:"remark,omitempty" json:"remark"`
-
- TotalPrice float64 `bson:"totalPrice,omitempty" json:"totalPrice"`
- }
- type SupplierPriceVo struct {
- Calc *PriceCalc `bson:"calc,omitempty" json:"calc"`
-
- DeliveryTime *time.Time `bson:"deliveryTime,omitempty" json:"deliveryTime"`
-
- OrderPrice float64 `bson:"orderPrice,omitempty" json:"orderPrice"`
-
- OrderCount float64 `bson:"orderCount,omitempty" json:"orderCount"`
-
- OrderRealPrice float32 `bson:"orderRealPrice,omitempty" json:"orderRealPrice"`
-
- SupplierInfo *Supplier `bson:"supplierInfo,omitempty" json:"supplierInfo"`
- }
- type PackComponentMat struct {
- Id string `bson:"id,omitempty" json:"id"`
-
- Crafts []*PackComponentMatCraft `bson:"crafts,omitempty" json:"crafts"`
- MatInfo *Material `bson:"matInfo,omitempty" json:"matInfo"`
- Supplier *SupplierPriceVo `bson:"supplier,omitempty" json:"supplier"`
- BatchCount int `bson:"batchCount,omitempty" json:"batchCount"`
- BatchSizeWidth int `bson:"batchSizeWidth,omitempty" json:"batchSizeWidth"`
- BatchSizeHeight int `bson:"batchSizeHeight,omitempty" json:"batchSizeHeight"`
- BillId string `bson:"billId,omitempty" json:"billId"`
- Remark string `bson:"remark,omitempty" json:"remark"`
-
- ConfirmCount int `bson:"confirmCount,omitempty" json:"confirmCount"`
- }
- type PackComponentMatCraft struct {
- Id string `bson:"id,omitempty" json:"id"`
-
- Size string `bson:"size,omitempty" json:"size"`
-
- Count int `bson:"count,omitempty" json:"count"`
-
- CraftInfo *Craft `bson:"craftInfo,omitempty" json:"craftInfo"`
- Supplier *SupplierPriceVo `bson:"supplier,omitempty" json:"supplier"`
- BatchCount int `bson:"batchCount,omitempty" json:"batchCount"`
- BatchSizeWidth int `bson:"batchSizeWidth,omitempty" json:"batchSizeWidth"`
- BatchSizeHeight int `bson:"batchSizeHeight,omitempty" json:"batchSizeHeight"`
- BillId string `bson:"billId,omitempty" json:"billId"`
- Remark string `bson:"remark,omitempty" json:"remark"`
-
- ConfirmCount int `bson:"confirmCount,omitempty" json:"confirmCount"`
- }
|