Documentation ¶
Overview ¶
评价API model
Index ¶
- type GetMixRateListResult
- type ItemStatisticVo
- type MixRateVo
- type TabInfo
- type TaobaoFliggyWrateGetmixratelistAPIResponse
- type TaobaoFliggyWrateGetmixratelistRequest
- func (r TaobaoFliggyWrateGetmixratelistRequest) GetApiMethodName() string
- func (r TaobaoFliggyWrateGetmixratelistRequest) GetApiParams() url.Values
- func (r TaobaoFliggyWrateGetmixratelistRequest) GetParamTopGetMixRateListParam() *TopGetMixRateListParam
- func (r *TaobaoFliggyWrateGetmixratelistRequest) SetParamTopGetMixRateListParam(paramTopGetMixRateListParam *TopGetMixRateListParam) error
- type TaobaoFliggyWrateGetmixratelistResponse
- type TaobaoFliggyWrateGetmixratelistResult
- type TaobaoTraderateAddAPIResponse
- type TaobaoTraderateAddRequest
- func (r TaobaoTraderateAddRequest) GetAnony() bool
- func (r TaobaoTraderateAddRequest) GetApiMethodName() string
- func (r TaobaoTraderateAddRequest) GetApiParams() url.Values
- func (r TaobaoTraderateAddRequest) GetContent() string
- func (r TaobaoTraderateAddRequest) GetOid() int64
- func (r TaobaoTraderateAddRequest) GetResult() string
- func (r TaobaoTraderateAddRequest) GetRole() string
- func (r TaobaoTraderateAddRequest) GetTid() int64
- func (r *TaobaoTraderateAddRequest) SetAnony(anony bool) error
- func (r *TaobaoTraderateAddRequest) SetContent(content string) error
- func (r *TaobaoTraderateAddRequest) SetOid(oid int64) error
- func (r *TaobaoTraderateAddRequest) SetResult(result string) error
- func (r *TaobaoTraderateAddRequest) SetRole(role string) error
- func (r *TaobaoTraderateAddRequest) SetTid(tid int64) error
- type TaobaoTraderateAddResponse
- type TaobaoTraderateExplainAddAPIResponse
- type TaobaoTraderateExplainAddRequest
- func (r TaobaoTraderateExplainAddRequest) GetApiMethodName() string
- func (r TaobaoTraderateExplainAddRequest) GetApiParams() url.Values
- func (r TaobaoTraderateExplainAddRequest) GetOid() int64
- func (r TaobaoTraderateExplainAddRequest) GetReply() string
- func (r *TaobaoTraderateExplainAddRequest) SetOid(oid int64) error
- func (r *TaobaoTraderateExplainAddRequest) SetReply(reply string) error
- type TaobaoTraderateExplainAddResponse
- type TaobaoTraderateImprImprwordsGetAPIResponse
- type TaobaoTraderateImprImprwordsGetRequest
- func (r TaobaoTraderateImprImprwordsGetRequest) GetApiMethodName() string
- func (r TaobaoTraderateImprImprwordsGetRequest) GetApiParams() url.Values
- func (r TaobaoTraderateImprImprwordsGetRequest) GetCatLeafId() int64
- func (r TaobaoTraderateImprImprwordsGetRequest) GetCatRootId() int64
- func (r *TaobaoTraderateImprImprwordsGetRequest) SetCatLeafId(catLeafId int64) error
- func (r *TaobaoTraderateImprImprwordsGetRequest) SetCatRootId(catRootId int64) error
- type TaobaoTraderateImprImprwordsGetResponse
- type TaobaoTraderateListAddAPIResponse
- type TaobaoTraderateListAddRequest
- func (r TaobaoTraderateListAddRequest) GetAnony() bool
- func (r TaobaoTraderateListAddRequest) GetApiMethodName() string
- func (r TaobaoTraderateListAddRequest) GetApiParams() url.Values
- func (r TaobaoTraderateListAddRequest) GetContent() string
- func (r TaobaoTraderateListAddRequest) GetResult() string
- func (r TaobaoTraderateListAddRequest) GetRole() string
- func (r TaobaoTraderateListAddRequest) GetTid() int64
- func (r *TaobaoTraderateListAddRequest) SetAnony(anony bool) error
- func (r *TaobaoTraderateListAddRequest) SetContent(content string) error
- func (r *TaobaoTraderateListAddRequest) SetResult(result string) error
- func (r *TaobaoTraderateListAddRequest) SetRole(role string) error
- func (r *TaobaoTraderateListAddRequest) SetTid(tid int64) error
- type TaobaoTraderateListAddResponse
- type TaobaoTraderatesGetAPIResponse
- type TaobaoTraderatesGetRequest
- func (r TaobaoTraderatesGetRequest) GetApiMethodName() string
- func (r TaobaoTraderatesGetRequest) GetApiParams() url.Values
- func (r TaobaoTraderatesGetRequest) GetEndDate() string
- func (r TaobaoTraderatesGetRequest) GetFields() []string
- func (r TaobaoTraderatesGetRequest) GetNumIid() int64
- func (r TaobaoTraderatesGetRequest) GetPageNo() int64
- func (r TaobaoTraderatesGetRequest) GetPageSize() int64
- func (r TaobaoTraderatesGetRequest) GetRateType() string
- func (r TaobaoTraderatesGetRequest) GetResult() string
- func (r TaobaoTraderatesGetRequest) GetRole() string
- func (r TaobaoTraderatesGetRequest) GetStartDate() string
- func (r TaobaoTraderatesGetRequest) GetTid() int64
- func (r TaobaoTraderatesGetRequest) GetUseHasNext() bool
- func (r *TaobaoTraderatesGetRequest) SetEndDate(endDate string) error
- func (r *TaobaoTraderatesGetRequest) SetFields(fields []string) error
- func (r *TaobaoTraderatesGetRequest) SetNumIid(numIid int64) error
- func (r *TaobaoTraderatesGetRequest) SetPageNo(pageNo int64) error
- func (r *TaobaoTraderatesGetRequest) SetPageSize(pageSize int64) error
- func (r *TaobaoTraderatesGetRequest) SetRateType(rateType string) error
- func (r *TaobaoTraderatesGetRequest) SetResult(result string) error
- func (r *TaobaoTraderatesGetRequest) SetRole(role string) error
- func (r *TaobaoTraderatesGetRequest) SetStartDate(startDate string) error
- func (r *TaobaoTraderatesGetRequest) SetTid(tid int64) error
- func (r *TaobaoTraderatesGetRequest) SetUseHasNext(useHasNext bool) error
- type TaobaoTraderatesGetResponse
- type TmallRateInfo
- type TmallRateTag
- type TmallRateTagDetail
- type TmallTraderateFeedsGetAPIResponse
- type TmallTraderateFeedsGetRequest
- type TmallTraderateFeedsGetResponse
- type TmallTraderateItemtagsGetAPIResponse
- type TmallTraderateItemtagsGetRequest
- type TmallTraderateItemtagsGetResponse
- type TopGetMixRateListParam
- type TradeRate
- type TradeRateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetMixRateListResult ¶
type GetMixRateListResult struct { // 是否下一页 HasNextPage int64 `json:"has_next_page,omitempty" xml:"has_next_page,omitempty"` // 评价统计信息 ItemStatistic *ItemStatisticVo `json:"item_statistic,omitempty" xml:"item_statistic,omitempty"` // 评价明细信息 MixRates []MixRateVo `json:"mix_rates,omitempty" xml:"mix_rates>mix_rate_vo,omitempty"` // 是否成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` // 总数量 TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` // 错误信息 ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` }
GetMixRateListResult
type ItemStatisticVo ¶
type ItemStatisticVo struct { // 评论数量 RateCnt int64 `json:"rate_cnt,omitempty" xml:"rate_cnt,omitempty"` // tab筛选信息 TabInfos []TabInfo `json:"tab_infos,omitempty" xml:"tab_infos>tab_info,omitempty"` // 总评分 TotalScore string `json:"total_score,omitempty" xml:"total_score,omitempty"` // 评分描述信息 RankDesc string `json:"rank_desc,omitempty" xml:"rank_desc,omitempty"` // 子评分项信息 ScoreDetail string `json:"score_detail,omitempty" xml:"score_detail,omitempty"` }
ItemStatisticVo
type MixRateVo ¶
type MixRateVo struct { // 正文内容 Content string `json:"content,omitempty" xml:"content,omitempty"` // 创建时间 GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` // 图片信息 PictureUrls []string `json:"picture_urls,omitempty" xml:"picture_urls>string,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 { // 属性(正面负面) Attitude int64 `json:"attitude,omitempty" xml:"attitude,omitempty"` // 会否选中 IsClick bool `json:"is_click,omitempty" xml:"is_click,omitempty"` // 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"` }
TabInfo
type TaobaoFliggyWrateGetmixratelistAPIResponse ¶
type TaobaoFliggyWrateGetmixratelistAPIResponse struct { model.CommonResponse TaobaoFliggyWrateGetmixratelistResponse }
飞猪通用评价接口 API返回值 taobao.fliggy.wrate.getmixratelist
飞猪评价通用接口
type TaobaoFliggyWrateGetmixratelistRequest ¶
type TaobaoFliggyWrateGetmixratelistRequest struct { model.Params // contains filtered or unexported fields }
飞猪通用评价接口 API请求 taobao.fliggy.wrate.getmixratelist
飞猪评价通用接口
func NewTaobaoFliggyWrateGetmixratelistRequest ¶
func NewTaobaoFliggyWrateGetmixratelistRequest() *TaobaoFliggyWrateGetmixratelistRequest
初始化TaobaoFliggyWrateGetmixratelistRequest对象
func (TaobaoFliggyWrateGetmixratelistRequest) GetApiMethodName ¶
func (r TaobaoFliggyWrateGetmixratelistRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoFliggyWrateGetmixratelistRequest) GetApiParams ¶
func (r TaobaoFliggyWrateGetmixratelistRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoFliggyWrateGetmixratelistRequest) GetParamTopGetMixRateListParam ¶
func (r TaobaoFliggyWrateGetmixratelistRequest) GetParamTopGetMixRateListParam() *TopGetMixRateListParam
ParamTopGetMixRateListParam Getter
func (*TaobaoFliggyWrateGetmixratelistRequest) SetParamTopGetMixRateListParam ¶
func (r *TaobaoFliggyWrateGetmixratelistRequest) SetParamTopGetMixRateListParam(paramTopGetMixRateListParam *TopGetMixRateListParam) error
ParamTopGetMixRateListParam Setter 评论列表查询参数
type TaobaoFliggyWrateGetmixratelistResponse ¶
type TaobaoFliggyWrateGetmixratelistResponse 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"` }
飞猪通用评价接口 成功返回结果
type TaobaoFliggyWrateGetmixratelistResult ¶
type TaobaoFliggyWrateGetmixratelistResult struct { // 返回对象 Model *GetMixRateListResult `json:"model,omitempty" xml:"model,omitempty"` // 是否成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
TaobaoFliggyWrateGetmixratelistResult
type TaobaoTraderateAddAPIResponse ¶
type TaobaoTraderateAddAPIResponse struct { model.CommonResponse TaobaoTraderateAddResponse }
新增单个评价 API返回值 taobao.traderate.add
新增单个评价(<font color="red">注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不能再通过该接口进行评价</font>)
type TaobaoTraderateAddRequest ¶
新增单个评价 API请求 taobao.traderate.add
新增单个评价(<font color="red">注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不能再通过该接口进行评价</font>)
func NewTaobaoTraderateAddRequest ¶
func NewTaobaoTraderateAddRequest() *TaobaoTraderateAddRequest
初始化TaobaoTraderateAddRequest对象
func (TaobaoTraderateAddRequest) GetAnony ¶
func (r TaobaoTraderateAddRequest) GetAnony() bool
Anony Getter
func (TaobaoTraderateAddRequest) GetApiMethodName ¶
func (r TaobaoTraderateAddRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoTraderateAddRequest) GetApiParams ¶
func (r TaobaoTraderateAddRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoTraderateAddRequest) GetContent ¶
func (r TaobaoTraderateAddRequest) GetContent() string
Content Getter
func (TaobaoTraderateAddRequest) GetOid ¶
func (r TaobaoTraderateAddRequest) GetOid() int64
Oid Getter
func (TaobaoTraderateAddRequest) GetResult ¶
func (r TaobaoTraderateAddRequest) GetResult() string
Result Getter
func (TaobaoTraderateAddRequest) GetRole ¶
func (r TaobaoTraderateAddRequest) GetRole() string
Role Getter
func (TaobaoTraderateAddRequest) GetTid ¶
func (r TaobaoTraderateAddRequest) GetTid() int64
Tid Getter
func (*TaobaoTraderateAddRequest) SetAnony ¶
func (r *TaobaoTraderateAddRequest) SetAnony(anony bool) error
Anony Setter 是否匿名,卖家评不能匿名。可选值:true(匿名),false(非匿名)。注意:如果交易订单匿名,则评价也匿名
func (*TaobaoTraderateAddRequest) SetContent ¶
func (r *TaobaoTraderateAddRequest) SetContent(content string) error
Content Setter 评价内容,最大长度: 500个汉字 .注意:当评价结果为good时就不用输入评价内容.评价内容为neutral/bad的时候需要输入评价内容
func (*TaobaoTraderateAddRequest) SetOid ¶
func (r *TaobaoTraderateAddRequest) SetOid(oid int64) error
Oid Setter 子订单ID
func (*TaobaoTraderateAddRequest) SetResult ¶
func (r *TaobaoTraderateAddRequest) SetResult(result string) error
Result Setter 评价结果,可选值:good(好评),neutral(中评),bad(差评)
func (*TaobaoTraderateAddRequest) SetRole ¶
func (r *TaobaoTraderateAddRequest) SetRole(role string) error
Role Setter 评价者角色,可选值:seller(卖家),buyer(买家)
func (*TaobaoTraderateAddRequest) SetTid ¶
func (r *TaobaoTraderateAddRequest) SetTid(tid int64) error
Tid Setter 交易ID
type TaobaoTraderateAddResponse ¶
type TaobaoTraderateAddResponse 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"` }
新增单个评价 成功返回结果
type TaobaoTraderateExplainAddAPIResponse ¶
type TaobaoTraderateExplainAddAPIResponse struct { model.CommonResponse TaobaoTraderateExplainAddResponse }
商城评价解释接口 API返回值 taobao.traderate.explain.add
商城卖家给评价做出解释(买家追加评论后、评价超过30天的,都不能再做评价解释)
type TaobaoTraderateExplainAddRequest ¶
type TaobaoTraderateExplainAddRequest struct { model.Params // contains filtered or unexported fields }
商城评价解释接口 API请求 taobao.traderate.explain.add
商城卖家给评价做出解释(买家追加评论后、评价超过30天的,都不能再做评价解释)
func NewTaobaoTraderateExplainAddRequest ¶
func NewTaobaoTraderateExplainAddRequest() *TaobaoTraderateExplainAddRequest
初始化TaobaoTraderateExplainAddRequest对象
func (TaobaoTraderateExplainAddRequest) GetApiMethodName ¶
func (r TaobaoTraderateExplainAddRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoTraderateExplainAddRequest) GetApiParams ¶
func (r TaobaoTraderateExplainAddRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoTraderateExplainAddRequest) GetOid ¶
func (r TaobaoTraderateExplainAddRequest) GetOid() int64
Oid Getter
func (TaobaoTraderateExplainAddRequest) GetReply ¶
func (r TaobaoTraderateExplainAddRequest) GetReply() string
Reply Getter
func (*TaobaoTraderateExplainAddRequest) SetOid ¶
func (r *TaobaoTraderateExplainAddRequest) SetOid(oid int64) error
Oid Setter 子订单ID
func (*TaobaoTraderateExplainAddRequest) SetReply ¶
func (r *TaobaoTraderateExplainAddRequest) SetReply(reply string) error
Reply Setter 评价解释内容,最大长度:500个汉字
type TaobaoTraderateExplainAddResponse ¶
type TaobaoTraderateExplainAddResponse 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"` }
商城评价解释接口 成功返回结果
type TaobaoTraderateImprImprwordsGetAPIResponse ¶
type TaobaoTraderateImprImprwordsGetAPIResponse struct { model.CommonResponse TaobaoTraderateImprImprwordsGetResponse }
评价大家印象印象短语接口 API返回值 taobao.traderate.impr.imprwords.get
根据淘宝后台类目的一级类目和叶子类目
type TaobaoTraderateImprImprwordsGetRequest ¶
type TaobaoTraderateImprImprwordsGetRequest struct { model.Params // contains filtered or unexported fields }
评价大家印象印象短语接口 API请求 taobao.traderate.impr.imprwords.get
根据淘宝后台类目的一级类目和叶子类目
func NewTaobaoTraderateImprImprwordsGetRequest ¶
func NewTaobaoTraderateImprImprwordsGetRequest() *TaobaoTraderateImprImprwordsGetRequest
初始化TaobaoTraderateImprImprwordsGetRequest对象
func (TaobaoTraderateImprImprwordsGetRequest) GetApiMethodName ¶
func (r TaobaoTraderateImprImprwordsGetRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoTraderateImprImprwordsGetRequest) GetApiParams ¶
func (r TaobaoTraderateImprImprwordsGetRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoTraderateImprImprwordsGetRequest) GetCatLeafId ¶
func (r TaobaoTraderateImprImprwordsGetRequest) GetCatLeafId() int64
CatLeafId Getter
func (TaobaoTraderateImprImprwordsGetRequest) GetCatRootId ¶
func (r TaobaoTraderateImprImprwordsGetRequest) GetCatRootId() int64
CatRootId Getter
func (*TaobaoTraderateImprImprwordsGetRequest) SetCatLeafId ¶
func (r *TaobaoTraderateImprImprwordsGetRequest) SetCatLeafId(catLeafId int64) error
CatLeafId Setter 淘宝叶子类目id
func (*TaobaoTraderateImprImprwordsGetRequest) SetCatRootId ¶
func (r *TaobaoTraderateImprImprwordsGetRequest) SetCatRootId(catRootId int64) error
CatRootId Setter 淘宝一级类目id
type TaobaoTraderateImprImprwordsGetResponse ¶
type TaobaoTraderateImprImprwordsGetResponse struct { XMLName xml.Name `xml:"traderate_impr_imprwords_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回类目下所有大家印象的标签 ImprWords []string `json:"impr_words,omitempty" xml:"impr_words>string,omitempty"` }
评价大家印象印象短语接口 成功返回结果
type TaobaoTraderateListAddAPIResponse ¶
type TaobaoTraderateListAddAPIResponse struct { model.CommonResponse TaobaoTraderateListAddResponse }
针对父子订单新增批量评价 API返回值 taobao.traderate.list.add
针对父子订单新增批量评价(<font color="red">注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不用再通过该接口进行评价</font>)
type TaobaoTraderateListAddRequest ¶
type TaobaoTraderateListAddRequest struct { model.Params // contains filtered or unexported fields }
针对父子订单新增批量评价 API请求 taobao.traderate.list.add
针对父子订单新增批量评价(<font color="red">注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不用再通过该接口进行评价</font>)
func NewTaobaoTraderateListAddRequest ¶
func NewTaobaoTraderateListAddRequest() *TaobaoTraderateListAddRequest
初始化TaobaoTraderateListAddRequest对象
func (TaobaoTraderateListAddRequest) GetAnony ¶
func (r TaobaoTraderateListAddRequest) GetAnony() bool
Anony Getter
func (TaobaoTraderateListAddRequest) GetApiMethodName ¶
func (r TaobaoTraderateListAddRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoTraderateListAddRequest) GetApiParams ¶
func (r TaobaoTraderateListAddRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoTraderateListAddRequest) GetContent ¶
func (r TaobaoTraderateListAddRequest) GetContent() string
Content Getter
func (TaobaoTraderateListAddRequest) GetResult ¶
func (r TaobaoTraderateListAddRequest) GetResult() string
Result Getter
func (TaobaoTraderateListAddRequest) GetRole ¶
func (r TaobaoTraderateListAddRequest) GetRole() string
Role Getter
func (TaobaoTraderateListAddRequest) GetTid ¶
func (r TaobaoTraderateListAddRequest) GetTid() int64
Tid Getter
func (*TaobaoTraderateListAddRequest) SetAnony ¶
func (r *TaobaoTraderateListAddRequest) SetAnony(anony bool) error
Anony Setter 是否匿名,卖家评不能匿名。可选值:true(匿名),false(非匿名)。 注意:如果买家匿名购买,那么买家的评价默认匿名
func (*TaobaoTraderateListAddRequest) SetContent ¶
func (r *TaobaoTraderateListAddRequest) SetContent(content string) error
Content Setter 评价内容,最大长度: 500个汉字 .注意:当评价结果为good时就不用输入评价内容.评价内容为neutral/bad的时候需要输入评价内容
func (*TaobaoTraderateListAddRequest) SetResult ¶
func (r *TaobaoTraderateListAddRequest) SetResult(result string) error
Result Setter 评价结果。可选值:good(好评),neutral(中评),bad(差评)
func (*TaobaoTraderateListAddRequest) SetRole ¶
func (r *TaobaoTraderateListAddRequest) SetRole(role string) error
Role Setter 评价者角色。可选值:seller(卖家),buyer(买家)
func (*TaobaoTraderateListAddRequest) SetTid ¶
func (r *TaobaoTraderateListAddRequest) SetTid(tid int64) error
Tid Setter 交易ID
type TaobaoTraderateListAddResponse ¶
type TaobaoTraderateListAddResponse 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"` }
针对父子订单新增批量评价 成功返回结果
type TaobaoTraderatesGetAPIResponse ¶
type TaobaoTraderatesGetAPIResponse struct { model.CommonResponse TaobaoTraderatesGetResponse }
搜索评价信息 API返回值 taobao.traderates.get
搜索评价信息,只能获取距今180天内的评价记录(只支持查询卖家给出或得到的评价)。
type TaobaoTraderatesGetRequest ¶
搜索评价信息 API请求 taobao.traderates.get
搜索评价信息,只能获取距今180天内的评价记录(只支持查询卖家给出或得到的评价)。
func NewTaobaoTraderatesGetRequest ¶
func NewTaobaoTraderatesGetRequest() *TaobaoTraderatesGetRequest
初始化TaobaoTraderatesGetRequest对象
func (TaobaoTraderatesGetRequest) GetApiMethodName ¶
func (r TaobaoTraderatesGetRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoTraderatesGetRequest) GetApiParams ¶
func (r TaobaoTraderatesGetRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoTraderatesGetRequest) GetEndDate ¶
func (r TaobaoTraderatesGetRequest) GetEndDate() string
EndDate Getter
func (TaobaoTraderatesGetRequest) GetFields ¶
func (r TaobaoTraderatesGetRequest) GetFields() []string
Fields Getter
func (TaobaoTraderatesGetRequest) GetNumIid ¶
func (r TaobaoTraderatesGetRequest) GetNumIid() int64
NumIid Getter
func (TaobaoTraderatesGetRequest) GetPageNo ¶
func (r TaobaoTraderatesGetRequest) GetPageNo() int64
PageNo Getter
func (TaobaoTraderatesGetRequest) GetPageSize ¶
func (r TaobaoTraderatesGetRequest) GetPageSize() int64
PageSize Getter
func (TaobaoTraderatesGetRequest) GetRateType ¶
func (r TaobaoTraderatesGetRequest) GetRateType() string
RateType Getter
func (TaobaoTraderatesGetRequest) GetResult ¶
func (r TaobaoTraderatesGetRequest) GetResult() string
Result Getter
func (TaobaoTraderatesGetRequest) GetRole ¶
func (r TaobaoTraderatesGetRequest) GetRole() string
Role Getter
func (TaobaoTraderatesGetRequest) GetStartDate ¶
func (r TaobaoTraderatesGetRequest) GetStartDate() string
StartDate Getter
func (TaobaoTraderatesGetRequest) GetTid ¶
func (r TaobaoTraderatesGetRequest) GetTid() int64
Tid Getter
func (TaobaoTraderatesGetRequest) GetUseHasNext ¶
func (r TaobaoTraderatesGetRequest) GetUseHasNext() bool
UseHasNext Getter
func (*TaobaoTraderatesGetRequest) SetEndDate ¶
func (r *TaobaoTraderatesGetRequest) SetEndDate(endDate string) error
EndDate Setter 评价结束时间。如果只输入结束时间,那么全部返回所有评价数据。
func (*TaobaoTraderatesGetRequest) SetFields ¶
func (r *TaobaoTraderatesGetRequest) SetFields(fields []string) error
Fields Setter 需返回的字段列表。可选值:TradeRate 结构中的所有字段,多个字段之间用“,”分隔
func (*TaobaoTraderatesGetRequest) SetNumIid ¶
func (r *TaobaoTraderatesGetRequest) SetNumIid(numIid int64) error
NumIid Setter 商品的数字ID
func (*TaobaoTraderatesGetRequest) SetPageNo ¶
func (r *TaobaoTraderatesGetRequest) SetPageNo(pageNo int64) error
PageNo Setter 页码。取值范围:大于零的整数最大限制为200; 默认值:1
func (*TaobaoTraderatesGetRequest) SetPageSize ¶
func (r *TaobaoTraderatesGetRequest) SetPageSize(pageSize int64) error
PageSize Setter 每页获取条数。默认值40,最小值1,最大值150。
func (*TaobaoTraderatesGetRequest) SetRateType ¶
func (r *TaobaoTraderatesGetRequest) SetRateType(rateType string) error
RateType Setter 评价类型。可选值:get(得到),give(给出)
func (*TaobaoTraderatesGetRequest) SetResult ¶
func (r *TaobaoTraderatesGetRequest) SetResult(result string) error
Result Setter 评价结果。可选值:good(好评),neutral(中评),bad(差评)
func (*TaobaoTraderatesGetRequest) SetRole ¶
func (r *TaobaoTraderatesGetRequest) SetRole(role string) error
Role Setter 评价者角色即评价的发起方。可选值:seller(卖家),buyer(买家)。 当 give buyer 以买家身份给卖家的评价; 当 get seller 以买家身份得到卖家给的评价; 当 give seller 以卖家身份给买家的评价; 当 get buyer 以卖家身份得到买家给的评价。
func (*TaobaoTraderatesGetRequest) SetStartDate ¶
func (r *TaobaoTraderatesGetRequest) SetStartDate(startDate string) error
StartDate Setter 评价开始时。如果只输入开始时间,那么能返回开始时间之后的评价数据。
func (*TaobaoTraderatesGetRequest) SetTid ¶
func (r *TaobaoTraderatesGetRequest) SetTid(tid int64) error
Tid Setter 交易订单id,可以是父订单id号,也可以是子订单id号
func (*TaobaoTraderatesGetRequest) SetUseHasNext ¶
func (r *TaobaoTraderatesGetRequest) SetUseHasNext(useHasNext bool) error
UseHasNext Setter 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取评价信息,效率在原有的基础上有80%的提升。
type TaobaoTraderatesGetResponse ¶
type TaobaoTraderatesGetResponse struct { XMLName xml.Name `xml:"traderates_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 评价列表。返回的TradeRate包含的具体信息为入参fields请求的字段信息 TradeRates []TradeRate `json:"trade_rates,omitempty" xml:"trade_rates>trade_rate,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"` }
搜索评价信息 成功返回结果
type TmallRateInfo ¶
type TmallRateInfo struct { // 表示评价者的昵称 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"` // 原始评价对应的标签列表 Tags []TmallRateTag `json:"tags,omitempty" xml:"tags>tmall_rate_tag,omitempty"` // 原始评价是否含有负向标签 HasNegtv bool `json:"has_negtv,omitempty" xml:"has_negtv,omitempty"` // 追加评价内容 AppendContent string `json:"append_content,omitempty" xml:"append_content,omitempty"` // 追加评价时间 AppendTime string `json:"append_time,omitempty" xml:"append_time,omitempty"` // 追加评价中带有的语义标签列表 AppendTags []TmallRateTag `json:"append_tags,omitempty" xml:"append_tags>tmall_rate_tag,omitempty"` // 追评中是否含有负向标签 AppendHasNegtv bool `json:"append_has_negtv,omitempty" xml:"append_has_negtv,omitempty"` }
TmallRateInfo
type TmallRateTag ¶
type TmallRateTag struct { // 表示标签的名称 TagName string `json:"tag_name,omitempty" xml:"tag_name,omitempty"` // 表示标签的极性,正极true,负极false Posi bool `json:"posi,omitempty" xml:"posi,omitempty"` }
TmallRateTag
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 TmallTraderateFeedsGetAPIResponse ¶
type TmallTraderateFeedsGetAPIResponse struct { model.CommonResponse TmallTraderateFeedsGetResponse }
查询子订单对应的评价、追评以及语义标签 API返回值 tmall.traderate.feeds.get
通过子订单ID获取天猫订单对应的评价,追评,以及对应的语义标签
type TmallTraderateFeedsGetRequest ¶
type TmallTraderateFeedsGetRequest struct { model.Params // contains filtered or unexported fields }
查询子订单对应的评价、追评以及语义标签 API请求 tmall.traderate.feeds.get
通过子订单ID获取天猫订单对应的评价,追评,以及对应的语义标签
func NewTmallTraderateFeedsGetRequest ¶
func NewTmallTraderateFeedsGetRequest() *TmallTraderateFeedsGetRequest
初始化TmallTraderateFeedsGetRequest对象
func (TmallTraderateFeedsGetRequest) GetApiMethodName ¶
func (r TmallTraderateFeedsGetRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TmallTraderateFeedsGetRequest) GetApiParams ¶
func (r TmallTraderateFeedsGetRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TmallTraderateFeedsGetRequest) GetChildTradeId ¶
func (r TmallTraderateFeedsGetRequest) GetChildTradeId() int64
ChildTradeId Getter
func (*TmallTraderateFeedsGetRequest) SetChildTradeId ¶
func (r *TmallTraderateFeedsGetRequest) SetChildTradeId(childTradeId int64) error
ChildTradeId Setter 交易子订单ID
type TmallTraderateFeedsGetResponse ¶
type TmallTraderateFeedsGetResponse struct { XMLName xml.Name `xml:"tmall_traderate_feeds_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回评价信息 TmallRateInfo *TmallRateInfo `json:"tmall_rate_info,omitempty" xml:"tmall_rate_info,omitempty"` }
查询子订单对应的评价、追评以及语义标签 成功返回结果
type TmallTraderateItemtagsGetAPIResponse ¶
type TmallTraderateItemtagsGetAPIResponse struct {}
通过商品ID获取标签列表 API返回值 tmall.traderate.itemtags.get
通过商品ID获取标签详细信息
type TmallTraderateItemtagsGetRequest ¶
type TmallTraderateItemtagsGetRequest struct { // contains filtered or unexported fields }
通过商品ID获取标签列表 API请求 tmall.traderate.itemtags.get
通过商品ID获取标签详细信息
func NewTmallTraderateItemtagsGetRequest ¶
func NewTmallTraderateItemtagsGetRequest() *TmallTraderateItemtagsGetRequest
初始化TmallTraderateItemtagsGetRequest对象
func (TmallTraderateItemtagsGetRequest) GetApiMethodName ¶
func (r TmallTraderateItemtagsGetRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TmallTraderateItemtagsGetRequest) GetApiParams ¶
func (r TmallTraderateItemtagsGetRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TmallTraderateItemtagsGetRequest) GetItemId ¶
func (r TmallTraderateItemtagsGetRequest) GetItemId() int64
ItemId Getter
func (*TmallTraderateItemtagsGetRequest) SetItemId ¶
func (r *TmallTraderateItemtagsGetRequest) SetItemId(itemId int64) error
ItemId Setter 商品ID
type TmallTraderateItemtagsGetResponse ¶
type TmallTraderateItemtagsGetResponse struct { string `json:"request_id,omitempty" xml:"request_id,omitempty"` Tags []TmallRateTagDetail `json:"tags,omitempty" xml:"tags>tmall_rate_tag_detail,omitempty"` }RequestId
通过商品ID获取标签列表 成功返回结果
type TopGetMixRateListParam ¶
type TopGetMixRateListParam struct { // 类型 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"` // 筛选条件JSON TabFilter string `json:"tab_filter,omitempty" xml:"tab_filter,omitempty"` }
TopGetMixRateListParam
type TradeRate ¶
type TradeRate struct { // 交易ID Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"` // 子订单ID Oid int64 `json:"oid,omitempty" xml:"oid,omitempty"` // 评价者角色.可选值: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 float64 `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"` // 商品的数字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"` }
TradeRate
type TradeRateRequest ¶
type TradeRateRequest struct { // Created string `json:"created,omitempty" xml:"created,omitempty"` // Oid int64 `json:"oid,omitempty" xml:"oid,omitempty"` // Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"` }
TradeRateRequest
Source Files ¶
- GetMixRateListResult.go
- ItemStatisticVo.go
- MixRateVo.go
- TabInfo.go
- TaobaoFliggyWrateGetmixratelistRequest.go
- TaobaoFliggyWrateGetmixratelistResponse.go
- TaobaoFliggyWrateGetmixratelistResult.go
- TaobaoTraderateAddRequest.go
- TaobaoTraderateAddResponse.go
- TaobaoTraderateExplainAddRequest.go
- TaobaoTraderateExplainAddResponse.go
- TaobaoTraderateImprImprwordsGetRequest.go
- TaobaoTraderateImprImprwordsGetResponse.go
- TaobaoTraderateListAddRequest.go
- TaobaoTraderateListAddResponse.go
- TaobaoTraderatesGetRequest.go
- TaobaoTraderatesGetResponse.go
- TmallRateInfo.go
- TmallRateTag.go
- TmallRateTagDetail.go
- TmallTraderateFeedsGetRequest.go
- TmallTraderateFeedsGetResponse.go
- TmallTraderateItemtagsGetRequest.go
- TmallTraderateItemtagsGetResponse.go
- TopGetMixRateListParam.go
- TradeRate.go
- TradeRateRequest.go
- doc.go