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