package http_model import "time" type GetTaskListRequest struct { PageSize int `json:"page_size"` PageNum int `json:"page_num"` FeeFrom *int `json:"fee_from,omitempty"` Type *int `json:"type,omitempty"` // 查询类型,1、2分别表示达人来源于公海(商家端),服务商 ProjectId string `json:"project_id"` CoopType int `json:"coop_type"` //1未处理,2同意,3拒绝 } type GetTaskListData struct { TaskList []*TaskInfo `json:"task_list"` Total string `json:"total"` } type TaskInfo struct { TaskId string `json:"task_id"` ProjectId string `json:"project_id"` TalentId string `json:"talent_id"` FansNum int `json:"fans_num"` DraftFee float64 `json:"draft_fee"` FeeFrom int `json:"fee_from"` TaskStage int `json:"task_stage"` Voteavg int `json:"vote_avg"` Commentavg int `json:"commit_avg"` CurrentDefaultType int `json:"current_default_type"` From int `json:"from"` //1公海,2服务商 SType int `json:"s_type"` //1个人,2机构 Boperator string `json:"b_operator"` SettleAmount float64 `json:"settle_amount"` CreateAt time.Time `json:"create_time"` } func NewGetTaskListRequest() *GetTaskListRequest { return new(GetTaskListRequest) } func NewGetTaskListResponse() *CommonResponse { resp := new(CommonResponse) resp.Data = new(GetTaskListData) return resp }