fee_config.go 1022 B

1234567891011121314151617181920
  1. package dao
  2. import "server/global"
  3. type FeeConfig struct {
  4. global.GVA_MODEL
  5. VehicleType string `gorm:"size:20;not null;uniqueIndex" json:"vehicle_type"` // 车辆类型
  6. StartTime int `json:"start_time"` // 起始时间(分钟)
  7. StartFee float64 `json:"start_fee"` // 起始费用
  8. UnitTime int `json:"unit_time"` // 单位时间(分钟)
  9. UnitFee float64 `json:"unit_fee"` // 单位费用
  10. DailyMaxFee float64 `json:"daily_max_fee"` // 每日最高费用
  11. IsVIPFree bool `gorm:"default:false" json:"is_vip_free"` // VIP是否免费
  12. VIPDiscount float64 `gorm:"default:1.0" json:"vip_discount"` // VIP折扣
  13. Description string `gorm:"size:200" json:"description"` // 描述
  14. }
  15. func (FeeConfig) TableName() string {
  16. return "fee_config"
  17. }