package http_model type GetWxQRCodeRequest struct { Scene string `json:"scene"` // 需要携带的参数,目前为任务id Page string `json:"page"` // 页面path SelectionId string `json:"selection_id"` // 带货任务ID ProjectId string `json:"project_id"` // 种草任务ID SProjectId int `json:"s_project_id"` // 服务商种草任务ID LocalId string `json:"local_id"` // 本地生活ID SLocalId int `json:"s_local_id"` // 服务商本地生活ID } type WxAccessTokenResponse struct { AccessToken string `json:"access_token"` // 获取到的凭证 ExpiresIn int `json:"expires_in"` // 凭证有效时间,单位:秒。目前是7200秒之内的值。 Errcode int `json:"errcode"` // 错误码 Errmsg string `json:"errmsg"` // 错误信息 } type WxQrCodeRequest struct { Scene string `json:"scene"` Page string `json:"page"` Width int `json:"width,omitempty"` CheckPath bool `json:"check_path,omitempty"` EnvVersion string `json:"env_version,omitempty"` } type WxQrCodeResponse struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` ContentType string `json:"contentType"` Buffer []byte `json:"buffer"` } type GetWxQRCodeData struct { QrCodeBytes []byte `json:"qr_code_bytes"` // 二维码 SelectedName string `json:"selected_name"` // 带货任务名称 TaskMode int `json:"task_mode"` // 任务形式,1、2分别表示悬赏任务、纯佣带货 SampleMode int `json:"sample_mode"` // 领样形式,1、2、3分别表示免费领样、垫付领样、不提供样品 SaleActual int `json:"sale_actual"` // 带货销量条件 PerReward float64 `json:"per_reward"` // 每人可获得悬赏金 ProductPrice float64 `json:"product_price"` // 商品价值 CommissionPrice float64 `json:"commission_price"` // 每单赚-佣金金额 ExclusiveCommission float64 `json:"exclusive_commission"` // 每单赚-佣金比例 MainPhotoUrl string `json:"main_photo_url"` // 商品主图url ProjectType int `json:"project_type"` // 种草任务类型,1代表公开,2代表定向 ProjectName string `json:"project_name"` // 种草任务名称 } func NewGetWxQRCodeRequest() *GetWxQRCodeRequest { return new(GetWxQRCodeRequest) } func NewGetWxQRCodeResponse() *CommonResponse { resp := new(CommonResponse) resp.Data = new(GetWxQRCodeData) return resp }