fee_config.go 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. package request
  2. type FeeConfigCreate struct {
  3. VehicleType string `json:"vehicle_type" `
  4. StartTime int `json:"start_time"`
  5. StartFee float64 `json:"start_fee"`
  6. UnitTime int `json:"unit_time"`
  7. UnitFee float64 `json:"unit_fee"`
  8. DailyMaxFee float64 `json:"daily_max_fee"`
  9. IsVIPFree bool `json:"is_vip_free"`
  10. VIPDiscount float64 `json:"vip_discount"`
  11. Description string `json:"description"`
  12. }
  13. type FeeConfigUpdate struct {
  14. ID uint `json:"id" `
  15. VehicleType string `json:"vehicle_type" `
  16. StartTime int `json:"start_time"`
  17. StartFee float64 `json:"start_fee"`
  18. UnitTime int `json:"unit_time"`
  19. UnitFee float64 `json:"unit_fee"`
  20. DailyMaxFee float64 `json:"daily_max_fee"`
  21. IsVIPFree bool `json:"is_vip_free"`
  22. VIPDiscount float64 `json:"vip_discount"`
  23. Description string `json:"description"`
  24. }
  25. type FeeConfigQuery struct {
  26. VehicleType string `form:"vehicle_type"`
  27. Page int `form:"page,default=1"`
  28. PageSize int `form:"page_size,default=10"`
  29. }