rent_computer.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package rentComputer
  2. type RentComputer struct {
  3. Id uint `json:"id"`
  4. UpdateTime string `json:"update_time"` // 更新时间
  5. CreateTime string `json:"create_time"` // 创建时间
  6. PcNum string `json:"pc_num"` //电脑编号
  7. PcName string `json:"pc_name"` //电脑名称
  8. ShopId uint `json:"shop_id"` //供应商ID
  9. RentStart string `json:"rent_start"` //起租时间
  10. RentDuration int `json:"rent_duration"` //租赁天数
  11. RentEnd string `json:"rent_end"` //到期时间
  12. Remark string `json:"remark"` //最近一次日志
  13. TodeskId string `json:"todesk_id"` //todesk账号密码
  14. TodeskPassword string `json:"todesk_password"` //todesk账号密码
  15. SunflowerId string `json:"sunflower_id"` //向日葵账号密码
  16. SunflowerPassword string `json:"sunflower_password"` //向日葵账号密码
  17. RentPriceUsed float64 `json:"rent_price_used"` //当前租赁期内已产生租金
  18. IsExpire int `json:"is_expire"` //是否到期 0:否 1:是 2:明日到期 3:一周内到期
  19. SetMealId uint `json:"set_meal_id"` //套餐名id
  20. IsOffShelf int `json:"is_off_shelf"` //是否下架 0:否 1:是
  21. DirectorName string `json:"director_name"` //具体使用人
  22. }
  23. func (RentComputer) TableName() string {
  24. return "rent_computer"
  25. }
  26. type RentComputerSetMeal struct {
  27. PcNum string `json:"pc_num"` //电脑编号
  28. PcName string `json:"pc_name"` //电脑名称
  29. ShopId uint `json:"shop_id"` //供应商ID
  30. RentStart string `json:"rent_start"` //起租时间
  31. RentDuration int `json:"rent_duration"` //租赁天数
  32. RentEnd string `json:"rent_end"` //到期时间
  33. Remark string `json:"remark"` //备注
  34. IsExpire int `json:"is_expire"` //是否到期 0:否 1:是 2:明日到期 3:一周内到期
  35. SetMealId uint `json:"set_meal_id"` //套餐名id
  36. RentPrice float64 `json:"rent_price"` //价格标准
  37. RentPriceDay float64 `json:"rent_price_day"` //折算天租金
  38. }