supplier.go 883 B

1234567891011121314151617181920212223242526
  1. package model
  2. import (
  3. "time"
  4. "go.mongodb.org/mongo-driver/bson/primitive"
  5. )
  6. // 供应商
  7. type Supplier struct {
  8. Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
  9. Name string `bson:"name,omitempty" json:"name"`
  10. Address string `bson:"address,omitempty" json:"address"`
  11. Phone string `bson:"phone,omitempty" json:"phone"`
  12. Category string `bson:"category,omitempty" json:"category"`
  13. CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
  14. UpdateTime time.Time `bson:"updateTime,omitempty" json:"updateTime"`
  15. }
  16. type PriceStrategy struct {
  17. Type string `bson:"type,omitempty" json:"type"`
  18. //same
  19. Param1 float64 `bson:"param1,omitempty" json:"param1"`
  20. Param2 float64 `bson:"param2,omitempty" json:"param2"`
  21. Param3 float64 `bson:"param3,omitempty" json:"param3"`
  22. }