Documentation
¶
Overview ¶
Package traderate 包含评价API相关结构体
Index ¶
- type GetMixRateListResult
- type ItemStatisticVo
- type MixRateVo
- type TabInfo
- type Tags
- type TaobaoFliggyWrateGetmixratelistAPIRequest
- func (r TaobaoFliggyWrateGetmixratelistAPIRequest) GetApiMethodName() string
- func (r TaobaoFliggyWrateGetmixratelistAPIRequest) GetApiParams() url.Values
- func (r TaobaoFliggyWrateGetmixratelistAPIRequest) GetParamTopGetMixRateListParam() *TopGetMixRateListParam
- func (r *TaobaoFliggyWrateGetmixratelistAPIRequest) SetParamTopGetMixRateListParam(_paramTopGetMixRateListParam *TopGetMixRateListParam) error
- type TaobaoFliggyWrateGetmixratelistAPIResponse
- type TaobaoFliggyWrateGetmixratelistAPIResponseModel
- type TaobaoFliggyWrateGetmixratelistResult
- type TaobaoTraderateAddAPIRequest
- func (r TaobaoTraderateAddAPIRequest) GetAnony() bool
- func (r TaobaoTraderateAddAPIRequest) GetApiMethodName() string
- func (r TaobaoTraderateAddAPIRequest) GetApiParams() url.Values
- func (r TaobaoTraderateAddAPIRequest) GetContent() string
- func (r TaobaoTraderateAddAPIRequest) GetOid() int64
- func (r TaobaoTraderateAddAPIRequest) GetResult() string
- func (r TaobaoTraderateAddAPIRequest) GetRole() string
- func (r TaobaoTraderateAddAPIRequest) GetTid() int64
- func (r *TaobaoTraderateAddAPIRequest) SetAnony(_anony bool) error
- func (r *TaobaoTraderateAddAPIRequest) SetContent(_content string) error
- func (r *TaobaoTraderateAddAPIRequest) SetOid(_oid int64) error
- func (r *TaobaoTraderateAddAPIRequest) SetResult(_result string) error
- func (r *TaobaoTraderateAddAPIRequest) SetRole(_role string) error
- func (r *TaobaoTraderateAddAPIRequest) SetTid(_tid int64) error
- type TaobaoTraderateAddAPIResponse
- type TaobaoTraderateAddAPIResponseModel
- type TaobaoTraderateExplainAddAPIRequest
- func (r TaobaoTraderateExplainAddAPIRequest) GetApiMethodName() string
- func (r TaobaoTraderateExplainAddAPIRequest) GetApiParams() url.Values
- func (r TaobaoTraderateExplainAddAPIRequest) GetOid() int64
- func (r TaobaoTraderateExplainAddAPIRequest) GetReply() string
- func (r *TaobaoTraderateExplainAddAPIRequest) SetOid(_oid int64) error
- func (r *TaobaoTraderateExplainAddAPIRequest) SetReply(_reply string) error
- type TaobaoTraderateExplainAddAPIResponse
- type TaobaoTraderateExplainAddAPIResponseModel
- type TaobaoTraderateListAddAPIRequest
- func (r TaobaoTraderateListAddAPIRequest) GetAnony() bool
- func (r TaobaoTraderateListAddAPIRequest) GetApiMethodName() string
- func (r TaobaoTraderateListAddAPIRequest) GetApiParams() url.Values
- func (r TaobaoTraderateListAddAPIRequest) GetContent() string
- func (r TaobaoTraderateListAddAPIRequest) GetResult() string
- func (r TaobaoTraderateListAddAPIRequest) GetRole() string
- func (r TaobaoTraderateListAddAPIRequest) GetTid() int64
- func (r *TaobaoTraderateListAddAPIRequest) SetAnony(_anony bool) error
- func (r *TaobaoTraderateListAddAPIRequest) SetContent(_content string) error
- func (r *TaobaoTraderateListAddAPIRequest) SetResult(_result string) error
- func (r *TaobaoTraderateListAddAPIRequest) SetRole(_role string) error
- func (r *TaobaoTraderateListAddAPIRequest) SetTid(_tid int64) error
- type TaobaoTraderateListAddAPIResponse
- type TaobaoTraderateListAddAPIResponseModel
- type TaobaoTraderatesGetAPIRequest
- func (r TaobaoTraderatesGetAPIRequest) GetApiMethodName() string
- func (r TaobaoTraderatesGetAPIRequest) GetApiParams() url.Values
- func (r TaobaoTraderatesGetAPIRequest) GetEndDate() string
- func (r TaobaoTraderatesGetAPIRequest) GetFields() []string
- func (r TaobaoTraderatesGetAPIRequest) GetNumIid() int64
- func (r TaobaoTraderatesGetAPIRequest) GetOuid() string
- func (r TaobaoTraderatesGetAPIRequest) GetPageNo() int64
- func (r TaobaoTraderatesGetAPIRequest) GetPageSize() int64
- func (r TaobaoTraderatesGetAPIRequest) GetRateType() string
- func (r TaobaoTraderatesGetAPIRequest) GetResult() string
- func (r TaobaoTraderatesGetAPIRequest) GetRole() string
- func (r TaobaoTraderatesGetAPIRequest) GetStartDate() string
- func (r TaobaoTraderatesGetAPIRequest) GetTid() int64
- func (r TaobaoTraderatesGetAPIRequest) GetUseHasNext() bool
- func (r *TaobaoTraderatesGetAPIRequest) SetEndDate(_endDate string) error
- func (r *TaobaoTraderatesGetAPIRequest) SetFields(_fields []string) error
- func (r *TaobaoTraderatesGetAPIRequest) SetNumIid(_numIid int64) error
- func (r *TaobaoTraderatesGetAPIRequest) SetOuid(_ouid string) error
- func (r *TaobaoTraderatesGetAPIRequest) SetPageNo(_pageNo int64) error
- func (r *TaobaoTraderatesGetAPIRequest) SetPageSize(_pageSize int64) error
- func (r *TaobaoTraderatesGetAPIRequest) SetRateType(_rateType string) error
- func (r *TaobaoTraderatesGetAPIRequest) SetResult(_result string) error
- func (r *TaobaoTraderatesGetAPIRequest) SetRole(_role string) error
- func (r *TaobaoTraderatesGetAPIRequest) SetStartDate(_startDate string) error
- func (r *TaobaoTraderatesGetAPIRequest) SetTid(_tid int64) error
- func (r *TaobaoTraderatesGetAPIRequest) SetUseHasNext(_useHasNext bool) error
- type TaobaoTraderatesGetAPIResponse
- type TaobaoTraderatesGetAPIResponseModel
- type TaobaoTraderatesGetResults
- type TmallRateTagDetail
- type TmallTraderateFeedsGetAPIRequest
- type TmallTraderateFeedsGetAPIResponse
- type TmallTraderateFeedsGetAPIResponseModel
- type TmallTraderateFeedsGetModel
- type TmallTraderateItemtagsGetAPIRequest
- type TmallTraderateItemtagsGetAPIResponse
- type TmallTraderateItemtagsGetAPIResponseModel
- type TopGetMixRateListParam
- type TradeRateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetMixRateListResult ¶
type GetMixRateListResult struct { // 评价明细信息 MixRates []MixRateVo `json:"mix_rates,omitempty" xml:"mix_rates>mix_rate_vo,omitempty"` // 错误信息 ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` // 是否下一页 HasNextPage int64 `json:"has_next_page,omitempty" xml:"has_next_page,omitempty"` // 评价统计信息 ItemStatistic *ItemStatisticVo `json:"item_statistic,omitempty" xml:"item_statistic,omitempty"` // 总数量 TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` // 是否成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
GetMixRateListResult 结构体
type ItemStatisticVo ¶
type ItemStatisticVo struct { // tab筛选信息 TabInfos []TabInfo `json:"tab_infos,omitempty" xml:"tab_infos>tab_info,omitempty"` // 评分描述信息 RankDesc string `json:"rank_desc,omitempty" xml:"rank_desc,omitempty"` // 子评分项信息 ScoreDetail string `json:"score_detail,omitempty" xml:"score_detail,omitempty"` // 总评分 TotalScore string `json:"total_score,omitempty" xml:"total_score,omitempty"` // 评论数量 RateCnt int64 `json:"rate_cnt,omitempty" xml:"rate_cnt,omitempty"` }
ItemStatisticVo 结构体
type MixRateVo ¶
type MixRateVo struct { // 图片信息 PictureUrls []string `json:"picture_urls,omitempty" xml:"picture_urls>string,omitempty"` // 正文内容 Content string `json:"content,omitempty" xml:"content,omitempty"` // 创建时间 GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` // 正文摘要 Title string `json:"title,omitempty" xml:"title,omitempty"` // 用户头像 UserIcon string `json:"user_icon,omitempty" xml:"user_icon,omitempty"` // 用户昵称 UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"` // 总评分 TotalScore int64 `json:"total_score,omitempty" xml:"total_score,omitempty"` }
MixRateVo 结构体
type TabInfo ¶
type TabInfo struct { // tab筛选信息Code,查询时使用 TabCode string `json:"tab_code,omitempty" xml:"tab_code,omitempty"` // 包含的数量 TabDetail string `json:"tab_detail,omitempty" xml:"tab_detail,omitempty"` // tab名称 TabName string `json:"tab_name,omitempty" xml:"tab_name,omitempty"` // 属性(正面负面) Attitude int64 `json:"attitude,omitempty" xml:"attitude,omitempty"` // 会否选中 IsClick bool `json:"is_click,omitempty" xml:"is_click,omitempty"` }
TabInfo 结构体
type Tags ¶ added in v1.2.5
type Tags struct { // 表示标签的名称 TagName string `json:"tag_name,omitempty" xml:"tag_name,omitempty"` // 表示标签的极性,正极true,负极false Posi bool `json:"posi,omitempty" xml:"posi,omitempty"` }
Tags 结构体
type TaobaoFliggyWrateGetmixratelistAPIRequest ¶ added in v1.2.0
type TaobaoFliggyWrateGetmixratelistAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoFliggyWrateGetmixratelistAPIRequest 飞猪通用评价接口 API请求 taobao.fliggy.wrate.getmixratelist
飞猪评价通用接口
func NewTaobaoFliggyWrateGetmixratelistRequest ¶
func NewTaobaoFliggyWrateGetmixratelistRequest() *TaobaoFliggyWrateGetmixratelistAPIRequest
NewTaobaoFliggyWrateGetmixratelistRequest 初始化TaobaoFliggyWrateGetmixratelistAPIRequest对象
func (TaobaoFliggyWrateGetmixratelistAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoFliggyWrateGetmixratelistAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoFliggyWrateGetmixratelistAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoFliggyWrateGetmixratelistAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoFliggyWrateGetmixratelistAPIRequest) GetParamTopGetMixRateListParam ¶ added in v1.2.0
func (r TaobaoFliggyWrateGetmixratelistAPIRequest) GetParamTopGetMixRateListParam() *TopGetMixRateListParam
GetParamTopGetMixRateListParam ParamTopGetMixRateListParam Getter
func (*TaobaoFliggyWrateGetmixratelistAPIRequest) SetParamTopGetMixRateListParam ¶ added in v1.2.0
func (r *TaobaoFliggyWrateGetmixratelistAPIRequest) SetParamTopGetMixRateListParam(_paramTopGetMixRateListParam *TopGetMixRateListParam) error
SetParamTopGetMixRateListParam is ParamTopGetMixRateListParam Setter 评论列表查询参数
type TaobaoFliggyWrateGetmixratelistAPIResponse ¶
type TaobaoFliggyWrateGetmixratelistAPIResponse struct { model.CommonResponse TaobaoFliggyWrateGetmixratelistAPIResponseModel }
TaobaoFliggyWrateGetmixratelistAPIResponse 飞猪通用评价接口 API返回值 taobao.fliggy.wrate.getmixratelist
飞猪评价通用接口
type TaobaoFliggyWrateGetmixratelistAPIResponseModel ¶ added in v1.2.0
type TaobaoFliggyWrateGetmixratelistAPIResponseModel struct { XMLName xml.Name `xml:"fliggy_wrate_getmixratelist_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 接口返回model Result *TaobaoFliggyWrateGetmixratelistResult `json:"result,omitempty" xml:"result,omitempty"` }
TaobaoFliggyWrateGetmixratelistAPIResponseModel is 飞猪通用评价接口 成功返回结果
type TaobaoFliggyWrateGetmixratelistResult ¶
type TaobaoFliggyWrateGetmixratelistResult struct { // 返回对象 Model *GetMixRateListResult `json:"model,omitempty" xml:"model,omitempty"` // 是否成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
TaobaoFliggyWrateGetmixratelistResult 结构体
type TaobaoTraderateAddAPIRequest ¶ added in v1.2.0
TaobaoTraderateAddAPIRequest 新增单个评价 API请求 taobao.traderate.add
新增单个评价(<font color="red">注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不能再通过该接口进行评价</font>)
func NewTaobaoTraderateAddRequest ¶
func NewTaobaoTraderateAddRequest() *TaobaoTraderateAddAPIRequest
NewTaobaoTraderateAddRequest 初始化TaobaoTraderateAddAPIRequest对象
func (TaobaoTraderateAddAPIRequest) GetAnony ¶ added in v1.2.0
func (r TaobaoTraderateAddAPIRequest) GetAnony() bool
GetAnony Anony Getter
func (TaobaoTraderateAddAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoTraderateAddAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoTraderateAddAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoTraderateAddAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoTraderateAddAPIRequest) GetContent ¶ added in v1.2.0
func (r TaobaoTraderateAddAPIRequest) GetContent() string
GetContent Content Getter
func (TaobaoTraderateAddAPIRequest) GetOid ¶ added in v1.2.0
func (r TaobaoTraderateAddAPIRequest) GetOid() int64
GetOid Oid Getter
func (TaobaoTraderateAddAPIRequest) GetResult ¶ added in v1.2.0
func (r TaobaoTraderateAddAPIRequest) GetResult() string
GetResult Result Getter
func (TaobaoTraderateAddAPIRequest) GetRole ¶ added in v1.2.0
func (r TaobaoTraderateAddAPIRequest) GetRole() string
GetRole Role Getter
func (TaobaoTraderateAddAPIRequest) GetTid ¶ added in v1.2.0
func (r TaobaoTraderateAddAPIRequest) GetTid() int64
GetTid Tid Getter
func (*TaobaoTraderateAddAPIRequest) SetAnony ¶ added in v1.2.0
func (r *TaobaoTraderateAddAPIRequest) SetAnony(_anony bool) error
SetAnony is Anony Setter 是否匿名,卖家评不能匿名。可选值:true(匿名),false(非匿名)。注意:如果交易订单匿名,则评价也匿名
func (*TaobaoTraderateAddAPIRequest) SetContent ¶ added in v1.2.0
func (r *TaobaoTraderateAddAPIRequest) SetContent(_content string) error
SetContent is Content Setter 评价内容,最大长度: 500个汉字 .注意:当评价结果为good时就不用输入评价内容.评价内容为neutral/bad的时候需要输入评价内容
func (*TaobaoTraderateAddAPIRequest) SetOid ¶ added in v1.2.0
func (r *TaobaoTraderateAddAPIRequest) SetOid(_oid int64) error
SetOid is Oid Setter 子订单ID
func (*TaobaoTraderateAddAPIRequest) SetResult ¶ added in v1.2.0
func (r *TaobaoTraderateAddAPIRequest) SetResult(_result string) error
SetResult is Result Setter 评价结果,可选值:good(好评),neutral(中评),bad(差评)
func (*TaobaoTraderateAddAPIRequest) SetRole ¶ added in v1.2.0
func (r *TaobaoTraderateAddAPIRequest) SetRole(_role string) error
SetRole is Role Setter 评价者角色,可选值:seller(卖家),buyer(买家)
func (*TaobaoTraderateAddAPIRequest) SetTid ¶ added in v1.2.0
func (r *TaobaoTraderateAddAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 交易ID
type TaobaoTraderateAddAPIResponse ¶
type TaobaoTraderateAddAPIResponse struct { model.CommonResponse TaobaoTraderateAddAPIResponseModel }
TaobaoTraderateAddAPIResponse 新增单个评价 API返回值 taobao.traderate.add
新增单个评价(<font color="red">注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不能再通过该接口进行评价</font>)
type TaobaoTraderateAddAPIResponseModel ¶ added in v1.2.0
type TaobaoTraderateAddAPIResponseModel struct { XMLName xml.Name `xml:"traderate_add_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回tid、oid、create TradeRate *TradeRateRequest `json:"trade_rate,omitempty" xml:"trade_rate,omitempty"` }
TaobaoTraderateAddAPIResponseModel is 新增单个评价 成功返回结果
type TaobaoTraderateExplainAddAPIRequest ¶ added in v1.2.0
type TaobaoTraderateExplainAddAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoTraderateExplainAddAPIRequest 商城评价解释接口 API请求 taobao.traderate.explain.add
商城卖家给评价做出解释(买家追加评论后、评价超过30天的,都不能再做评价解释)
func NewTaobaoTraderateExplainAddRequest ¶
func NewTaobaoTraderateExplainAddRequest() *TaobaoTraderateExplainAddAPIRequest
NewTaobaoTraderateExplainAddRequest 初始化TaobaoTraderateExplainAddAPIRequest对象
func (TaobaoTraderateExplainAddAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoTraderateExplainAddAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoTraderateExplainAddAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoTraderateExplainAddAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoTraderateExplainAddAPIRequest) GetOid ¶ added in v1.2.0
func (r TaobaoTraderateExplainAddAPIRequest) GetOid() int64
GetOid Oid Getter
func (TaobaoTraderateExplainAddAPIRequest) GetReply ¶ added in v1.2.0
func (r TaobaoTraderateExplainAddAPIRequest) GetReply() string
GetReply Reply Getter
func (*TaobaoTraderateExplainAddAPIRequest) SetOid ¶ added in v1.2.0
func (r *TaobaoTraderateExplainAddAPIRequest) SetOid(_oid int64) error
SetOid is Oid Setter 子订单ID
func (*TaobaoTraderateExplainAddAPIRequest) SetReply ¶ added in v1.2.0
func (r *TaobaoTraderateExplainAddAPIRequest) SetReply(_reply string) error
SetReply is Reply Setter 评价解释内容,最大长度:500个汉字
type TaobaoTraderateExplainAddAPIResponse ¶
type TaobaoTraderateExplainAddAPIResponse struct { model.CommonResponse TaobaoTraderateExplainAddAPIResponseModel }
TaobaoTraderateExplainAddAPIResponse 商城评价解释接口 API返回值 taobao.traderate.explain.add
商城卖家给评价做出解释(买家追加评论后、评价超过30天的,都不能再做评价解释)
type TaobaoTraderateExplainAddAPIResponseModel ¶ added in v1.2.0
type TaobaoTraderateExplainAddAPIResponseModel struct { XMLName xml.Name `xml:"traderate_explain_add_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 商城卖家给评价解释是否成功。 IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` }
TaobaoTraderateExplainAddAPIResponseModel is 商城评价解释接口 成功返回结果
type TaobaoTraderateListAddAPIRequest ¶ added in v1.2.0
type TaobaoTraderateListAddAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoTraderateListAddAPIRequest 针对父子订单新增批量评价 API请求 taobao.traderate.list.add
针对父子订单新增批量评价(<font color="red">注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不用再通过该接口进行评价</font>)
func NewTaobaoTraderateListAddRequest ¶
func NewTaobaoTraderateListAddRequest() *TaobaoTraderateListAddAPIRequest
NewTaobaoTraderateListAddRequest 初始化TaobaoTraderateListAddAPIRequest对象
func (TaobaoTraderateListAddAPIRequest) GetAnony ¶ added in v1.2.0
func (r TaobaoTraderateListAddAPIRequest) GetAnony() bool
GetAnony Anony Getter
func (TaobaoTraderateListAddAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoTraderateListAddAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoTraderateListAddAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoTraderateListAddAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoTraderateListAddAPIRequest) GetContent ¶ added in v1.2.0
func (r TaobaoTraderateListAddAPIRequest) GetContent() string
GetContent Content Getter
func (TaobaoTraderateListAddAPIRequest) GetResult ¶ added in v1.2.0
func (r TaobaoTraderateListAddAPIRequest) GetResult() string
GetResult Result Getter
func (TaobaoTraderateListAddAPIRequest) GetRole ¶ added in v1.2.0
func (r TaobaoTraderateListAddAPIRequest) GetRole() string
GetRole Role Getter
func (TaobaoTraderateListAddAPIRequest) GetTid ¶ added in v1.2.0
func (r TaobaoTraderateListAddAPIRequest) GetTid() int64
GetTid Tid Getter
func (*TaobaoTraderateListAddAPIRequest) SetAnony ¶ added in v1.2.0
func (r *TaobaoTraderateListAddAPIRequest) SetAnony(_anony bool) error
SetAnony is Anony Setter 是否匿名,卖家评不能匿名。可选值:true(匿名),false(非匿名)。 注意:如果买家匿名购买,那么买家的评价默认匿名
func (*TaobaoTraderateListAddAPIRequest) SetContent ¶ added in v1.2.0
func (r *TaobaoTraderateListAddAPIRequest) SetContent(_content string) error
SetContent is Content Setter 评价内容,最大长度: 500个汉字 .注意:当评价结果为good时就不用输入评价内容.评价内容为neutral/bad的时候需要输入评价内容
func (*TaobaoTraderateListAddAPIRequest) SetResult ¶ added in v1.2.0
func (r *TaobaoTraderateListAddAPIRequest) SetResult(_result string) error
SetResult is Result Setter 评价结果。可选值:good(好评),neutral(中评),bad(差评)
func (*TaobaoTraderateListAddAPIRequest) SetRole ¶ added in v1.2.0
func (r *TaobaoTraderateListAddAPIRequest) SetRole(_role string) error
SetRole is Role Setter 评价者角色。可选值:seller(卖家),buyer(买家)
func (*TaobaoTraderateListAddAPIRequest) SetTid ¶ added in v1.2.0
func (r *TaobaoTraderateListAddAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 交易ID
type TaobaoTraderateListAddAPIResponse ¶
type TaobaoTraderateListAddAPIResponse struct { model.CommonResponse TaobaoTraderateListAddAPIResponseModel }
TaobaoTraderateListAddAPIResponse 针对父子订单新增批量评价 API返回值 taobao.traderate.list.add
针对父子订单新增批量评价(<font color="red">注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不用再通过该接口进行评价</font>)
type TaobaoTraderateListAddAPIResponseModel ¶ added in v1.2.0
type TaobaoTraderateListAddAPIResponseModel struct { XMLName xml.Name `xml:"traderate_list_add_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回的评论的信息,仅返回tid和created字段 TradeRate *TradeRateRequest `json:"trade_rate,omitempty" xml:"trade_rate,omitempty"` }
TaobaoTraderateListAddAPIResponseModel is 针对父子订单新增批量评价 成功返回结果
type TaobaoTraderatesGetAPIRequest ¶ added in v1.2.0
type TaobaoTraderatesGetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoTraderatesGetAPIRequest 搜索评价信息 API请求 taobao.traderates.get
搜索评价信息,只能获取距今180天内的评价记录(只支持查询卖家给出或得到的评价)。
func NewTaobaoTraderatesGetRequest ¶
func NewTaobaoTraderatesGetRequest() *TaobaoTraderatesGetAPIRequest
NewTaobaoTraderatesGetRequest 初始化TaobaoTraderatesGetAPIRequest对象
func (TaobaoTraderatesGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoTraderatesGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoTraderatesGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoTraderatesGetAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoTraderatesGetAPIRequest) GetEndDate ¶ added in v1.2.0
func (r TaobaoTraderatesGetAPIRequest) GetEndDate() string
GetEndDate EndDate Getter
func (TaobaoTraderatesGetAPIRequest) GetFields ¶ added in v1.2.0
func (r TaobaoTraderatesGetAPIRequest) GetFields() []string
GetFields Fields Getter
func (TaobaoTraderatesGetAPIRequest) GetNumIid ¶ added in v1.2.0
func (r TaobaoTraderatesGetAPIRequest) GetNumIid() int64
GetNumIid NumIid Getter
func (TaobaoTraderatesGetAPIRequest) GetOuid ¶ added in v1.2.5
func (r TaobaoTraderatesGetAPIRequest) GetOuid() string
GetOuid Ouid Getter
func (TaobaoTraderatesGetAPIRequest) GetPageNo ¶ added in v1.2.0
func (r TaobaoTraderatesGetAPIRequest) GetPageNo() int64
GetPageNo PageNo Getter
func (TaobaoTraderatesGetAPIRequest) GetPageSize ¶ added in v1.2.0
func (r TaobaoTraderatesGetAPIRequest) GetPageSize() int64
GetPageSize PageSize Getter
func (TaobaoTraderatesGetAPIRequest) GetRateType ¶ added in v1.2.0
func (r TaobaoTraderatesGetAPIRequest) GetRateType() string
GetRateType RateType Getter
func (TaobaoTraderatesGetAPIRequest) GetResult ¶ added in v1.2.0
func (r TaobaoTraderatesGetAPIRequest) GetResult() string
GetResult Result Getter
func (TaobaoTraderatesGetAPIRequest) GetRole ¶ added in v1.2.0
func (r TaobaoTraderatesGetAPIRequest) GetRole() string
GetRole Role Getter
func (TaobaoTraderatesGetAPIRequest) GetStartDate ¶ added in v1.2.0
func (r TaobaoTraderatesGetAPIRequest) GetStartDate() string
GetStartDate StartDate Getter
func (TaobaoTraderatesGetAPIRequest) GetTid ¶ added in v1.2.0
func (r TaobaoTraderatesGetAPIRequest) GetTid() int64
GetTid Tid Getter
func (TaobaoTraderatesGetAPIRequest) GetUseHasNext ¶ added in v1.2.0
func (r TaobaoTraderatesGetAPIRequest) GetUseHasNext() bool
GetUseHasNext UseHasNext Getter
func (*TaobaoTraderatesGetAPIRequest) SetEndDate ¶ added in v1.2.0
func (r *TaobaoTraderatesGetAPIRequest) SetEndDate(_endDate string) error
SetEndDate is EndDate Setter 评价结束时间。如果只输入结束时间,那么全部返回所有评价数据。
func (*TaobaoTraderatesGetAPIRequest) SetFields ¶ added in v1.2.0
func (r *TaobaoTraderatesGetAPIRequest) SetFields(_fields []string) error
SetFields is Fields Setter 需返回的字段列表。可选值:TradeRate 结构中的所有字段,多个字段之间用“,”分隔
func (*TaobaoTraderatesGetAPIRequest) SetNumIid ¶ added in v1.2.0
func (r *TaobaoTraderatesGetAPIRequest) SetNumIid(_numIid int64) error
SetNumIid is NumIid Setter 商品的数字ID
func (*TaobaoTraderatesGetAPIRequest) SetOuid ¶ added in v1.2.5
func (r *TaobaoTraderatesGetAPIRequest) SetOuid(_ouid string) error
SetOuid is Ouid Setter ouid
func (*TaobaoTraderatesGetAPIRequest) SetPageNo ¶ added in v1.2.0
func (r *TaobaoTraderatesGetAPIRequest) SetPageNo(_pageNo int64) error
SetPageNo is PageNo Setter 页码。取值范围:大于零的整数最大限制为200; 默认值:1
func (*TaobaoTraderatesGetAPIRequest) SetPageSize ¶ added in v1.2.0
func (r *TaobaoTraderatesGetAPIRequest) SetPageSize(_pageSize int64) error
SetPageSize is PageSize Setter 每页获取条数。默认值40,最小值1,最大值150。
func (*TaobaoTraderatesGetAPIRequest) SetRateType ¶ added in v1.2.0
func (r *TaobaoTraderatesGetAPIRequest) SetRateType(_rateType string) error
SetRateType is RateType Setter 评价类型。可选值:get(得到),give(给出)
func (*TaobaoTraderatesGetAPIRequest) SetResult ¶ added in v1.2.0
func (r *TaobaoTraderatesGetAPIRequest) SetResult(_result string) error
SetResult is Result Setter 评价结果。可选值:good(好评),neutral(中评),bad(差评)
func (*TaobaoTraderatesGetAPIRequest) SetRole ¶ added in v1.2.0
func (r *TaobaoTraderatesGetAPIRequest) SetRole(_role string) error
SetRole is Role Setter 评价者角色即评价的发起方。可选值:seller(卖家),buyer(买家)。 当 give buyer 以买家身份给卖家的评价; 当 get seller 以买家身份得到卖家给的评价; 当 give seller 以卖家身份给买家的评价; 当 get buyer 以卖家身份得到买家给的评价。
func (*TaobaoTraderatesGetAPIRequest) SetStartDate ¶ added in v1.2.0
func (r *TaobaoTraderatesGetAPIRequest) SetStartDate(_startDate string) error
SetStartDate is StartDate Setter 评价开始时。如果只输入开始时间,那么能返回开始时间之后的评价数据。
func (*TaobaoTraderatesGetAPIRequest) SetTid ¶ added in v1.2.0
func (r *TaobaoTraderatesGetAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 交易订单id,可以是父订单id号,也可以是子订单id号
func (*TaobaoTraderatesGetAPIRequest) SetUseHasNext ¶ added in v1.2.0
func (r *TaobaoTraderatesGetAPIRequest) SetUseHasNext(_useHasNext bool) error
SetUseHasNext is UseHasNext Setter 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取评价信息,效率在原有的基础上有80%的提升。
type TaobaoTraderatesGetAPIResponse ¶
type TaobaoTraderatesGetAPIResponse struct { model.CommonResponse TaobaoTraderatesGetAPIResponseModel }
TaobaoTraderatesGetAPIResponse 搜索评价信息 API返回值 taobao.traderates.get
搜索评价信息,只能获取距今180天内的评价记录(只支持查询卖家给出或得到的评价)。
type TaobaoTraderatesGetAPIResponseModel ¶ added in v1.2.0
type TaobaoTraderatesGetAPIResponseModel struct { XMLName xml.Name `xml:"traderates_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 评价列表。返回的TradeRate包含的具体信息为入参fields请求的字段信息 TradeRates []TaobaoTraderatesGetResults `json:"trade_rates,omitempty" xml:"trade_rates>taobao_traderates_get_results,omitempty"` // 搜索到的评价总数。相同的查询时间段条件下,最大只能获取总共1500条评价记录。所以当评价大于等于1500时 ISV可以通过start_date及end_date来进行拆分,以保证可以查询到全部数据 TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` // 当使用use_has_next时返回信息,如果还有下一页则返回true HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` }
TaobaoTraderatesGetAPIResponseModel is 搜索评价信息 成功返回结果
type TaobaoTraderatesGetResults ¶ added in v1.2.5
type TaobaoTraderatesGetResults struct { // 评价者角色.可选值:seller(卖家),buyer(买家) Role string `json:"role,omitempty" xml:"role,omitempty"` // 评价者昵称 Nick string `json:"nick,omitempty" xml:"nick,omitempty"` // 评价结果,可选值:good(好评),neutral(中评),bad(差评) Result string `json:"result,omitempty" xml:"result,omitempty"` // 评价创建时间,格式:yyyy-MM-dd HH:mm:ss Created string `json:"created,omitempty" xml:"created,omitempty"` // 被评价者昵称 RatedNick string `json:"rated_nick,omitempty" xml:"rated_nick,omitempty"` // 商品标题 ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"` // 商品价格,精确到2位小数;单位:元.如:200.07,表示:200元7分 ItemPrice string `json:"item_price,omitempty" xml:"item_price,omitempty"` // 评价内容,最大长度:500个汉字 Content string `json:"content,omitempty" xml:"content,omitempty"` // 评价解释,最大长度:500个汉字 Reply string `json:"reply,omitempty" xml:"reply,omitempty"` // ouid Ouid string `json:"ouid,omitempty" xml:"ouid,omitempty"` // 交易ID Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"` // 子订单ID Oid int64 `json:"oid,omitempty" xml:"oid,omitempty"` // 商品的数字ID NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"` // 物流服务评分 LogisticsServiceScore int64 `json:"logistics_service_score,omitempty" xml:"logistics_service_score,omitempty"` // 评价信息是否用于记分,<br/>可取值:true(参与记分)和false(不参与记分) ValidScore bool `json:"valid_score,omitempty" xml:"valid_score,omitempty"` }
TaobaoTraderatesGetResults 结构体
type TmallRateTagDetail ¶
type TmallRateTagDetail struct { // 标签名称 TagName string `json:"tag_name,omitempty" xml:"tag_name,omitempty"` // 反应该标签的评价数量 Count int64 `json:"count,omitempty" xml:"count,omitempty"` // 标签的极性:1正极 -1负极 Posi bool `json:"posi,omitempty" xml:"posi,omitempty"` }
TmallRateTagDetail 结构体
type TmallTraderateFeedsGetAPIRequest ¶ added in v1.2.0
type TmallTraderateFeedsGetAPIRequest struct { model.Params // contains filtered or unexported fields }
TmallTraderateFeedsGetAPIRequest 查询子订单对应的评价、追评以及语义标签 API请求 tmall.traderate.feeds.get
通过子订单ID获取天猫订单对应的评价,追评,以及对应的语义标签
func NewTmallTraderateFeedsGetRequest ¶
func NewTmallTraderateFeedsGetRequest() *TmallTraderateFeedsGetAPIRequest
NewTmallTraderateFeedsGetRequest 初始化TmallTraderateFeedsGetAPIRequest对象
func (TmallTraderateFeedsGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TmallTraderateFeedsGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TmallTraderateFeedsGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TmallTraderateFeedsGetAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TmallTraderateFeedsGetAPIRequest) GetChildTradeId ¶ added in v1.2.0
func (r TmallTraderateFeedsGetAPIRequest) GetChildTradeId() int64
GetChildTradeId ChildTradeId Getter
func (*TmallTraderateFeedsGetAPIRequest) SetChildTradeId ¶ added in v1.2.0
func (r *TmallTraderateFeedsGetAPIRequest) SetChildTradeId(_childTradeId int64) error
SetChildTradeId is ChildTradeId Setter 交易子订单ID
type TmallTraderateFeedsGetAPIResponse ¶
type TmallTraderateFeedsGetAPIResponse struct { model.CommonResponse TmallTraderateFeedsGetAPIResponseModel }
TmallTraderateFeedsGetAPIResponse 查询子订单对应的评价、追评以及语义标签 API返回值 tmall.traderate.feeds.get
通过子订单ID获取天猫订单对应的评价,追评,以及对应的语义标签
type TmallTraderateFeedsGetAPIResponseModel ¶ added in v1.2.0
type TmallTraderateFeedsGetAPIResponseModel struct { XMLName xml.Name `xml:"tmall_traderate_feeds_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回评价信息 TmallRateInfo *TmallTraderateFeedsGetModel `json:"tmall_rate_info,omitempty" xml:"tmall_rate_info,omitempty"` }
TmallTraderateFeedsGetAPIResponseModel is 查询子订单对应的评价、追评以及语义标签 成功返回结果
type TmallTraderateFeedsGetModel ¶ added in v1.2.5
type TmallTraderateFeedsGetModel struct { // 原始评价对应的标签列表 Tags []Tags `json:"tags,omitempty" xml:"tags>tags,omitempty"` // 追加评价中带有的语义标签列表 AppendTags []Tags `json:"append_tags,omitempty" xml:"append_tags>tags,omitempty"` // 表示评价者的昵称 UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"` // 评价内容 Content string `json:"content,omitempty" xml:"content,omitempty"` // 评价时间 CommentTime string `json:"comment_time,omitempty" xml:"comment_time,omitempty"` // 追加评价内容 AppendContent string `json:"append_content,omitempty" xml:"append_content,omitempty"` // 追加评价时间 AppendTime string `json:"append_time,omitempty" xml:"append_time,omitempty"` // ouid Ouid string `json:"ouid,omitempty" xml:"ouid,omitempty"` // 原始评价是否含有负向标签 HasNegtv bool `json:"has_negtv,omitempty" xml:"has_negtv,omitempty"` // 追评中是否含有负向标签 AppendHasNegtv bool `json:"append_has_negtv,omitempty" xml:"append_has_negtv,omitempty"` }
TmallTraderateFeedsGetModel 结构体
type TmallTraderateItemtagsGetAPIRequest ¶ added in v1.2.0
type TmallTraderateItemtagsGetAPIRequest struct { // contains filtered or unexported fields }
TmallTraderateItemtagsGetAPIRequest 通过商品ID获取标签列表 API请求 tmall.traderate.itemtags.get
通过商品ID获取标签详细信息
func NewTmallTraderateItemtagsGetRequest ¶
func NewTmallTraderateItemtagsGetRequest() *TmallTraderateItemtagsGetAPIRequest
NewTmallTraderateItemtagsGetRequest 初始化TmallTraderateItemtagsGetAPIRequest对象
func (TmallTraderateItemtagsGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TmallTraderateItemtagsGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TmallTraderateItemtagsGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TmallTraderateItemtagsGetAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TmallTraderateItemtagsGetAPIRequest) GetItemId ¶ added in v1.2.0
func (r TmallTraderateItemtagsGetAPIRequest) GetItemId() int64
GetItemId ItemId Getter
func (*TmallTraderateItemtagsGetAPIRequest) SetItemId ¶ added in v1.2.0
func (r *TmallTraderateItemtagsGetAPIRequest) SetItemId(_itemId int64) error
SetItemId is ItemId Setter 商品ID
type TmallTraderateItemtagsGetAPIResponse ¶
type TmallTraderateItemtagsGetAPIResponse struct {}
TmallTraderateItemtagsGetAPIResponse 通过商品ID获取标签列表 API返回值 tmall.traderate.itemtags.get
通过商品ID获取标签详细信息
type TmallTraderateItemtagsGetAPIResponseModel ¶ added in v1.2.0
type TmallTraderateItemtagsGetAPIResponseModel struct { string `json:"request_id,omitempty" xml:"request_id,omitempty"` Tags []TmallRateTagDetail `json:"tags,omitempty" xml:"tags>tmall_rate_tag_detail,omitempty"` }RequestId
TmallTraderateItemtagsGetAPIResponseModel is 通过商品ID获取标签列表 成功返回结果
type TopGetMixRateListParam ¶
type TopGetMixRateListParam struct { // 筛选条件JSON TabFilter string `json:"tab_filter,omitempty" xml:"tab_filter,omitempty"` // 类型 BizType int64 `json:"biz_type,omitempty" xml:"biz_type,omitempty"` // 酒店或商品ID ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` // pageNo PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"` // pageSize PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` }
TopGetMixRateListParam 结构体
type TradeRateRequest ¶
type TradeRateRequest struct { // 评价创建时间,格式:yyyy-MM-dd HH:mm:ss Created string `json:"created,omitempty" xml:"created,omitempty"` // 交易ID Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"` // 子订单ID Oid int64 `json:"oid,omitempty" xml:"oid,omitempty"` }
TradeRateRequest 结构体
Source Files
¶
- GetMixRateListResult.go
- ItemStatisticVo.go
- MixRateVo.go
- TabInfo.go
- Tags.go
- TaobaoFliggyWrateGetmixratelistAPIRequest.go
- TaobaoFliggyWrateGetmixratelistAPIResponse.go
- TaobaoFliggyWrateGetmixratelistResult.go
- TaobaoTraderateAddAPIRequest.go
- TaobaoTraderateAddAPIResponse.go
- TaobaoTraderateExplainAddAPIRequest.go
- TaobaoTraderateExplainAddAPIResponse.go
- TaobaoTraderateListAddAPIRequest.go
- TaobaoTraderateListAddAPIResponse.go
- TaobaoTraderatesGetAPIRequest.go
- TaobaoTraderatesGetAPIResponse.go
- TaobaoTraderatesGetResults.go
- TmallRateTagDetail.go
- TmallTraderateFeedsGetAPIRequest.go
- TmallTraderateFeedsGetAPIResponse.go
- TmallTraderateFeedsGetModel.go
- TmallTraderateItemtagsGetAPIRequest.go
- TmallTraderateItemtagsGetAPIResponse.go
- TopGetMixRateListParam.go
- TradeRateRequest.go
- doc.go