fee_config.go 1.3 KB

12345678910111213141516171819202122
  1. package dao
  2. import "wails-app/internal/global"
  3. type FeeConfig struct {
  4. global.GVA_MODEL
  5. VehicleTypeID uint `gorm:"not null;uniqueIndex" json:"vehicle_type_id"` // 车辆类型ID
  6. VehicleType *VehicleType `gorm:"foreignKey:VehicleTypeID" json:"vehicle_type"` // 车辆类型关联
  7. StartTime int `json:"start_time"` // 起始时间(分钟)
  8. StartFee float64 `json:"start_fee"` // 起始费用
  9. UnitTime int `json:"unit_time"` // 单位时间(分钟)
  10. UnitFee float64 `json:"unit_fee"` // 单位费用
  11. DailyMaxFee float64 `json:"daily_max_fee"` // 每日最高费用
  12. FreeExitMinutes int `gorm:"default:15" json:"free_exit_minutes"` // 缴费后免费离场分钟数(0=不限;存量库经 DDL default 一次性迁移为 15)
  13. IsVIPFree bool `gorm:"default:false" json:"is_vip_free"` // VIP是否免费
  14. VIPDiscount float64 `gorm:"default:1.0" json:"vip_discount"` // VIP折扣
  15. Description string `gorm:"size:200" json:"description"` // 描述
  16. }
  17. func (FeeConfig) TableName() string {
  18. return "fee_config"
  19. }