6
0

settle_account_detail.go 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. "lims_adapter/model/account/internal"
  8. "lims_adapter/model/equipment"
  9. )
  10. // SettleAccountDetail is the golang structure for table settle_account_detail.
  11. type SettleAccountDetail internal.SettleAccountDetail
  12. // Fill with you ideas below.
  13. // 预约详细信息
  14. type AppointInfo struct {
  15. Appoint *SearchEntity
  16. User *SearchUser
  17. Instr *equipment.SearchEntity
  18. }
  19. // 结算明细前端请求
  20. type AppointInfoReq struct {
  21. Appointment *AppointInfo
  22. SignOutTime *gtime.Time
  23. }
  24. // 结算明细子表信息
  25. // 返回预约列表
  26. type SearchEntity struct {
  27. Id int `orm:"Id,primary" json:"Id"` //
  28. Title string `orm:"Title" json:"Title"` // 标题
  29. ProjectId int `orm:"ProjectId" json:"project_id"` // 科研项目ID
  30. UserId int `orm:"UserId" json:"UserId"` // 预约人ID
  31. UserName string `orm:"UserName" json:"user_name"` // 预约人姓名
  32. CreatedAt *gtime.Time `orm:"CreatedAt" json:"AppointTime"` // 创建时间
  33. DepartmentId int `orm:"DepartmentId" json:"DepartmentId"` // 部门,单位
  34. Status int `orm:"Status" json:"Status"` // 状态
  35. Remark string `orm:"Remark" json:"Remark"` // 备注
  36. RelevanceId int `orm:"RelevanceId" json:"RelevanceId"` // 设备Id
  37. StartTime *gtime.Time `orm:"StartTime" json:"StartTime"` // 开始时间
  38. EndTime *gtime.Time `orm:"EndTime" json:"EndTime"` // 结束时间
  39. Num int `orm:"Num" json:"num"` // 参与人数
  40. RealityUseDuration float64 `orm:"RealityUseDuration" json:"reality_use_duration"` // 实际使用时长
  41. SignInTime *gtime.Time `orm:"SignInTime" json:"sign_in_time"` // 签到时间
  42. SignOutTime *gtime.Time `orm:"SignOutTime" json:"sign_out_time"` // 签退时间
  43. Reason string `orm:"Reason" json:"reason"` // 拒绝原因
  44. UpdateAt *gtime.Time `orm:"UpdatedAt" json:"UpdateAt"` // 更新时间
  45. }
  46. type SearchUser struct {
  47. Id int `orm:"Id,primary" json:"id"`
  48. Uuid string `orm:"Uuid" json:"uuid"`
  49. UserName string `orm:"UserName" json:"user_name"`
  50. Realname string `orm:"Realname" json:"realname"`
  51. Mobile string `orm:"Mobile" json:"mobile"`
  52. DepartmentId string `orm:"DepartmentId" json:"department_id"`
  53. DepartmentName string `orm:"DepartmentName" json:"department_name"`
  54. IsPreferential string ` json:"isPreferential"` // 是否享有设备预约优惠 3有优惠
  55. }
  56. type SettleAccountDetailReq struct {
  57. MainUserId int `json:"mainUserId"`
  58. AttachUserId int `json:"attachUserId"`
  59. Pid int32 `json:"pid"`
  60. }