tmic

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

天猫新品创新中心API model

https://open.taobao.com/API.htm?docId=43329&docType=2

Index

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 TmallTmicQuestionnaireAnswerPushAPIRequest added in v1.2.0

type TmallTmicQuestionnaireAnswerPushAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

提交单题答案 API请求 tmall.tmic.questionnaire.answer.push

问卷单题回答的提交

func NewTmallTmicQuestionnaireAnswerPushRequest

func NewTmallTmicQuestionnaireAnswerPushRequest() *TmallTmicQuestionnaireAnswerPushAPIRequest

初始化TmallTmicQuestionnaireAnswerPushAPIRequest对象

func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetBiz added in v1.2.0

Biz Getter

func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetHashCode added in v1.2.0

HashCode Getter

func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetOpenUserId added in v1.2.0

OpenUserId Getter

func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetRecordId added in v1.2.0

RecordId Getter

func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetUserAnswerList added in v1.2.0

func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetUserAnswerList() []AnswerBo

UserAnswerList Getter

func (TmallTmicQuestionnaireAnswerPushAPIRequest) GetVersion added in v1.2.0

Version Getter

func (*TmallTmicQuestionnaireAnswerPushAPIRequest) SetBiz added in v1.2.0

Biz Setter 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏

func (*TmallTmicQuestionnaireAnswerPushAPIRequest) SetHashCode added in v1.2.0

func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetHashCode(_hashCode string) error

HashCode Setter 问卷唯一编码,从问卷信息接口应答中获取

func (*TmallTmicQuestionnaireAnswerPushAPIRequest) SetOpenUserId added in v1.2.0

func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetOpenUserId(_openUserId string) error

OpenUserId Setter 开发平台userId

func (*TmallTmicQuestionnaireAnswerPushAPIRequest) SetRecordId added in v1.2.0

func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetRecordId(_recordId int64) error

RecordId Setter 问卷填答id,从问卷信息接口的应答中获取

func (*TmallTmicQuestionnaireAnswerPushAPIRequest) SetUserAnswerList added in v1.2.0

func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetUserAnswerList(_userAnswerList []AnswerBo) error

UserAnswerList Setter 用户填写的回答,类型为数组

func (*TmallTmicQuestionnaireAnswerPushAPIRequest) SetVersion added in v1.2.0

func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetVersion(_version int64) error

Version Setter 问卷版本号,从问卷信息接口的应答中获取

type TmallTmicQuestionnaireAnswerPushAPIResponse

type TmallTmicQuestionnaireAnswerPushAPIResponse struct {
	model.CommonResponse
	TmallTmicQuestionnaireAnswerPushAPIResponseModel
}

提交单题答案 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"`
}

提交单题答案 成功返回结果

type TmallTmicQuestionnaireAnswerSubmitAPIRequest added in v1.2.0

type TmallTmicQuestionnaireAnswerSubmitAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

提交问卷答案 API请求 tmall.tmic.questionnaire.answer.submit

天猫新品创新中心对外开放问卷,提交问卷答案

func NewTmallTmicQuestionnaireAnswerSubmitRequest

func NewTmallTmicQuestionnaireAnswerSubmitRequest() *TmallTmicQuestionnaireAnswerSubmitAPIRequest

初始化TmallTmicQuestionnaireAnswerSubmitAPIRequest对象

func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetBiz added in v1.2.0

Biz Getter

func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetHashCode added in v1.2.0

HashCode Getter

func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetOpenUserId added in v1.2.0

OpenUserId Getter

func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetRecordId added in v1.2.0

RecordId Getter

func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetUserAnswerList added in v1.2.0

UserAnswerList Getter

