rent_computer_ledger.go 1.3 KB

12345678910111213141516171819202122232425
  1. package rentComputer
  2. type RentComputerLedger struct {
  3. Id uint `json:"id"`
  4. UpdateTime string `json:"update_time"` // 更新时间
  5. CreateTime string `json:"create_time"` // 创建时间
  6. NewDate string `json:"new_date"` // 台账日期
  7. PcNum string `json:"pc_num"` //电脑编号
  8. PcName string `json:"pc_name"` //电脑名称
  9. ShopId uint `json:"shop_id"` //供应商ID
  10. RentStartThen string `json:"rent_start_then"` //起租时间
  11. RentDurationThen int `json:"rent_duration_then"` //租赁天数
  12. RentEndThen string `json:"rent_end_then"` //到期时间
  13. RentPriceThen float64 `json:"rent_price_then"` //当时的价格标准
  14. RentPriceDayThen float64 `json:"rent_price_day_then"` //折算天租金
  15. RentPriceUsedThen float64 `json:"rent_price_used_then"` //当前租赁期内已产生租金
  16. IsExpire int `json:"is_expire"` //是否到期 0:否 1:是 2:明日到期
  17. SetMealId uint `json:"set_meal_id"` //套餐名id
  18. Remark string `json:"remark"` //备注
  19. }
  20. func (RentComputerLedger) TableName() string {
  21. return "rent_computer_ledger"
  22. }