| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- package request
- import (
- "log-server/model/rentComputer"
- )
- type GetStatisticsComputerRequest struct {
- rentComputer.RentComputer
- PageInfo
- OrderKey string `json:"orderKey"` // 排序
- Desc bool `json:"desc"` // 排序方式:升序false(默认)|降序true
- }
- type ComputerRequest struct {
- Id uint `json:"id"`
- UpdateTime string `json:"update_time"` // 更新时间
- CreateTime string `json:"create_time"` // 创建时间
- PcNum string `json:"pc_num"` //电脑编号
- PcName string `json:"pc_name"` //电脑名称
- ShopId uint `json:"shop_id"` //供应商ID
- RentStart string `json:"rent_start"` //起租时间
- RentDuration int `json:"rent_duration"` //租赁天数
- RentEnd string `json:"rent_end"` //到期时间
- Remark string `json:"remark"` //备注
- TodeskId string `json:"todesk_id"` //todesk账号密码
- TodeskPassword string `json:"todesk_password"` //todesk账号密码
- SunflowerId string `json:"sunflower_id"` //向日葵账号密码
- SunflowerPassword string `json:"sunflower_password"` //向日葵账号密码
- RentPriceUsed float64 `json:"rent_price_used"` //当前租赁期内已产生租金
- IsExpire int `json:"is_expire"` //是否到期 0:否 1:是 2:明日到期
- SetMealId uint `json:"set_meal_id"` //套餐名id
- IsOffShelf int `json:"is_off_shelf"` //是否下架 0:否 1:是
- DirectorName string `json:"director_name"` //具体使用人
- }
- // RenewRentComputerRequest 单个续费
- type RenewRentComputerRequest struct {
- PcId uint `json:"pc_id"` // id
- UpdateTime string `json:"update_time"` // 更新时间
- PcNum string `json:"pc_num"` //电脑编号
- Day int `json:"day"` //续费天数
- RentRenew string `json:"rent_renew"` //续费到期时间
- Remark string `json:"remark"` //备注
- IsExpire int `json:"is_expire"` //是否到期 0:否 1:是 2:明日到期
- }
- // RenewRentComputersRequest 批量续费
- type RenewRentComputersRequest struct {
- RentMessage []RenewRentComputerRequest `json:"rent_message"` //批量续费电脑信息
- }
- type ReplaceNumRentComputerRequest struct {
- PcNumOld string `json:"pc_num_old"`
- PcNumNew string `json:"pc_num_new"`
- ShopId uint `json:"shop_id"` //供应商ID
- }
- type RentingOutRentComputerRequest struct {
- PcId uint `json:"pc_id"` // id
- RentEnd string `json:"rent_end"` //到期时间
- AddList []AddList `json:"add_list"`
- }
- type AddList struct {
- PcNum string `json:"pc_num"`
- AddDay int `json:"add_day"`
- }
|