Documentation ¶
Overview ¶
Package tmic 包含天猫新品创新中心API相关结构体
Index ¶
- type AnswerBo
- type ItemBo
- type OpenOptionResult
- type OptionBo
- type OptionItemBo
- type QuestionBo
- type SubQuestionBo
- type SubQuestionItemBo
- type TmallTmicQuestionnaireAnswerPushAPIRequest
- func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetApiMethodName() string
- func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetApiParams() url.Values
- func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetBiz() string
- func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetHashCode() string
- func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetOpenUserId() string
- func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetRecordId() int64
- func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetUserAnswerList() []AnswerBo
- func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetVersion() int64
- func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetBiz(_biz string) error
- func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetHashCode(_hashCode string) error
- func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetOpenUserId(_openUserId string) error
- func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetRecordId(_recordId int64) error
- func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetUserAnswerList(_userAnswerList []AnswerBo) error
- func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetVersion(_version int64) error
- type TmallTmicQuestionnaireAnswerPushAPIResponse
- type TmallTmicQuestionnaireAnswerPushAPIResponseModel
- type TmallTmicQuestionnaireAnswerSubmitAPIRequest
- func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetApiMethodName() string
- func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetApiParams() url.Values
- func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetBiz() string
- func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetHashCode() string
- func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetOpenUserId() string
- func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetRecordId() int64
- func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetUserAnswerList() []AnswerBo
- func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetVersion() int64
- func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetBiz(_biz string) error
- func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetHashCode(_hashCode string) error
- func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetOpenUserId(_openUserId string) error
- func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetRecordId(_recordId int64) error
- func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetUserAnswerList(_userAnswerList []AnswerBo) error
- func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetVersion(_version int64) error
- type TmallTmicQuestionnaireAnswerSubmitAPIResponse
- type TmallTmicQuestionnaireAnswerSubmitAPIResponseModel
- type TmallTmicQuestionnaireOptionGetAPIRequest
- func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetApiMethodName() string
- func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetApiParams() url.Values
- func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetBiz() string
- func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetExtraParameters() string
- func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetHashCode() string
- func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetOpenUserId() string
- func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetQuestionCode() string
- func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetRecordId() int64
- func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetVersion() int64
- func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetBiz(_biz string) error
- func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetExtraParameters(_extraParameters string) error
- func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetHashCode(_hashCode string) error
- func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetOpenUserId(_openUserId string) error
- func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetQuestionCode(_questionCode string) error
- func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetRecordId(_recordId int64) error
- func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetVersion(_version int64) error
- type TmallTmicQuestionnaireOptionGetAPIResponse
- type TmallTmicQuestionnaireOptionGetAPIResponseModel
- type TmallTmicQuestionnaireSurveyGetAPIRequest
- func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetApiMethodName() string
- func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetApiParams() url.Values
- func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetBiz() string
- func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetHashCode() string
- func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetOpenUserId() string
- func (r *TmallTmicQuestionnaireSurveyGetAPIRequest) SetBiz(_biz string) error
- func (r *TmallTmicQuestionnaireSurveyGetAPIRequest) SetHashCode(_hashCode string) error
- func (r *TmallTmicQuestionnaireSurveyGetAPIRequest) SetOpenUserId(_openUserId string) error
- type TmallTmicQuestionnaireSurveyGetAPIResponse
- type TmallTmicQuestionnaireSurveyGetAPIResponseModel
- 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 { // 业务错误提示 BizErrInfo string `json:"biz_err_info,omitempty" xml:"biz_err_info,omitempty"` // 业务错误编码 BizErrCode string `json:"biz_err_code,omitempty" xml:"biz_err_code,omitempty"` // 问卷记录id,用于区别不同的回答记录,在提交回答的时候作为请求参数 RecordId int64 `json:"record_id,omitempty" xml:"record_id,omitempty"` // 某一问题对象 Question *QuestionBo `json:"question,omitempty" xml:"question,omitempty"` // 问卷版本号 Version int64 `json:"version,omitempty" xml:"version,omitempty"` // 是否还有下一题 HasNextQuestion bool `json:"has_next_question,omitempty" xml:"has_next_question,omitempty"` // 业务是否调用成功 BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` }
OpenOptionResult 结构体
type OptionBo ¶
type OptionBo struct { // 选项具体值 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"` // 是否还有其他选项 HasOther bool `json:"has_other,omitempty" xml:"has_other,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"` // randomGroupNumber RandomGroupNumber int64 `json:"random_group_number,omitempty" xml:"random_group_number,omitempty"` // supplement Supplement bool `json:"supplement,omitempty" xml:"supplement,omitempty"` // exclusion Exclusion bool `json:"exclusion,omitempty" xml:"exclusion,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"` // 问卷描述 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"` // 文本控件占位符 Placeholder string `json:"placeholder,omitempty" xml:"placeholder,omitempty"` // 该问题下选项对象 Options *OptionBo `json:"options,omitempty" xml:"options,omitempty"` // 问题排序字段 OrderNumber int64 `json:"order_number,omitempty" xml:"order_number,omitempty"` // 选项最大个数,5表示最多5个选项 OptionLimit int64 `json:"option_limit,omitempty" xml:"option_limit,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"` // 该题是否必答,true-必答,false-选答 Required bool `json:"required,omitempty" xml:"required,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 TmallTmicQuestionnaireAnswerPushAPIRequest ¶ added in v1.2.0
type TmallTmicQuestionnaireAnswerPushAPIRequest struct { model.Params // contains filtered or unexported fields }
TmallTmicQuestionnaireAnswerPushAPIRequest 提交单题答案 API请求 tmall.tmic.questionnaire.answer.push
问卷单题回答的提交
func NewTmallTmicQuestionnaireAnswerPushRequest ¶
func NewTmallTmicQuestionnaireAnswerPushRequest() *TmallTmicQuestionnaireAnswerPushAPIRequest
NewTmallTmicQuestionnaireAnswerPushRequest 初始化TmallTmicQuestionnaireAnswerPushAPIRequest对象
func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetBiz ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetBiz() string
GetBiz Biz Getter
func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetHashCode ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetHashCode() string
GetHashCode HashCode Getter
func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetOpenUserId ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetOpenUserId() string
GetOpenUserId OpenUserId Getter
func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetRecordId ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetRecordId() int64
GetRecordId RecordId Getter
func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetUserAnswerList ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetUserAnswerList() []AnswerBo
GetUserAnswerList UserAnswerList Getter
func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetVersion ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetVersion() int64
GetVersion Version Getter
func (*TmallTmicQuestionnaireAnswerPushAPIRequest) SetBiz ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetBiz(_biz string) error
SetBiz is Biz Setter 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏
func (*TmallTmicQuestionnaireAnswerPushAPIRequest) SetHashCode ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetHashCode(_hashCode string) error
SetHashCode is HashCode Setter 问卷唯一编码,从问卷信息接口应答中获取
func (*TmallTmicQuestionnaireAnswerPushAPIRequest) SetOpenUserId ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetOpenUserId(_openUserId string) error
SetOpenUserId is OpenUserId Setter 开发平台userId
func (*TmallTmicQuestionnaireAnswerPushAPIRequest) SetRecordId ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetRecordId(_recordId int64) error
SetRecordId is RecordId Setter 问卷填答id,从问卷信息接口的应答中获取
func (*TmallTmicQuestionnaireAnswerPushAPIRequest) SetUserAnswerList ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetUserAnswerList(_userAnswerList []AnswerBo) error
SetUserAnswerList is UserAnswerList Setter 用户填写的回答,类型为数组
func (*TmallTmicQuestionnaireAnswerPushAPIRequest) SetVersion ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetVersion(_version int64) error
SetVersion is Version Setter 问卷版本号,从问卷信息接口的应答中获取
type TmallTmicQuestionnaireAnswerPushAPIResponse ¶
type TmallTmicQuestionnaireAnswerPushAPIResponse struct { model.CommonResponse TmallTmicQuestionnaireAnswerPushAPIResponseModel }
TmallTmicQuestionnaireAnswerPushAPIResponse 提交单题答案 API返回值 tmall.tmic.questionnaire.answer.push
问卷单题回答的提交
type TmallTmicQuestionnaireAnswerPushAPIResponseModel ¶ added in v1.2.0
type TmallTmicQuestionnaireAnswerPushAPIResponseModel 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"` }
TmallTmicQuestionnaireAnswerPushAPIResponseModel is 提交单题答案 成功返回结果
type TmallTmicQuestionnaireAnswerSubmitAPIRequest ¶ added in v1.2.0
type TmallTmicQuestionnaireAnswerSubmitAPIRequest struct { model.Params // contains filtered or unexported fields }
TmallTmicQuestionnaireAnswerSubmitAPIRequest 提交问卷答案 API请求 tmall.tmic.questionnaire.answer.submit
天猫新品创新中心对外开放问卷,提交问卷答案
func NewTmallTmicQuestionnaireAnswerSubmitRequest ¶
func NewTmallTmicQuestionnaireAnswerSubmitRequest() *TmallTmicQuestionnaireAnswerSubmitAPIRequest
NewTmallTmicQuestionnaireAnswerSubmitRequest 初始化TmallTmicQuestionnaireAnswerSubmitAPIRequest对象
func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetBiz ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetBiz() string
GetBiz Biz Getter
func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetHashCode ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetHashCode() string
GetHashCode HashCode Getter
func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetOpenUserId ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetOpenUserId() string
GetOpenUserId OpenUserId Getter
func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetRecordId ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetRecordId() int64
GetRecordId RecordId Getter
func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetUserAnswerList ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetUserAnswerList() []AnswerBo
GetUserAnswerList UserAnswerList Getter
func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetVersion ¶ added in v1.2.0
func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetVersion() int64
GetVersion Version Getter
func (*TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetBiz ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetBiz(_biz string) error
SetBiz is Biz Setter 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏
func (*TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetHashCode ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetHashCode(_hashCode string) error
SetHashCode is HashCode Setter 问卷唯一编码,从问卷信息接口应答中获取
func (*TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetOpenUserId ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetOpenUserId(_openUserId string) error
SetOpenUserId is OpenUserId Setter openId
func (*TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetRecordId ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetRecordId(_recordId int64) error
SetRecordId is RecordId Setter 问卷填答id,从问卷信息接口的应答中获取
func (*TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetUserAnswerList ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetUserAnswerList(_userAnswerList []AnswerBo) error
SetUserAnswerList is UserAnswerList Setter 用户填写的回答,类型为数组
func (*TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetVersion ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetVersion(_version int64) error
SetVersion is Version Setter 问卷版本号,从问卷信息接口的应答中获取
type TmallTmicQuestionnaireAnswerSubmitAPIResponse ¶
type TmallTmicQuestionnaireAnswerSubmitAPIResponse struct { model.CommonResponse TmallTmicQuestionnaireAnswerSubmitAPIResponseModel }
TmallTmicQuestionnaireAnswerSubmitAPIResponse 提交问卷答案 API返回值 tmall.tmic.questionnaire.answer.submit
天猫新品创新中心对外开放问卷,提交问卷答案
type TmallTmicQuestionnaireAnswerSubmitAPIResponseModel ¶ added in v1.2.0
type TmallTmicQuestionnaireAnswerSubmitAPIResponseModel 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"` }
TmallTmicQuestionnaireAnswerSubmitAPIResponseModel is 提交问卷答案 成功返回结果
type TmallTmicQuestionnaireOptionGetAPIRequest ¶ added in v1.2.0
type TmallTmicQuestionnaireOptionGetAPIRequest struct { model.Params // contains filtered or unexported fields }
TmallTmicQuestionnaireOptionGetAPIRequest 获取单题选项 API请求 tmall.tmic.questionnaire.option.get
根据具体题号,获取当前题目的选项列表
func NewTmallTmicQuestionnaireOptionGetRequest ¶
func NewTmallTmicQuestionnaireOptionGetRequest() *TmallTmicQuestionnaireOptionGetAPIRequest
NewTmallTmicQuestionnaireOptionGetRequest 初始化TmallTmicQuestionnaireOptionGetAPIRequest对象
func (TmallTmicQuestionnaireOptionGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TmallTmicQuestionnaireOptionGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TmallTmicQuestionnaireOptionGetAPIRequest) GetBiz ¶ added in v1.2.0
func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetBiz() string
GetBiz Biz Getter
func (TmallTmicQuestionnaireOptionGetAPIRequest) GetExtraParameters ¶ added in v1.2.0
func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetExtraParameters() string
GetExtraParameters ExtraParameters Getter
func (TmallTmicQuestionnaireOptionGetAPIRequest) GetHashCode ¶ added in v1.2.0
func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetHashCode() string
GetHashCode HashCode Getter
func (TmallTmicQuestionnaireOptionGetAPIRequest) GetOpenUserId ¶ added in v1.2.0
func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetOpenUserId() string
GetOpenUserId OpenUserId Getter
func (TmallTmicQuestionnaireOptionGetAPIRequest) GetQuestionCode ¶ added in v1.2.0
func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetQuestionCode() string
GetQuestionCode QuestionCode Getter
func (TmallTmicQuestionnaireOptionGetAPIRequest) GetRecordId ¶ added in v1.2.0
func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetRecordId() int64
GetRecordId RecordId Getter
func (TmallTmicQuestionnaireOptionGetAPIRequest) GetVersion ¶ added in v1.2.0
func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetVersion() int64
GetVersion Version Getter
func (*TmallTmicQuestionnaireOptionGetAPIRequest) SetBiz ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetBiz(_biz string) error
SetBiz is Biz Setter 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏
func (*TmallTmicQuestionnaireOptionGetAPIRequest) SetExtraParameters ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetExtraParameters(_extraParameters string) error
SetExtraParameters is ExtraParameters Setter 业务扩展参数
func (*TmallTmicQuestionnaireOptionGetAPIRequest) SetHashCode ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetHashCode(_hashCode string) error
SetHashCode is HashCode Setter 问卷唯一编码,从问卷信息接口应答中获取
func (*TmallTmicQuestionnaireOptionGetAPIRequest) SetOpenUserId ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetOpenUserId(_openUserId string) error
SetOpenUserId is OpenUserId Setter openId
func (*TmallTmicQuestionnaireOptionGetAPIRequest) SetQuestionCode ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetQuestionCode(_questionCode string) error
SetQuestionCode is QuestionCode Setter 问题编码,问卷中的问题的唯一编码,从问卷信息接口的应答中获取
func (*TmallTmicQuestionnaireOptionGetAPIRequest) SetRecordId ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetRecordId(_recordId int64) error
SetRecordId is RecordId Setter 问卷填答id,从问卷信息接口的应答中获取
func (*TmallTmicQuestionnaireOptionGetAPIRequest) SetVersion ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetVersion(_version int64) error
SetVersion is Version Setter 问卷版本号,从问卷信息接口的应答中获取
type TmallTmicQuestionnaireOptionGetAPIResponse ¶
type TmallTmicQuestionnaireOptionGetAPIResponse struct { model.CommonResponse TmallTmicQuestionnaireOptionGetAPIResponseModel }
TmallTmicQuestionnaireOptionGetAPIResponse 获取单题选项 API返回值 tmall.tmic.questionnaire.option.get
根据具体题号,获取当前题目的选项列表
type TmallTmicQuestionnaireOptionGetAPIResponseModel ¶ added in v1.2.0
type TmallTmicQuestionnaireOptionGetAPIResponseModel 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"` }
TmallTmicQuestionnaireOptionGetAPIResponseModel is 获取单题选项 成功返回结果
type TmallTmicQuestionnaireSurveyGetAPIRequest ¶ added in v1.2.0
type TmallTmicQuestionnaireSurveyGetAPIRequest struct { model.Params // contains filtered or unexported fields }
TmallTmicQuestionnaireSurveyGetAPIRequest 天猫新品创新中心问卷数据获取 API请求 tmall.tmic.questionnaire.survey.get
天猫新品创新中心问卷数据获取
func NewTmallTmicQuestionnaireSurveyGetRequest ¶
func NewTmallTmicQuestionnaireSurveyGetRequest() *TmallTmicQuestionnaireSurveyGetAPIRequest
NewTmallTmicQuestionnaireSurveyGetRequest 初始化TmallTmicQuestionnaireSurveyGetAPIRequest对象
func (TmallTmicQuestionnaireSurveyGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TmallTmicQuestionnaireSurveyGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TmallTmicQuestionnaireSurveyGetAPIRequest) GetBiz ¶ added in v1.2.0
func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetBiz() string
GetBiz Biz Getter
func (TmallTmicQuestionnaireSurveyGetAPIRequest) GetHashCode ¶ added in v1.2.0
func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetHashCode() string
GetHashCode HashCode Getter
func (TmallTmicQuestionnaireSurveyGetAPIRequest) GetOpenUserId ¶ added in v1.2.0
func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetOpenUserId() string
GetOpenUserId OpenUserId Getter
func (*TmallTmicQuestionnaireSurveyGetAPIRequest) SetBiz ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireSurveyGetAPIRequest) SetBiz(_biz string) error
SetBiz is Biz Setter biz业务参数,1024表示投放id,下划线分隔,fav表示收藏行为的英文
func (*TmallTmicQuestionnaireSurveyGetAPIRequest) SetHashCode ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireSurveyGetAPIRequest) SetHashCode(_hashCode string) error
SetHashCode is HashCode Setter 问卷hashCode,问卷对外唯一编码
func (*TmallTmicQuestionnaireSurveyGetAPIRequest) SetOpenUserId ¶ added in v1.2.0
func (r *TmallTmicQuestionnaireSurveyGetAPIRequest) SetOpenUserId(_openUserId string) error
SetOpenUserId is OpenUserId Setter open_id
type TmallTmicQuestionnaireSurveyGetAPIResponse ¶
type TmallTmicQuestionnaireSurveyGetAPIResponse struct { model.CommonResponse TmallTmicQuestionnaireSurveyGetAPIResponseModel }
TmallTmicQuestionnaireSurveyGetAPIResponse 天猫新品创新中心问卷数据获取 API返回值 tmall.tmic.questionnaire.survey.get
天猫新品创新中心问卷数据获取
type TmallTmicQuestionnaireSurveyGetAPIResponseModel ¶ added in v1.2.0
type TmallTmicQuestionnaireSurveyGetAPIResponseModel 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"` }
TmallTmicQuestionnaireSurveyGetAPIResponseModel is 天猫新品创新中心问卷数据获取 成功返回结果
type TmallTmicQuestionnaireSurveyGetResult ¶
type TmallTmicQuestionnaireSurveyGetResult struct { // 问题列表 QuestionList []QuestionBo `json:"question_list,omitempty" xml:"question_list>question_bo,omitempty"` // 问卷相关的logo地址 Logo string `json:"logo,omitempty" xml:"logo,omitempty"` // 问卷标题 Title string `json:"title,omitempty" xml:"title,omitempty"` // 错误提示 BizErrorInfo string `json:"biz_error_info,omitempty" xml:"biz_error_info,omitempty"` // 问卷描述 Description string `json:"description,omitempty" xml:"description,omitempty"` // 错误编码 BizErrorCode string `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"` // 问卷记录id,用于区别不同的回答记录,在提交回答的时候作为请求参数 RecordId int64 `json:"record_id,omitempty" xml:"record_id,omitempty"` // 问题数量 QuestionCount int64 `json:"question_count,omitempty" xml:"question_count,omitempty"` // 问卷版本号 Version int64 `json:"version,omitempty" xml:"version,omitempty"` // 是否调用成功 BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` }
TmallTmicQuestionnaireSurveyGetResult 结构体
Source Files ¶
- AnswerBo.go
- ItemBo.go
- OpenOptionResult.go
- OptionBo.go
- OptionItemBo.go
- QuestionBo.go
- SubQuestionBo.go
- SubQuestionItemBo.go
- TmallTmicQuestionnaireAnswerPushAPIRequest.go
- TmallTmicQuestionnaireAnswerPushAPIResponse.go
- TmallTmicQuestionnaireAnswerSubmitAPIRequest.go
- TmallTmicQuestionnaireAnswerSubmitAPIResponse.go
- TmallTmicQuestionnaireOptionGetAPIRequest.go
- TmallTmicQuestionnaireOptionGetAPIResponse.go
- TmallTmicQuestionnaireSurveyGetAPIRequest.go
- TmallTmicQuestionnaireSurveyGetAPIResponse.go
- TmallTmicQuestionnaireSurveyGetResult.go
- doc.go