Documentation ¶
Overview ¶
天猫新品创新中心API model
Index ¶
- type AnswerBo
- type ItemBo
- type OpenOptionResult
- type OptionBo
- type OptionItemBo
- type QuestionBo
- type SubQuestionBo
- type SubQuestionItemBo
- type TmallTmicQuestionnaireAnswerPushAPIResponse
- type TmallTmicQuestionnaireAnswerPushRequest
- func (r TmallTmicQuestionnaireAnswerPushRequest) GetApiMethodName() string
- func (r TmallTmicQuestionnaireAnswerPushRequest) GetApiParams() url.Values
- func (r TmallTmicQuestionnaireAnswerPushRequest) GetBiz() string
- func (r TmallTmicQuestionnaireAnswerPushRequest) GetHashCode() string
- func (r TmallTmicQuestionnaireAnswerPushRequest) GetOpenUserId() string
- func (r TmallTmicQuestionnaireAnswerPushRequest) GetRecordId() int64
- func (r TmallTmicQuestionnaireAnswerPushRequest) GetUserAnswerList() []AnswerBo
- func (r TmallTmicQuestionnaireAnswerPushRequest) GetVersion() int64
- func (r *TmallTmicQuestionnaireAnswerPushRequest) SetBiz(biz string) error
- func (r *TmallTmicQuestionnaireAnswerPushRequest) SetHashCode(hashCode string) error
- func (r *TmallTmicQuestionnaireAnswerPushRequest) SetOpenUserId(openUserId string) error
- func (r *TmallTmicQuestionnaireAnswerPushRequest) SetRecordId(recordId int64) error
- func (r *TmallTmicQuestionnaireAnswerPushRequest) SetUserAnswerList(userAnswerList []AnswerBo) error
- func (r *TmallTmicQuestionnaireAnswerPushRequest) SetVersion(version int64) error
- type TmallTmicQuestionnaireAnswerPushResponse
- type TmallTmicQuestionnaireAnswerSubmitAPIResponse
- type TmallTmicQuestionnaireAnswerSubmitRequest
- func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetApiMethodName() string
- func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetApiParams() url.Values
- func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetBiz() string
- func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetHashCode() string
- func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetOpenUserId() string
- func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetRecordId() int64
- func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetUserAnswerList() []AnswerBo
- func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetVersion() int64
- func (r *TmallTmicQuestionnaireAnswerSubmitRequest) SetBiz(biz string) error
- func (r *TmallTmicQuestionnaireAnswerSubmitRequest) SetHashCode(hashCode string) error
- func (r *TmallTmicQuestionnaireAnswerSubmitRequest) SetOpenUserId(openUserId string) error
- func (r *TmallTmicQuestionnaireAnswerSubmitRequest) SetRecordId(recordId int64) error
- func (r *TmallTmicQuestionnaireAnswerSubmitRequest) SetUserAnswerList(userAnswerList []AnswerBo) error
- func (r *TmallTmicQuestionnaireAnswerSubmitRequest) SetVersion(version int64) error
- type TmallTmicQuestionnaireAnswerSubmitResponse
- type TmallTmicQuestionnaireOptionGetAPIResponse
- type TmallTmicQuestionnaireOptionGetRequest
- func (r TmallTmicQuestionnaireOptionGetRequest) GetApiMethodName() string
- func (r TmallTmicQuestionnaireOptionGetRequest) GetApiParams() url.Values
- func (r TmallTmicQuestionnaireOptionGetRequest) GetBiz() string
- func (r TmallTmicQuestionnaireOptionGetRequest) GetExtraParameters() string
- func (r TmallTmicQuestionnaireOptionGetRequest) GetHashCode() string
- func (r TmallTmicQuestionnaireOptionGetRequest) GetOpenUserId() string
- func (r TmallTmicQuestionnaireOptionGetRequest) GetQuestionCode() string
- func (r TmallTmicQuestionnaireOptionGetRequest) GetRecordId() int64
- func (r TmallTmicQuestionnaireOptionGetRequest) GetVersion() int64
- func (r *TmallTmicQuestionnaireOptionGetRequest) SetBiz(biz string) error
- func (r *TmallTmicQuestionnaireOptionGetRequest) SetExtraParameters(extraParameters string) error
- func (r *TmallTmicQuestionnaireOptionGetRequest) SetHashCode(hashCode string) error
- func (r *TmallTmicQuestionnaireOptionGetRequest) SetOpenUserId(openUserId string) error
- func (r *TmallTmicQuestionnaireOptionGetRequest) SetQuestionCode(questionCode string) error
- func (r *TmallTmicQuestionnaireOptionGetRequest) SetRecordId(recordId int64) error
- func (r *TmallTmicQuestionnaireOptionGetRequest) SetVersion(version int64) error
- type TmallTmicQuestionnaireOptionGetResponse
- type TmallTmicQuestionnaireSurveyGetAPIResponse
- type TmallTmicQuestionnaireSurveyGetRequest
- func (r TmallTmicQuestionnaireSurveyGetRequest) GetApiMethodName() string
- func (r TmallTmicQuestionnaireSurveyGetRequest) GetApiParams() url.Values
- func (r TmallTmicQuestionnaireSurveyGetRequest) GetBiz() string
- func (r TmallTmicQuestionnaireSurveyGetRequest) GetHashCode() string
- func (r TmallTmicQuestionnaireSurveyGetRequest) GetOpenUserId() string
- func (r *TmallTmicQuestionnaireSurveyGetRequest) SetBiz(biz string) error
- func (r *TmallTmicQuestionnaireSurveyGetRequest) SetHashCode(hashCode string) error
- func (r *TmallTmicQuestionnaireSurveyGetRequest) SetOpenUserId(openUserId string) error
- type TmallTmicQuestionnaireSurveyGetResponse
- type TmallTmicQuestionnaireSurveyGetResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnswerBo ¶
type AnswerBo struct { // 问题编码,问卷中的问题的唯一编码,从问卷信息接口的应答中获取 QuestionCode string `json:"question_code,omitempty" xml:"question_code,omitempty"` // 子问卷编码,问卷中某些问卷包含子问题,唯一区分子问题,从问卷信息接口的应答中获取 SubQuestionCode string `json:"sub_question_code,omitempty" xml:"sub_question_code,omitempty"` // 选项唯一编码,每道问题的每个选项的唯一区别标识,从问卷信息接口的应答中获取 OptionCode string `json:"option_code,omitempty" xml:"option_code,omitempty"` // 该选项是否被选中,1选中,2未选中 OptionChecked string `json:"option_checked,omitempty" xml:"option_checked,omitempty"` // 文本题的答案,如果是选择题则不填 AnswerValue string `json:"answer_value,omitempty" xml:"answer_value,omitempty"` }
AnswerBo
type ItemBo ¶
type ItemBo struct { // 选项所对应的图片cdn地址 Img string `json:"img,omitempty" xml:"img,omitempty"` // 该选项的唯一编码 Code string `json:"code,omitempty" xml:"code,omitempty"` // 该选项的说明 Value string `json:"value,omitempty" xml:"value,omitempty"` }
ItemBo
type OpenOptionResult ¶
type OpenOptionResult struct { // 问卷记录id,用于区别不同的回答记录,在提交回答的时候作为请求参数 RecordId int64 `json:"record_id,omitempty" xml:"record_id,omitempty"` // 是否还有下一题 HasNextQuestion bool `json:"has_next_question,omitempty" xml:"has_next_question,omitempty"` // 业务错误提示 BizErrInfo string `json:"biz_err_info,omitempty" xml:"biz_err_info,omitempty"` // 业务错误编码 BizErrCode string `json:"biz_err_code,omitempty" xml:"biz_err_code,omitempty"` // 某一问题对象 Question *QuestionBo `json:"question,omitempty" xml:"question,omitempty"` // 业务是否调用成功 BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` // 问卷版本号 Version int64 `json:"version,omitempty" xml:"version,omitempty"` }
OpenOptionResult
type OptionBo ¶
type OptionBo struct { // 是否还有其他选项 HasOther bool `json:"has_other,omitempty" xml:"has_other,omitempty"` // 选项具体值 Items []ItemBo `json:"items,omitempty" xml:"items>item_bo,omitempty"` // optionItemBOList OptionItemBoList []OptionItemBo `json:"option_item_bo_list,omitempty" xml:"option_item_bo_list>option_item_bo,omitempty"` }
OptionBo
type OptionItemBo ¶
type OptionItemBo struct { // code Code string `json:"code,omitempty" xml:"code,omitempty"` // value Value string `json:"value,omitempty" xml:"value,omitempty"` // tip Tip string `json:"tip,omitempty" xml:"tip,omitempty"` // supplement Supplement bool `json:"supplement,omitempty" xml:"supplement,omitempty"` // exclusion Exclusion bool `json:"exclusion,omitempty" xml:"exclusion,omitempty"` // randomGroupNumber RandomGroupNumber int64 `json:"random_group_number,omitempty" xml:"random_group_number,omitempty"` // end End bool `json:"end,omitempty" xml:"end,omitempty"` }
OptionItemBo
type QuestionBo ¶
type QuestionBo struct { // 此问题唯一编码 Code string `json:"code,omitempty" xml:"code,omitempty"` // 问题类型,1-单选,2-多选,3-单行文本,4-多行文本 Type string `json:"type,omitempty" xml:"type,omitempty"` // 该问题下选项对象 Options *OptionBo `json:"options,omitempty" xml:"options,omitempty"` // 问题排序字段 OrderNumber int64 `json:"order_number,omitempty" xml:"order_number,omitempty"` // 问卷描述 Description string `json:"description,omitempty" xml:"description,omitempty"` // 问卷提示 Tip string `json:"tip,omitempty" xml:"tip,omitempty"` // 错误提示 ErrTip string `json:"err_tip,omitempty" xml:"err_tip,omitempty"` // 该题是否必答,true-必答,false-选答 Required bool `json:"required,omitempty" xml:"required,omitempty"` // 选项最大个数,5表示最多5个选项 OptionLimit int64 `json:"option_limit,omitempty" xml:"option_limit,omitempty"` // 文本控件占位符 Placeholder string `json:"placeholder,omitempty" xml:"placeholder,omitempty"` // optionBO OptionBo *OptionBo `json:"option_bo,omitempty" xml:"option_bo,omitempty"` // 子问题 SubQuestionBO *SubQuestionBo `json:"sub_question_b_o,omitempty" xml:"sub_question_b_o,omitempty"` }
QuestionBo
type SubQuestionBo ¶
type SubQuestionBo struct { // 子问题列表 SubQuestionItemBOList []SubQuestionItemBo `json:"sub_question_item_b_o_list,omitempty" xml:"sub_question_item_b_o_list>sub_question_item_bo,omitempty"` }
SubQuestionBo
type SubQuestionItemBo ¶
type SubQuestionItemBo struct { // code Code string `json:"code,omitempty" xml:"code,omitempty"` // 描述 Description string `json:"description,omitempty" xml:"description,omitempty"` // 随机组号 RandomGroupNumber int64 `json:"random_group_number,omitempty" xml:"random_group_number,omitempty"` }
SubQuestionItemBo
type TmallTmicQuestionnaireAnswerPushAPIResponse ¶
type TmallTmicQuestionnaireAnswerPushAPIResponse struct { model.CommonResponse TmallTmicQuestionnaireAnswerPushResponse }
提交单题答案 API返回值 tmall.tmic.questionnaire.answer.push
问卷单题回答的提交
type TmallTmicQuestionnaireAnswerPushRequest ¶
type TmallTmicQuestionnaireAnswerPushRequest struct { model.Params // contains filtered or unexported fields }
提交单题答案 API请求 tmall.tmic.questionnaire.answer.push
问卷单题回答的提交
func NewTmallTmicQuestionnaireAnswerPushRequest ¶
func NewTmallTmicQuestionnaireAnswerPushRequest() *TmallTmicQuestionnaireAnswerPushRequest
初始化TmallTmicQuestionnaireAnswerPushRequest对象
func (TmallTmicQuestionnaireAnswerPushRequest) GetApiMethodName ¶
func (r TmallTmicQuestionnaireAnswerPushRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TmallTmicQuestionnaireAnswerPushRequest) GetApiParams ¶
func (r TmallTmicQuestionnaireAnswerPushRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TmallTmicQuestionnaireAnswerPushRequest) GetBiz ¶
func (r TmallTmicQuestionnaireAnswerPushRequest) GetBiz() string
Biz Getter
func (TmallTmicQuestionnaireAnswerPushRequest) GetHashCode ¶
func (r TmallTmicQuestionnaireAnswerPushRequest) GetHashCode() string
HashCode Getter
func (TmallTmicQuestionnaireAnswerPushRequest) GetOpenUserId ¶
func (r TmallTmicQuestionnaireAnswerPushRequest) GetOpenUserId() string
OpenUserId Getter
func (TmallTmicQuestionnaireAnswerPushRequest) GetRecordId ¶
func (r TmallTmicQuestionnaireAnswerPushRequest) GetRecordId() int64
RecordId Getter
func (TmallTmicQuestionnaireAnswerPushRequest) GetUserAnswerList ¶
func (r TmallTmicQuestionnaireAnswerPushRequest) GetUserAnswerList() []AnswerBo
UserAnswerList Getter
func (TmallTmicQuestionnaireAnswerPushRequest) GetVersion ¶
func (r TmallTmicQuestionnaireAnswerPushRequest) GetVersion() int64
Version Getter
func (*TmallTmicQuestionnaireAnswerPushRequest) SetBiz ¶
func (r *TmallTmicQuestionnaireAnswerPushRequest) SetBiz(biz string) error
Biz Setter 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏
func (*TmallTmicQuestionnaireAnswerPushRequest) SetHashCode ¶
func (r *TmallTmicQuestionnaireAnswerPushRequest) SetHashCode(hashCode string) error
HashCode Setter 问卷唯一编码,从问卷信息接口应答中获取
func (*TmallTmicQuestionnaireAnswerPushRequest) SetOpenUserId ¶
func (r *TmallTmicQuestionnaireAnswerPushRequest) SetOpenUserId(openUserId string) error
OpenUserId Setter 开发平台userId
func (*TmallTmicQuestionnaireAnswerPushRequest) SetRecordId ¶
func (r *TmallTmicQuestionnaireAnswerPushRequest) SetRecordId(recordId int64) error
RecordId Setter 问卷填答id,从问卷信息接口的应答中获取
func (*TmallTmicQuestionnaireAnswerPushRequest) SetUserAnswerList ¶
func (r *TmallTmicQuestionnaireAnswerPushRequest) SetUserAnswerList(userAnswerList []AnswerBo) error
UserAnswerList Setter 用户填写的回答,类型为数组
func (*TmallTmicQuestionnaireAnswerPushRequest) SetVersion ¶
func (r *TmallTmicQuestionnaireAnswerPushRequest) SetVersion(version int64) error
Version Setter 问卷版本号,从问卷信息接口的应答中获取
type TmallTmicQuestionnaireAnswerPushResponse ¶
type TmallTmicQuestionnaireAnswerPushResponse struct { XMLName xml.Name `xml:"tmall_tmic_questionnaire_answer_push_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 错误提示语 BizErrorInfo string `json:"biz_error_info,omitempty" xml:"biz_error_info,omitempty"` // 错误编码 BizErrorCode string `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"` // 是否调用成功 BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` }
提交单题答案 成功返回结果
type TmallTmicQuestionnaireAnswerSubmitAPIResponse ¶
type TmallTmicQuestionnaireAnswerSubmitAPIResponse struct { model.CommonResponse TmallTmicQuestionnaireAnswerSubmitResponse }
提交问卷答案 API返回值 tmall.tmic.questionnaire.answer.submit
天猫新品创新中心对外开放问卷,提交问卷答案
type TmallTmicQuestionnaireAnswerSubmitRequest ¶
type TmallTmicQuestionnaireAnswerSubmitRequest struct { model.Params // contains filtered or unexported fields }
提交问卷答案 API请求 tmall.tmic.questionnaire.answer.submit
天猫新品创新中心对外开放问卷,提交问卷答案
func NewTmallTmicQuestionnaireAnswerSubmitRequest ¶
func NewTmallTmicQuestionnaireAnswerSubmitRequest() *TmallTmicQuestionnaireAnswerSubmitRequest
初始化TmallTmicQuestionnaireAnswerSubmitRequest对象
func (TmallTmicQuestionnaireAnswerSubmitRequest) GetApiMethodName ¶
func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TmallTmicQuestionnaireAnswerSubmitRequest) GetApiParams ¶
func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TmallTmicQuestionnaireAnswerSubmitRequest) GetBiz ¶
func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetBiz() string
Biz Getter
func (TmallTmicQuestionnaireAnswerSubmitRequest) GetHashCode ¶
func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetHashCode() string
HashCode Getter
func (TmallTmicQuestionnaireAnswerSubmitRequest) GetOpenUserId ¶
func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetOpenUserId() string
OpenUserId Getter
func (TmallTmicQuestionnaireAnswerSubmitRequest) GetRecordId ¶
func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetRecordId() int64
RecordId Getter
func (TmallTmicQuestionnaireAnswerSubmitRequest) GetUserAnswerList ¶
func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetUserAnswerList() []AnswerBo
UserAnswerList Getter
func (TmallTmicQuestionnaireAnswerSubmitRequest) GetVersion ¶
func (r TmallTmicQuestionnaireAnswerSubmitRequest) GetVersion() int64
Version Getter
func (*TmallTmicQuestionnaireAnswerSubmitRequest) SetBiz ¶
func (r *TmallTmicQuestionnaireAnswerSubmitRequest) SetBiz(biz string) error
Biz Setter 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏
func (*TmallTmicQuestionnaireAnswerSubmitRequest) SetHashCode ¶
func (r *TmallTmicQuestionnaireAnswerSubmitRequest) SetHashCode(hashCode string) error
HashCode Setter 问卷唯一编码,从问卷信息接口应答中获取
func (*TmallTmicQuestionnaireAnswerSubmitRequest) SetOpenUserId ¶
func (r *TmallTmicQuestionnaireAnswerSubmitRequest) SetOpenUserId(openUserId string) error
OpenUserId Setter openId
func (*TmallTmicQuestionnaireAnswerSubmitRequest) SetRecordId ¶
func (r *TmallTmicQuestionnaireAnswerSubmitRequest) SetRecordId(recordId int64) error
RecordId Setter 问卷填答id,从问卷信息接口的应答中获取
func (*TmallTmicQuestionnaireAnswerSubmitRequest) SetUserAnswerList ¶
func (r *TmallTmicQuestionnaireAnswerSubmitRequest) SetUserAnswerList(userAnswerList []AnswerBo) error
UserAnswerList Setter 用户填写的回答,类型为数组
func (*TmallTmicQuestionnaireAnswerSubmitRequest) SetVersion ¶
func (r *TmallTmicQuestionnaireAnswerSubmitRequest) SetVersion(version int64) error
Version Setter 问卷版本号,从问卷信息接口的应答中获取
type TmallTmicQuestionnaireAnswerSubmitResponse ¶
type TmallTmicQuestionnaireAnswerSubmitResponse struct { XMLName xml.Name `xml:"tmall_tmic_questionnaire_answer_submit_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 错误提示语 BizErrorInfo string `json:"biz_error_info,omitempty" xml:"biz_error_info,omitempty"` // 错误编码 BizErrorCode string `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"` // 是否调用成功 BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` }
提交问卷答案 成功返回结果
type TmallTmicQuestionnaireOptionGetAPIResponse ¶
type TmallTmicQuestionnaireOptionGetAPIResponse struct { model.CommonResponse TmallTmicQuestionnaireOptionGetResponse }
获取单题选项 API返回值 tmall.tmic.questionnaire.option.get
根据具体题号,获取当前题目的选项列表
type TmallTmicQuestionnaireOptionGetRequest ¶
type TmallTmicQuestionnaireOptionGetRequest struct { model.Params // contains filtered or unexported fields }
获取单题选项 API请求 tmall.tmic.questionnaire.option.get
根据具体题号,获取当前题目的选项列表
func NewTmallTmicQuestionnaireOptionGetRequest ¶
func NewTmallTmicQuestionnaireOptionGetRequest() *TmallTmicQuestionnaireOptionGetRequest
初始化TmallTmicQuestionnaireOptionGetRequest对象
func (TmallTmicQuestionnaireOptionGetRequest) GetApiMethodName ¶
func (r TmallTmicQuestionnaireOptionGetRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TmallTmicQuestionnaireOptionGetRequest) GetApiParams ¶
func (r TmallTmicQuestionnaireOptionGetRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TmallTmicQuestionnaireOptionGetRequest) GetBiz ¶
func (r TmallTmicQuestionnaireOptionGetRequest) GetBiz() string
Biz Getter
func (TmallTmicQuestionnaireOptionGetRequest) GetExtraParameters ¶
func (r TmallTmicQuestionnaireOptionGetRequest) GetExtraParameters() string
ExtraParameters Getter
func (TmallTmicQuestionnaireOptionGetRequest) GetHashCode ¶
func (r TmallTmicQuestionnaireOptionGetRequest) GetHashCode() string
HashCode Getter
func (TmallTmicQuestionnaireOptionGetRequest) GetOpenUserId ¶
func (r TmallTmicQuestionnaireOptionGetRequest) GetOpenUserId() string
OpenUserId Getter
func (TmallTmicQuestionnaireOptionGetRequest) GetQuestionCode ¶
func (r TmallTmicQuestionnaireOptionGetRequest) GetQuestionCode() string
QuestionCode Getter
func (TmallTmicQuestionnaireOptionGetRequest) GetRecordId ¶
func (r TmallTmicQuestionnaireOptionGetRequest) GetRecordId() int64
RecordId Getter
func (TmallTmicQuestionnaireOptionGetRequest) GetVersion ¶
func (r TmallTmicQuestionnaireOptionGetRequest) GetVersion() int64
Version Getter
func (*TmallTmicQuestionnaireOptionGetRequest) SetBiz ¶
func (r *TmallTmicQuestionnaireOptionGetRequest) SetBiz(biz string) error
Biz Setter 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏
func (*TmallTmicQuestionnaireOptionGetRequest) SetExtraParameters ¶
func (r *TmallTmicQuestionnaireOptionGetRequest) SetExtraParameters(extraParameters string) error
ExtraParameters Setter 业务扩展参数
func (*TmallTmicQuestionnaireOptionGetRequest) SetHashCode ¶
func (r *TmallTmicQuestionnaireOptionGetRequest) SetHashCode(hashCode string) error
HashCode Setter 问卷唯一编码,从问卷信息接口应答中获取
func (*TmallTmicQuestionnaireOptionGetRequest) SetOpenUserId ¶
func (r *TmallTmicQuestionnaireOptionGetRequest) SetOpenUserId(openUserId string) error
OpenUserId Setter openId
func (*TmallTmicQuestionnaireOptionGetRequest) SetQuestionCode ¶
func (r *TmallTmicQuestionnaireOptionGetRequest) SetQuestionCode(questionCode string) error
QuestionCode Setter 问题编码,问卷中的问题的唯一编码,从问卷信息接口的应答中获取
func (*TmallTmicQuestionnaireOptionGetRequest) SetRecordId ¶
func (r *TmallTmicQuestionnaireOptionGetRequest) SetRecordId(recordId int64) error
RecordId Setter 问卷填答id,从问卷信息接口的应答中获取
func (*TmallTmicQuestionnaireOptionGetRequest) SetVersion ¶
func (r *TmallTmicQuestionnaireOptionGetRequest) SetVersion(version int64) error
Version Setter 问卷版本号,从问卷信息接口的应答中获取
type TmallTmicQuestionnaireOptionGetResponse ¶
type TmallTmicQuestionnaireOptionGetResponse struct { XMLName xml.Name `xml:"tmall_tmic_questionnaire_option_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // result Result *OpenOptionResult `json:"result,omitempty" xml:"result,omitempty"` }
获取单题选项 成功返回结果
type TmallTmicQuestionnaireSurveyGetAPIResponse ¶
type TmallTmicQuestionnaireSurveyGetAPIResponse struct { model.CommonResponse TmallTmicQuestionnaireSurveyGetResponse }
天猫新品创新中心问卷数据获取 API返回值 tmall.tmic.questionnaire.survey.get
天猫新品创新中心问卷数据获取
type TmallTmicQuestionnaireSurveyGetRequest ¶
type TmallTmicQuestionnaireSurveyGetRequest struct { model.Params // contains filtered or unexported fields }
天猫新品创新中心问卷数据获取 API请求 tmall.tmic.questionnaire.survey.get
天猫新品创新中心问卷数据获取
func NewTmallTmicQuestionnaireSurveyGetRequest ¶
func NewTmallTmicQuestionnaireSurveyGetRequest() *TmallTmicQuestionnaireSurveyGetRequest
初始化TmallTmicQuestionnaireSurveyGetRequest对象
func (TmallTmicQuestionnaireSurveyGetRequest) GetApiMethodName ¶
func (r TmallTmicQuestionnaireSurveyGetRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TmallTmicQuestionnaireSurveyGetRequest) GetApiParams ¶
func (r TmallTmicQuestionnaireSurveyGetRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TmallTmicQuestionnaireSurveyGetRequest) GetBiz ¶
func (r TmallTmicQuestionnaireSurveyGetRequest) GetBiz() string
Biz Getter
func (TmallTmicQuestionnaireSurveyGetRequest) GetHashCode ¶
func (r TmallTmicQuestionnaireSurveyGetRequest) GetHashCode() string
HashCode Getter
func (TmallTmicQuestionnaireSurveyGetRequest) GetOpenUserId ¶
func (r TmallTmicQuestionnaireSurveyGetRequest) GetOpenUserId() string
OpenUserId Getter
func (*TmallTmicQuestionnaireSurveyGetRequest) SetBiz ¶
func (r *TmallTmicQuestionnaireSurveyGetRequest) SetBiz(biz string) error
Biz Setter biz业务参数,1024表示投放id,下划线分隔,fav表示收藏行为的英文
func (*TmallTmicQuestionnaireSurveyGetRequest) SetHashCode ¶
func (r *TmallTmicQuestionnaireSurveyGetRequest) SetHashCode(hashCode string) error
HashCode Setter 问卷hashCode,问卷对外唯一编码
func (*TmallTmicQuestionnaireSurveyGetRequest) SetOpenUserId ¶
func (r *TmallTmicQuestionnaireSurveyGetRequest) SetOpenUserId(openUserId string) error
OpenUserId Setter open_id
type TmallTmicQuestionnaireSurveyGetResponse ¶
type TmallTmicQuestionnaireSurveyGetResponse struct { XMLName xml.Name `xml:"tmall_tmic_questionnaire_survey_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // result Result *TmallTmicQuestionnaireSurveyGetResult `json:"result,omitempty" xml:"result,omitempty"` }
天猫新品创新中心问卷数据获取 成功返回结果
type TmallTmicQuestionnaireSurveyGetResult ¶
type TmallTmicQuestionnaireSurveyGetResult struct { // 是否调用成功 BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` // 问卷记录id,用于区别不同的回答记录,在提交回答的时候作为请求参数 RecordId int64 `json:"record_id,omitempty" xml:"record_id,omitempty"` // 问卷相关的logo地址 Logo string `json:"logo,omitempty" xml:"logo,omitempty"` // 问卷标题 Title string `json:"title,omitempty" xml:"title,omitempty"` // 问题列表 QuestionList []QuestionBo `json:"question_list,omitempty" xml:"question_list>question_bo,omitempty"` // 错误提示 BizErrorInfo string `json:"biz_error_info,omitempty" xml:"biz_error_info,omitempty"` // 问卷描述 Description string `json:"description,omitempty" xml:"description,omitempty"` // 问题数量 QuestionCount int64 `json:"question_count,omitempty" xml:"question_count,omitempty"` // 错误编码 BizErrorCode string `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"` // 问卷版本号 Version int64 `json:"version,omitempty" xml:"version,omitempty"` }
TmallTmicQuestionnaireSurveyGetResult
Source Files ¶
- AnswerBo.go
- ItemBo.go
- OpenOptionResult.go
- OptionBo.go
- OptionItemBo.go
- QuestionBo.go
- SubQuestionBo.go
- SubQuestionItemBo.go
- TmallTmicQuestionnaireAnswerPushRequest.go
- TmallTmicQuestionnaireAnswerPushResponse.go
- TmallTmicQuestionnaireAnswerSubmitRequest.go
- TmallTmicQuestionnaireAnswerSubmitResponse.go
- TmallTmicQuestionnaireOptionGetRequest.go
- TmallTmicQuestionnaireOptionGetResponse.go
- TmallTmicQuestionnaireSurveyGetRequest.go
- TmallTmicQuestionnaireSurveyGetResponse.go
- TmallTmicQuestionnaireSurveyGetResult.go
- doc.go