search.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. package model
  2. // ChallSearchCommonRes .
  3. type ChallSearchCommonRes struct {
  4. Page *page `json:"page"`
  5. Result []*ChallSearchCommonData `json:"result"`
  6. }
  7. // ChallSearchCommonData .
  8. type ChallSearchCommonData struct {
  9. ID int64 `json:"id"`
  10. }
  11. // Page .
  12. type page struct {
  13. Num int `json:"num"`
  14. Size int `json:"size"`
  15. Total int `json:"total"`
  16. }
  17. // GroupSearchCommonCond is the common condition model to send group search request
  18. type GroupSearchCommonCond struct {
  19. Fields []string
  20. Business int8
  21. IDs []int64
  22. Oids []string
  23. Tids []int64
  24. States []int8
  25. Mids []int64
  26. Rounds []int64
  27. TypeIDs []int64
  28. FID []int64
  29. RID []int8
  30. EID []int64
  31. TagRounds []int64
  32. ReportMID []int64 // report_mid
  33. AuthorMID []int64 // mid
  34. KW []string
  35. KWFields []string
  36. CTimeFrom string
  37. CTimeTo string
  38. PN int64
  39. PS int64
  40. Order string
  41. Sort string
  42. }
  43. // AppealSearchCond .
  44. type AppealSearchCond struct {
  45. Fields []string
  46. IDs []int64
  47. Rids []int32
  48. Tids []int64
  49. Bid []int
  50. Mids []int64
  51. Oids []int64
  52. AuditState []int8
  53. TransferState []int8
  54. AssignState []int8
  55. Weight int64
  56. Degree []int8
  57. AuditAdmin []int32
  58. TransferAdmin []int32
  59. TypeIDs []int64 // workflow_business table
  60. KW []string
  61. KWFields []string
  62. DTimeFrom string
  63. DTimeTo string
  64. TTimeFrom string
  65. TTimeTo string
  66. CTimeFrom string
  67. CTimeTo string
  68. MTimeFrom string
  69. MTimeTo string
  70. PN int
  71. PS int
  72. Order string
  73. Sort string
  74. }
  75. // AppealSearchRes .
  76. type AppealSearchRes struct {
  77. Page *page `json:"page"`
  78. Result []*AppealSearchData `json:"result"`
  79. }
  80. // AppealSearchData .
  81. type AppealSearchData struct {
  82. ID int64 `json:"id"`
  83. Bid int32 `json:"bid"`
  84. Tid int32 `json:"tid"`
  85. Mid int64 `json:"mid"`
  86. Oid int64 `json:"oid"`
  87. AuditState int8 `json:"audit_state"`
  88. TransferState int8 `json:"transfer_state"`
  89. AssignState int8 `json:"assign_state"`
  90. TransferAdmin int `json:"transfer_adminid"`
  91. Weight int64 `json:"weight"`
  92. }