func (TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetVersion added in v1.2.0

Version Getter

func (*TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetBiz added in v1.2.0

Biz Setter 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏

func (*TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetHashCode added in v1.2.0

func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetHashCode(_hashCode string) error

HashCode Setter 问卷唯一编码,从问卷信息接口应答中获取

func (*TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetOpenUserId added in v1.2.0

func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetOpenUserId(_openUserId string) error

OpenUserId Setter openId

func (*TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetRecordId added in v1.2.0

func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetRecordId(_recordId int64) error

RecordId Setter 问卷填答id,从问卷信息接口的应答中获取

func (*TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetUserAnswerList added in v1.2.0

func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetUserAnswerList(_userAnswerList []AnswerBo) error

UserAnswerList Setter 用户填写的回答,类型为数组

func (*TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetVersion added in v1.2.0

Version Setter 问卷版本号,从问卷信息接口的应答中获取

type TmallTmicQuestionnaireAnswerSubmitAPIResponse

type TmallTmicQuestionnaireAnswerSubmitAPIResponse struct {
	model.CommonResponse
	TmallTmicQuestionnaireAnswerSubmitAPIResponseModel
}

提交问卷答案 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"`
}

提交问卷答案 成功返回结果

type TmallTmicQuestionnaireOptionGetAPIRequest added in v1.2.0

type TmallTmicQuestionnaireOptionGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

获取单题选项 API请求 tmall.tmic.questionnaire.option.get

根据具体题号,获取当前题目的选项列表

func NewTmallTmicQuestionnaireOptionGetRequest

func NewTmallTmicQuestionnaireOptionGetRequest() *TmallTmicQuestionnaireOptionGetAPIRequest

初始化TmallTmicQuestionnaireOptionGetAPIRequest对象

func (TmallTmicQuestionnaireOptionGetAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TmallTmicQuestionnaireOptionGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TmallTmicQuestionnaireOptionGetAPIRequest) GetBiz added in v1.2.0

Biz Getter

func (TmallTmicQuestionnaireOptionGetAPIRequest) GetExtraParameters added in v1.2.0

func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetExtraParameters() string

ExtraParameters Getter

func (TmallTmicQuestionnaireOptionGetAPIRequest) GetHashCode added in v1.2.0

HashCode Getter

func (TmallTmicQuestionnaireOptionGetAPIRequest) GetOpenUserId added in v1.2.0

OpenUserId Getter

func (TmallTmicQuestionnaireOptionGetAPIRequest) GetQuestionCode added in v1.2.0

QuestionCode Getter

func (TmallTmicQuestionnaireOptionGetAPIRequest) GetRecordId added in v1.2.0

RecordId Getter

func (TmallTmicQuestionnaireOptionGetAPIRequest) GetVersion added in v1.2.0

Version Getter

func (*TmallTmicQuestionnaireOptionGetAPIRequest) SetBiz added in v1.2.0

Biz Setter 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏

func (*TmallTmicQuestionnaireOptionGetAPIRequest) SetExtraParameters added in v1.2.0

func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetExtraParameters(_extraParameters string) error

ExtraParameters Setter 业务扩展参数

func (*TmallTmicQuestionnaireOptionGetAPIRequest) SetHashCode added in v1.2.0

func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetHashCode(_hashCode string) error

HashCode Setter 问卷唯一编码,从问卷信息接口应答中获取

func (*TmallTmicQuestionnaireOptionGetAPIRequest) SetOpenUserId added in v1.2.0

func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetOpenUserId(_openUserId string) error

OpenUserId Setter openId

func (*TmallTmicQuestionnaireOptionGetAPIRequest) SetQuestionCode added in v1.2.0

func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetQuestionCode(_questionCode string) error

QuestionCode Setter 问题编码,问卷中的问题的唯一编码,从问卷信息接口的应答中获取

func (*TmallTmicQuestionnaireOptionGetAPIRequest) SetRecordId added in v1.2.0

func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetRecordId(_recordId int64) error

RecordId Setter 问卷填答id,从问卷信息接口的应答中获取

func (*TmallTmicQuestionnaireOptionGetAPIRequest) SetVersion added in v1.2.0

func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetVersion(_version int64) error

Version Setter 问卷版本号,从问卷信息接口的应答中获取

type TmallTmicQuestionnaireOptionGetAPIResponse

type TmallTmicQuestionnaireOptionGetAPIResponse struct {
	model.CommonResponse
	TmallTmicQuestionnaireOptionGetAPIResponseModel
}

获取单题选项 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"`
}

获取单题选项 成功返回结果

type TmallTmicQuestionnaireSurveyGetAPIRequest added in v1.2.0

type TmallTmicQuestionnaireSurveyGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

天猫新品创新中心问卷数据获取 API请求 tmall.tmic.questionnaire.survey.get

天猫新品创新中心问卷数据获取

func NewTmallTmicQuestionnaireSurveyGetRequest

func NewTmallTmicQuestionnaireSurveyGetRequest() *TmallTmicQuestionnaireSurveyGetAPIRequest

初始化TmallTmicQuestionnaireSurveyGetAPIRequest对象

func (TmallTmicQuestionnaireSurveyGetAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TmallTmicQuestionnaireSurveyGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TmallTmicQuestionnaireSurveyGetAPIRequest) GetBiz added in v1.2.0

Biz Getter

func (TmallTmicQuestionnaireSurveyGetAPIRequest) GetHashCode added in v1.2.0

HashCode Getter

func (TmallTmicQuestionnaireSurveyGetAPIRequest) GetOpenUserId added in v1.2.0

OpenUserId Getter

func (*TmallTmicQuestionnaireSurveyGetAPIRequest) SetBiz added in v1.2.0

Biz Setter biz业务参数,1024表示投放id,下划线分隔,fav表示收藏行为的英文

func (*TmallTmicQuestionnaireSurveyGetAPIRequest) SetHashCode added in v1.2.0

func (r *TmallTmicQuestionnaireSurveyGetAPIRequest) SetHashCode(_hashCode string) error

HashCode Setter 问卷hashCode,问卷对外唯一编码

func (*TmallTmicQuestionnaireSurveyGetAPIRequest) SetOpenUserId added in v1.2.0

func (r *TmallTmicQuestionnaireSurveyGetAPIRequest) SetOpenUserId(_openUserId string) error

OpenUserId Setter open_id

type TmallTmicQuestionnaireSurveyGetAPIResponse

type TmallTmicQuestionnaireSurveyGetAPIResponse struct {
	model.CommonResponse
	TmallTmicQuestionnaireSurveyGetAPIResponseModel
}

天猫新品创新中心问卷数据获取 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"`
}

天猫新品创新中心问卷数据获取 成功返回结果

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 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL