package dao import "wails-app/internal/global" type FeeConfig struct { global.GVA_MODEL VehicleTypeID uint `gorm:"not null;uniqueIndex" json:"vehicle_type_id"` // 车辆类型ID VehicleType *VehicleType `gorm:"foreignKey:VehicleTypeID" 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"` // 每日最高费用 FreeExitMinutes int `gorm:"default:15" json:"free_exit_minutes"` // 缴费后免费离场分钟数(0=不限;存量库经 DDL default 一次性迁移为 15) 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" }