6
0

repair.go 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package repair
  5. import (
  6. "lims_adapter/model"
  7. "lims_adapter/model/repair/internal"
  8. "github.com/gogf/gf/os/gtime"
  9. )
  10. // Repair is the golang structure for table repair.
  11. type Repair internal.Repair
  12. // Fill with you ideas below.
  13. type RepairListReq struct {
  14. Page *model.Page `json:"page"`
  15. Type string `json:"type"` // 报修类型
  16. Status int `json:"status"` // 报修状态 1 未处理 2 已处理
  17. CreatedByName string `json:"createdByName"` // 创建者用户名
  18. CreatedAtStart *gtime.Time `json:"createdAtStart"` // 创建时间
  19. CreatedAtEnd *gtime.Time `json:"createdAtEnd"` // 创建时间
  20. }
  21. type RepairGetReq struct {
  22. Id int `json:"id"` // 报修Id
  23. }
  24. type RepairGetRsp struct {
  25. Repair
  26. Flow []*RepairFlow `json:"flow"`
  27. Result []*RepairResult `json:"result"`
  28. }
  29. type RepairAddReq struct {
  30. Type string `json:"type" v:"required#请输入报修类型"` // 报修类型
  31. Content string `json:"content" v:"required#请输入报修内容"` // 报修内容
  32. Mobile string `json:"mobile" v:"required|phone#请输入联系方式|请输入正确的手机号"` // 联系方式
  33. Email string `json:"email" v:"required|email#请输入电子邮箱|请输入正确的电子邮箱"` // 邮箱
  34. }
  35. type RepairTransReq struct {
  36. Id int `json:"id" v:"required#请输入报修 Id"` // 报修Id
  37. UserId int `json:"userId" v:"required#请输入转交人"` // 转交人 Id
  38. Note string `json:"note" v:"required#请输入转交原因"` // 转交原因
  39. }
  40. type RepairProcessReq struct {
  41. Id int `json:"id" v:"required#请输入报修 Id"` // 报修Id
  42. Type string `json:"type" v:"required#请输入处理方式"` // 处理方式
  43. Note string `json:"note" v:"required#请输入处理描述"` // 处理描述
  44. }
  45. type RepairReactivateReq struct {
  46. Id int `json:"id" v:"required#请输入报修 Id"` // 报修Id
  47. Note string `json:"note" v:"required#请输入重新激活描述"` // 重新激活描述
  48. }
  49. type RepairProcessorRsp struct {
  50. Id int `json:"id"`
  51. Realname string `json:"name"`
  52. }
  53. type RepairDeleteReq struct {
  54. Id []int `json:"id" v:"required#请输入报修Id"` // 报修Id
  55. }