FindAllSelectionRequest.go 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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. }
  16. type SelectionData struct {
  17. SelectionInfo []*gorm_model.YounggeeSelectionInfo `json:"selection_info"`
  18. Total string `json:"total"`
  19. }
  20. func NewFindAllSelectionRequest() *FindAllSelectionRequest {
  21. return new(FindAllSelectionRequest)
  22. }
  23. func NewFindAllSelectionResponse() *CommonResponse {
  24. resp := new(CommonResponse)
  25. resp.Data = new(SelectionData)
  26. return resp
  27. }