supplier.go 808 B

12345678910111213141516171819202122232425
  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. CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
  13. UpdateTime time.Time `bson:"updateTime,omitempty" json:"updateTime"`
  14. }
  15. type PriceStrategy struct {
  16. Type string `bson:"type,omitempty" json:"type"`
  17. //same
  18. Param1 float64 `bson:"param1,omitempty" json:"param1"`
  19. Param2 float64 `bson:"param2,omitempty" json:"param2"`
  20. Param3 float64 `bson:"param3,omitempty" json:"param3"`
  21. }