FindAllSelectionRequest.go 1.2 KB

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