rent_computer.go 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package request
  2. import (
  3. "log-server/model/rentComputer"
  4. )
  5. type GetStatisticsComputerRequest struct {
  6. rentComputer.RentComputer
  7. PageInfo
  8. OrderKey string `json:"orderKey"` // 排序
  9. Desc bool `json:"desc"` // 排序方式:升序false(默认)|降序true
  10. }
  11. type ComputerRequest struct {
  12. Id uint `json:"id"`
  13. UpdateTime string `json:"update_time"` // 更新时间
  14. CreateTime string `json:"create_time"` // 创建时间
  15. PcNum string `json:"pc_num"` //电脑编号
  16. PcName string `json:"pc_name"` //电脑名称
  17. ShopId uint `json:"shop_id"` //供应商ID
  18. RentStart string `json:"rent_start"` //起租时间
  19. RentDuration int `json:"rent_duration"` //租赁天数
  20. RentEnd string `json:"rent_end"` //到期时间
  21. Remark string `json:"remark"` //备注
  22. TodeskId string `json:"todesk_id"` //todesk账号密码
  23. TodeskPassword string `json:"todesk_password"` //todesk账号密码
  24. SunflowerId string `json:"sunflower_id"` //向日葵账号密码
  25. SunflowerPassword string `json:"sunflower_password"` //向日葵账号密码
  26. RentPriceUsed float64 `json:"rent_price_used"` //当前租赁期内已产生租金
  27. IsExpire int `json:"is_expire"` //是否到期 0:否 1:是 2:明日到期
  28. SetMealId uint `json:"set_meal_id"` //套餐名id
  29. IsOffShelf int `json:"is_off_shelf"` //是否下架 0:否 1:是
  30. DirectorName string `json:"director_name"` //具体使用人
  31. }
  32. type RenewRentComputerRequest struct {
  33. PcId uint `json:"pc_id"` // id
  34. UpdateTime string `json:"update_time"` // 更新时间
  35. PcNum string `json:"pc_num"` //电脑编号
  36. Day int `json:"day"` //租赁天数
  37. RentRenew string `json:"rent_renew"` //到期时间
  38. Remark string `json:"remark"` //备注
  39. IsExpire int `json:"is_expire"` //是否到期 0:否 1:是 2:明日到期
  40. }
  41. type ReplaceNumRentComputerRequest struct {
  42. PcNumOld string `json:"pc_num_old"`
  43. PcNumNew string `json:"pc_num_new"`
  44. ShopId uint `json:"shop_id"` //供应商ID
  45. }
  46. type RentingOutRentComputerRequest struct {
  47. PcId uint `json:"pc_id"` // id
  48. RentEnd string `json:"rent_end"` //到期时间
  49. AddList []AddList `json:"add_list"`
  50. }
  51. type AddList struct {
  52. PcNum string `json:"pc_num"`
  53. AddDay int `json:"add_day"`
  54. }