123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- 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,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"`
-
-
-
- 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"`
- }
- type Supplier struct {
- Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
- Name string `bson:"name,omitempty" json:"name"`
- Address string `bson:"address,omitempty" json:"address"`
- Phone string `bson:"phone,omitempty" json:"phone"`
- Categorys []string `bson:"categorys,omitempty" json:"categorys"`
- Category string `bson:"category,omitempty" json:"category"`
- CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
- UpdateTime time.Time `bson:"updateTime,omitempty" json:"updateTime"`
- }
|