feedback.go 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package feedback
  5. import (
  6. "lims_adapter/model"
  7. "lims_adapter/model/feedback/internal"
  8. "github.com/gogf/gf/os/gtime"
  9. )
  10. // Feedback is the golang structure for table feedback.
  11. type Feedback internal.Feedback
  12. // Fill with you ideas below.
  13. type FeedbackListReq 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 FeedbackGetReq struct {
  22. Id int `json:"id"` // 反馈Id
  23. }
  24. type FeedbackGetRsp struct {
  25. Feedback
  26. Flow []*FeedbackFlow `json:"flow"`
  27. Result []*FeedbackResult `json:"result"`
  28. }
  29. type FeedbackAddReq 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 FeedbackTransReq 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 FeedbackProcessReq 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 FeedbackReactivateReq struct {
  46. Id int `json:"id" v:"required#请输入反馈 Id"` // 反馈Id
  47. Note string `json:"note" v:"required#请输入重新激活描述"` // 重新激活描述
  48. }
  49. type FeedbackProcessorRsp struct {
  50. Id int `json:"id"`
  51. Realname string `json:"name"`
  52. }
  53. type FeedbackDeleteReq struct {
  54. Id []int `json:"id" v:"required#请输入反馈Id"` // 反馈Id
  55. }