FindAllSelectionRequest.go 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. package http_model
  2. import "youngee_b_api/model/gorm_model"
  3. type FindAllSelectionRequest struct {
  4. PageSize int64 `json:"page_size"`
  5. PageNum int64 `json:"page_num"`
  6. SelectionStatus int8 `json:"selection_status"` // 选品阶段
  7. Platform int8 `json:"platform"` // 社媒平台
  8. SampleMode int8 `json:"sample_mode"` // 领样形式
  9. ContentType int8 `json:"content_type"` // 内容形式
  10. TaskMode int8 `json:"task_mode"` // 任务形式
  11. SearchValue string `json:"search_value"` // 项目id或项目名称
  12. SubmitAt string `json:"submit_at"` // 提交审核时间
  13. TaskDdl string `json:"task_ddl"` // 提交审核时间
  14. }
  15. type SelectionData struct {
  16. SelectionInfo []*gorm_model.YounggeeSelectionInfo `json:"selection_info"`
  17. Total string `json:"total"`
  18. }
  19. func NewFindAllSelectionRequest() *FindAllSelectionRequest {
  20. return new(FindAllSelectionRequest)
  21. }
  22. func NewFindAllSelectionResponse() *CommonResponse {
  23. resp := new(CommonResponse)
  24. resp.Data = new(SelectionData)
  25. return resp
  26. }