settle_account_main.go 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. "github.com/gogf/gf/os/gtime"
  7. internal2 "lims_adapter/model/account/internal"
  8. )
  9. // SettleAccountMain is the golang structure for table settle_account_main.
  10. type SettleAccountMain internal2.SettleAccountMain
  11. // Fill with you ideas below.
  12. type SettleAccountMainReq struct {
  13. MainUserId int `json:"mainUserId"`
  14. BillId string `json:"billId"`
  15. MainUser string `json:"mainUser"`
  16. AttachUserId int `json:"attachUserId"`
  17. AttachUser string `json:"attachUser"`
  18. InstrumentId int `json:"instrumentId"`
  19. InstrumentName string `json:"instrumentName"`
  20. AppointUserId int `json:"appointUserId"`
  21. AppointUser string `json:"appointUser"`
  22. Status string `json:"status"`
  23. SettleStatus string `json:"settleStatus"` // 确认状态
  24. AccountStatus string `json:"accountStatus"`// 结算状态
  25. SettleUser string `json:"settleUser"` // 结算人
  26. VerificationUser string `json:"verificationUser"` // 确认人
  27. FeeType string `json:"feeType"`
  28. AppointStartDate string `json:"appointStartDate"`
  29. AppointEndDate string `json:"appointEndDate"`
  30. VerificationDate string `json:"verificationDate"`
  31. SettleStartDate string `json:"settleStartDate"`
  32. SettleEndDate string `json:"settleEndDate"`
  33. ActualStartDate string `json:"actualStartDate"`
  34. ActualEndDate string `json:"actualEndDate"`
  35. SearchType string `json:"searchType"` // 1 查询全部;2 查询主用户;3或其他 查询从用户
  36. NotInBill string `json:"notInBill"` // 1 未出账单 其他 全部
  37. }
  38. type AccountMainConfirmReq struct {
  39. MainId int `json:"mainId"`
  40. }
  41. type AccountMainAddReq struct {
  42. Main SettleAccountMain `json:"main"`
  43. Details []SettleAccountDetail `json:"details"`
  44. }
  45. type AccountMainCancelReq struct {
  46. AppointId int `json:"appointId"`
  47. IsAuto string `json:"is_auto"`
  48. }
  49. type MainInfo struct {
  50. SettleAccountMain
  51. SignInTime *gtime.Time `orm:"SignInTime" json:"sign_in_time"` // 签到时间
  52. SignOutTime *gtime.Time `orm:"SignOutTime" json:"sign_out_time"` // 签退时间
  53. AppointStatus int `orm:"AppointStatus" json:"appoint_status"` // 预约状态
  54. }
  55. type Instrument struct {
  56. Id int `orm:"Id,primary" json:"id"` //
  57. RoomId int `orm:"RoomId" json:"room_id"` // 所属房间id
  58. Code string `orm:"Code" json:"code"` // 设备编码
  59. Name string `orm:"Name" json:"name"` // 设备名称
  60. InstrImgId int `orm:"InstrImgId" json:"instr_img_id"` // 设备图片id
  61. InstrImgUrl string `orm:"InstrImgUrl" json:"instr_img_url"` // 设备图片Url
  62. SupplierId int `orm:"SupplierId" json:"supplier_id"` // 供应商
  63. FactoryNum string `orm:"FactoryNum" json:"factory_num"` // 出厂编号
  64. Model string `orm:"Model" json:"model"` // 型号
  65. Brand string `orm:"Brand" json:"brand"` // 设备品牌
  66. InstrType int `orm:"InstrType" json:"instr_type"` // 设备类别
  67. Belongs int `orm:"Belongs" json:"belongs"` // 设备所属 1内部 2外部
  68. BelongsName string `orm:"BelongsName" json:"belongs_name"` // 设备所属名称
  69. Status int `orm:"Status" json:"status"` // 设备状态
  70. Location string `orm:"Location" json:"location"` // 设备所在位置
  71. Remark string `orm:"Remark" json:"remark"` // 备注
  72. IsFixedPoint int `orm:"IsFixedPoint" json:"is_fixed_point"` // 参与点检:
  73. CalibrationAt *gtime.Time `orm:"CalibrationAt" json:"calibration_at"` // 校准时间
  74. CalibrationDeadline int `orm:"CalibrationDeadline" json:"calibration_deadline"` // 校准使用期限
  75. CalibrationDeadlineType int `orm:"CalibrationDeadlineType" json:"calibration_deadline_type"` // 期限类型
  76. MaintenCycle int `orm:"MaintenCycle" json:"mainten_cycle"` // 维护周期数
  77. CycleType int `orm:"CycleType" json:"cycle_type"` // 期限类型
  78. HeartbeatAt *gtime.Time `orm:"HeartbeatAt" json:"heartbeat_at"` // 心跳时间
  79. Spec string `orm:"Spec" json:"spec"` // 规格
  80. CreatedAt string `orm:"CreatedAt" json:"created_at"` // 创建时间
  81. CreatedBy int `orm:"CreatedBy" json:"created_by"` // 创建人
  82. UpdatedAt *gtime.Time `orm:"UpdatedAt" json:"updated_at"` // 更新时间
  83. UpdatedBy int `orm:"UpdatedBy" json:"updated_by"` // 更新人
  84. TimeNotification int `orm:"TimeNotification" json:"time_notification"` // 有效期提醒
  85. Sharable int `orm:"Sharable" json:"sharable"` // 是否共享(可预约)
  86. EndTime *gtime.Time `orm:"EndTime" json:"end_time"` // 截止日期
  87. Responsible string `orm:"Responsible" json:"responsible"` // 责任人
  88. MaintenTime *gtime.Time `orm:"MaintenTime" json:"mainten_time"` // 最后维护时间
  89. PurchaseTime *gtime.Time `orm:"PurchaseTime" json:"purchase_time"` // 采购日期
  90. JoinPlan int `orm:"JoinPlan" json:"join_plan"` // 计划
  91. IsAppoint int `orm:"IsAppoint" json:"is_appoint"` // 是否需要预约
  92. IsAppointAvailable string `orm:"IsAppointAvailable" json:"IsAppointAvailable"` // 是否默认可预约 1是 2否
  93. DeletedAt *gtime.Time `orm:"DeletedAt" json:"deleted_at"` // 删除时间
  94. Weekday string `orm:"Weekday" json:"weekday"` // 每周可预约日
  95. BeginAt *gtime.Time `orm:"BeginAt" json:"begin_at"` // 预约开始时段
  96. EndAt *gtime.Time `orm:"EndAt" json:"end_at"` // 预约结束时间
  97. MediaIds string `orm:"MediaIds" json:"media_ids"` // 文件ID
  98. IsOpen int `orm:"IsOpen" json:"is_open"` // 是否开启预约 1开启 2未开启
  99. Instructions string `orm:"Instructions" json:"instructions"` // 使用说明
  100. Terminal string `orm:"Terminal" json:"terminal"` // 信息终端
  101. RoleId int `orm:"RoleId" json:"role_id"` // 自动审批角色
  102. Sort int `json:"sort" orm:"Sort"` // 排序
  103. }