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(params url.Values)
- func (r TaobaofliggywrategetmixratelistAPIRequest) GetParamTopGetMixRateListParam() *TopGetMixRateListParam
- func (r TaobaofliggywrategetmixratelistAPIRequest) GetRawParams() model.Params
- 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(params url.Values)
- func (r TaobaotraderateaddAPIRequest) GetContent() string
- func (r TaobaotraderateaddAPIRequest) GetOid() int64
- func (r TaobaotraderateaddAPIRequest) GetRawParams() model.Params
- 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(params url.Values)
- func (r TaobaotraderateexplainaddAPIRequest) GetOid() int64
- func (r TaobaotraderateexplainaddAPIRequest) GetRawParams() model.Params
- 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(params url.Values)
- func (r TaobaotraderatelistaddAPIRequest) GetContent() string
- func (r TaobaotraderatelistaddAPIRequest) GetRawParams() model.Params
- 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(params 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) GetRawParams() model.Params
- 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
- func (r TmalltraderatefeedsgetAPIRequest) GetApiMethodName() string
- func (r TmalltraderatefeedsgetAPIRequest) GetApiParams(params url.Values)
- func (r TmalltraderatefeedsgetAPIRequest) GetChildTradeId() int64
- func (r TmalltraderatefeedsgetAPIRequest) GetRawParams() model.Params
- func (r *TmalltraderatefeedsgetAPIRequest) SetChildTradeId(_childTradeId int64) error
- type TmalltraderatefeedsgetAPIResponse
- type TmalltraderatefeedsgetAPIResponseModel
- type TmalltraderatefeedsgetModel
- type TmalltraderateitemtagsgetAPIRequest
- func (r TmalltraderateitemtagsgetAPIRequest) GetApiMethodName() string
- func (r TmalltraderateitemtagsgetAPIRequest) GetApiParams(params url.Values)
- func (r TmalltraderateitemtagsgetAPIRequest) GetItemId() int64
- func (r TmalltraderateitemtagsgetAPIRequest) GetRawParams() model.Params
- func (r *TmalltraderateitemtagsgetAPIRequest) SetItemId(_itemId int64) error
- 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.3.1
type TaobaofliggywrategetmixratelistAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaofliggywrategetmixratelistAPIRequest 飞猪通用评价接口 API请求 taobao.fliggy.wrate.getmixratelist
飞猪评价通用接口
func NewTaobaofliggywrategetmixratelistRequest ¶ added in v1.3.1
func NewTaobaofliggywrategetmixratelistRequest() *TaobaofliggywrategetmixratelistAPIRequest
NewTaobaofliggywrategetmixratelistRequest 初始化TaobaofliggywrategetmixratelistAPIRequest对象
func (TaobaofliggywrategetmixratelistAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaofliggywrategetmixratelistAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaofliggywrategetmixratelistAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaofliggywrategetmixratelistAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaofliggywrategetmixratelistAPIRequest) GetParamTopGetMixRateListParam ¶ added in v1.3.1
func (r TaobaofliggywrategetmixratelistAPIRequest) GetParamTopGetMixRateListParam() *TopGetMixRateListParam
GetParamTopGetMixRateListParam ParamTopGetMixRateListParam Getter
func (TaobaofliggywrategetmixratelistAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaofliggywrategetmixratelistAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaofliggywrategetmixratelistAPIRequest) SetParamTopGetMixRateListParam ¶ added in v1.3.1
func (r *TaobaofliggywrategetmixratelistAPIRequest) SetParamTopGetMixRateListParam(_paramTopGetMixRateListParam *TopGetMixRateListParam) error
SetParamTopGetMixRateListParam is ParamTopGetMixRateListParam Setter 评论列表查询参数
type TaobaofliggywrategetmixratelistAPIResponse ¶ added in v1.3.1
type TaobaofliggywrategetmixratelistAPIResponse struct { model.CommonResponse TaobaofliggywrategetmixratelistAPIResponseModel }
TaobaofliggywrategetmixratelistAPIResponse 飞猪通用评价接口 API返回值 taobao.fliggy.wrate.getmixratelist
飞猪评价通用接口
type TaobaofliggywrategetmixratelistAPIResponseModel ¶ added in v1.3.1
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 ¶ added in v1.3.1
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.3.1
TaobaotraderateaddAPIRequest 新增单个评价 API请求 taobao.traderate.add
新增单个评价(<font color="red">注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不能再通过该接口进行评价</font>)
func NewTaobaotraderateaddRequest ¶ added in v1.3.1
func NewTaobaotraderateaddRequest() *TaobaotraderateaddAPIRequest
NewTaobaotraderateaddRequest 初始化TaobaotraderateaddAPIRequest对象
func (TaobaotraderateaddAPIRequest) GetAnony ¶ added in v1.3.1
func (r TaobaotraderateaddAPIRequest) GetAnony() bool
GetAnony Anony Getter
func (TaobaotraderateaddAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotraderateaddAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotraderateaddAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotraderateaddAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotraderateaddAPIRequest) GetContent ¶ added in v1.3.1
func (r TaobaotraderateaddAPIRequest) GetContent() string
GetContent Content Getter
func (TaobaotraderateaddAPIRequest) GetOid ¶ added in v1.3.1
func (r TaobaotraderateaddAPIRequest) GetOid() int64
GetOid Oid Getter
func (TaobaotraderateaddAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotraderateaddAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotraderateaddAPIRequest) GetResult ¶ added in v1.3.1
func (r TaobaotraderateaddAPIRequest) GetResult() string
GetResult Result Getter
func (TaobaotraderateaddAPIRequest) GetRole ¶ added in v1.3.1
func (r TaobaotraderateaddAPIRequest) GetRole() string
GetRole Role Getter
func (TaobaotraderateaddAPIRequest) GetTid ¶ added in v1.3.1
func (r TaobaotraderateaddAPIRequest) GetTid() int64
GetTid Tid Getter
func (*TaobaotraderateaddAPIRequest) SetAnony ¶ added in v1.3.1
func (r *TaobaotraderateaddAPIRequest) SetAnony(_anony bool) error
SetAnony is Anony Setter 是否匿名,卖家评不能匿名。可选值:true(匿名),false(非匿名)。注意:如果交易订单匿名,则评价也匿名
func (*TaobaotraderateaddAPIRequest) SetContent ¶ added in v1.3.1
func (r *TaobaotraderateaddAPIRequest) SetContent(_content string) error
SetContent is Content Setter 评价内容,最大长度: 500个汉字 .注意:当评价结果为good时就不用输入评价内容.评价内容为neutral/bad的时候需要输入评价内容
func (*TaobaotraderateaddAPIRequest) SetOid ¶ added in v1.3.1
func (r *TaobaotraderateaddAPIRequest) SetOid(_oid int64) error
SetOid is Oid Setter 子订单ID
func (*TaobaotraderateaddAPIRequest) SetResult ¶ added in v1.3.1
func (r *TaobaotraderateaddAPIRequest) SetResult(_result string) error
SetResult is Result Setter 评价结果,可选值:good(好评),neutral(中评),bad(差评)
func (*TaobaotraderateaddAPIRequest) SetRole ¶ added in v1.3.1
func (r *TaobaotraderateaddAPIRequest) SetRole(_role string) error
SetRole is Role Setter 评价者角色,可选值:seller(卖家),buyer(买家)
func (*TaobaotraderateaddAPIRequest) SetTid ¶ added in v1.3.1
func (r *TaobaotraderateaddAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 交易ID
type TaobaotraderateaddAPIResponse ¶ added in v1.3.1
type TaobaotraderateaddAPIResponse struct { model.CommonResponse TaobaotraderateaddAPIResponseModel }
TaobaotraderateaddAPIResponse 新增单个评价 API返回值 taobao.traderate.add
新增单个评价(<font color="red">注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不能再通过该接口进行评价</font>)
type TaobaotraderateaddAPIResponseModel ¶ added in v1.3.1
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.3.1
type TaobaotraderateexplainaddAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotraderateexplainaddAPIRequest 商城评价解释接口 API请求 taobao.traderate.explain.add
商城卖家给评价做出解释(买家追加评论后、评价超过30天的,都不能再做评价解释)
func NewTaobaotraderateexplainaddRequest ¶ added in v1.3.1
func NewTaobaotraderateexplainaddRequest() *TaobaotraderateexplainaddAPIRequest
NewTaobaotraderateexplainaddRequest 初始化TaobaotraderateexplainaddAPIRequest对象
func (TaobaotraderateexplainaddAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotraderateexplainaddAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotraderateexplainaddAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotraderateexplainaddAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotraderateexplainaddAPIRequest) GetOid ¶ added in v1.3.1
func (r TaobaotraderateexplainaddAPIRequest) GetOid() int64
GetOid Oid Getter
func (TaobaotraderateexplainaddAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotraderateexplainaddAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotraderateexplainaddAPIRequest) GetReply ¶ added in v1.3.1
func (r TaobaotraderateexplainaddAPIRequest) GetReply() string
GetReply Reply Getter
func (*TaobaotraderateexplainaddAPIRequest) SetOid ¶ added in v1.3.1
func (r *TaobaotraderateexplainaddAPIRequest) SetOid(_oid int64) error
SetOid is Oid Setter 子订单ID
func (*TaobaotraderateexplainaddAPIRequest) SetReply ¶ added in v1.3.1
func (r *TaobaotraderateexplainaddAPIRequest) SetReply(_reply string) error
SetReply is Reply Setter 评价解释内容,最大长度:500个汉字
type TaobaotraderateexplainaddAPIResponse ¶ added in v1.3.1
type TaobaotraderateexplainaddAPIResponse struct { model.CommonResponse TaobaotraderateexplainaddAPIResponseModel }
TaobaotraderateexplainaddAPIResponse 商城评价解释接口 API返回值 taobao.traderate.explain.add
商城卖家给评价做出解释(买家追加评论后、评价超过30天的,都不能再做评价解释)
type TaobaotraderateexplainaddAPIResponseModel ¶ added in v1.3.1
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.3.1
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 ¶ added in v1.3.1
func NewTaobaotraderatelistaddRequest() *TaobaotraderatelistaddAPIRequest
NewTaobaotraderatelistaddRequest 初始化TaobaotraderatelistaddAPIRequest对象
func (TaobaotraderatelistaddAPIRequest) GetAnony ¶ added in v1.3.1
func (r TaobaotraderatelistaddAPIRequest) GetAnony() bool
GetAnony Anony Getter
func (TaobaotraderatelistaddAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotraderatelistaddAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotraderatelistaddAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotraderatelistaddAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotraderatelistaddAPIRequest) GetContent ¶ added in v1.3.1
func (r TaobaotraderatelistaddAPIRequest) GetContent() string
GetContent Content Getter
func (TaobaotraderatelistaddAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotraderatelistaddAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotraderatelistaddAPIRequest) GetResult ¶ added in v1.3.1
func (r TaobaotraderatelistaddAPIRequest) GetResult() string
GetResult Result Getter
func (TaobaotraderatelistaddAPIRequest) GetRole ¶ added in v1.3.1
func (r TaobaotraderatelistaddAPIRequest) GetRole() string
GetRole Role Getter
func (TaobaotraderatelistaddAPIRequest) GetTid ¶ added in v1.3.1
func (r TaobaotraderatelistaddAPIRequest) GetTid() int64
GetTid Tid Getter
func (*TaobaotraderatelistaddAPIRequest) SetAnony ¶ added in v1.3.1
func (r *TaobaotraderatelistaddAPIRequest) SetAnony(_anony bool) error
SetAnony is Anony Setter 是否匿名,卖家评不能匿名。可选值:true(匿名),false(非匿名)。 注意:如果买家匿名购买,那么买家的评价默认匿名
func (*TaobaotraderatelistaddAPIRequest) SetContent ¶ added in v1.3.1
func (r *TaobaotraderatelistaddAPIRequest) SetContent(_content string) error
SetContent is Content Setter 评价内容,最大长度: 500个汉字 .注意:当评价结果为good时就不用输入评价内容.评价内容为neutral/bad的时候需要输入评价内容
func (*TaobaotraderatelistaddAPIRequest) SetResult ¶ added in v1.3.1
func (r *TaobaotraderatelistaddAPIRequest) SetResult(_result string) error
SetResult is Result Setter 评价结果。可选值:good(好评),neutral(中评),bad(差评)
func (*TaobaotraderatelistaddAPIRequest) SetRole ¶ added in v1.3.1
func (r *TaobaotraderatelistaddAPIRequest) SetRole(_role string) error
SetRole is Role Setter 评价者角色。可选值:seller(卖家),buyer(买家)
func (*TaobaotraderatelistaddAPIRequest) SetTid ¶ added in v1.3.1
func (r *TaobaotraderatelistaddAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 交易ID
type TaobaotraderatelistaddAPIResponse ¶ added in v1.3.1
type TaobaotraderatelistaddAPIResponse struct { model.CommonResponse TaobaotraderatelistaddAPIResponseModel }
TaobaotraderatelistaddAPIResponse 针对父子订单新增批量评价 API返回值 taobao.traderate.list.add
针对父子订单新增批量评价(<font color="red">注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不用再通过该接口进行评价</font>)
type TaobaotraderatelistaddAPIResponseModel ¶ added in v1.3.1
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.3.1
type TaobaotraderatesgetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotraderatesgetAPIRequest 搜索评价信息 API请求 taobao.traderates.get
搜索评价信息,只能获取距今180天内的评价记录(只支持查询卖家给出或得到的评价)。
func NewTaobaotraderatesgetRequest ¶ added in v1.3.1
func NewTaobaotraderatesgetRequest() *TaobaotraderatesgetAPIRequest
NewTaobaotraderatesgetRequest 初始化TaobaotraderatesgetAPIRequest对象
func (TaobaotraderatesgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotraderatesgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotraderatesgetAPIRequest) GetEndDate ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetEndDate() string
GetEndDate EndDate Getter
func (TaobaotraderatesgetAPIRequest) GetFields ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetFields() []string
GetFields Fields Getter
func (TaobaotraderatesgetAPIRequest) GetNumIid ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetNumIid() int64
GetNumIid NumIid Getter
func (TaobaotraderatesgetAPIRequest) GetOuid ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetOuid() string
GetOuid Ouid Getter
func (TaobaotraderatesgetAPIRequest) GetPageNo ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetPageNo() int64
GetPageNo PageNo Getter
func (TaobaotraderatesgetAPIRequest) GetPageSize ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetPageSize() int64
GetPageSize PageSize Getter
func (TaobaotraderatesgetAPIRequest) GetRateType ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetRateType() string
GetRateType RateType Getter
func (TaobaotraderatesgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotraderatesgetAPIRequest) GetResult ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetResult() string
GetResult Result Getter
func (TaobaotraderatesgetAPIRequest) GetRole ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetRole() string
GetRole Role Getter
func (TaobaotraderatesgetAPIRequest) GetStartDate ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetStartDate() string
GetStartDate StartDate Getter
func (TaobaotraderatesgetAPIRequest) GetTid ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetTid() int64
GetTid Tid Getter
func (TaobaotraderatesgetAPIRequest) GetUseHasNext ¶ added in v1.3.1
func (r TaobaotraderatesgetAPIRequest) GetUseHasNext() bool
GetUseHasNext UseHasNext Getter
func (*TaobaotraderatesgetAPIRequest) SetEndDate ¶ added in v1.3.1
func (r *TaobaotraderatesgetAPIRequest) SetEndDate(_endDate string) error
SetEndDate is EndDate Setter 评价结束时间。如果只输入结束时间,那么全部返回所有评价数据。
func (*TaobaotraderatesgetAPIRequest) SetFields ¶ added in v1.3.1
func (r *TaobaotraderatesgetAPIRequest) SetFields(_fields []string) error
SetFields is Fields Setter 需返回的字段列表。可选值:TradeRate 结构中的所有字段,多个字段之间用“,”分隔
func (*TaobaotraderatesgetAPIRequest) SetNumIid ¶ added in v1.3.1
func (r *TaobaotraderatesgetAPIRequest) SetNumIid(_numIid int64) error
SetNumIid is NumIid Setter 商品的数字ID
func (*TaobaotraderatesgetAPIRequest) SetOuid ¶ added in v1.3.1
func (r *TaobaotraderatesgetAPIRequest) SetOuid(_ouid string) error
SetOuid is Ouid Setter ouid
func (*TaobaotraderatesgetAPIRequest) SetPageNo ¶ added in v1.3.1
func (r *TaobaotraderatesgetAPIRequest) SetPageNo(_pageNo int64) error
SetPageNo is PageNo Setter 页码。取值范围:大于零的整数最大限制为200; 默认值:1
func (*TaobaotraderatesgetAPIRequest) SetPageSize ¶ added in v1.3.1
func (r *TaobaotraderatesgetAPIRequest) SetPageSize(_pageSize int64) error
SetPageSize is PageSize Setter 每页获取条数。默认值40,最小值1,最大值150。
func (*TaobaotraderatesgetAPIRequest) SetRateType ¶ added in v1.3.1
func (r *TaobaotraderatesgetAPIRequest) SetRateType(_rateType string) error
SetRateType is RateType Setter 评价类型。可选值:get(得到),give(给出)
func (*TaobaotraderatesgetAPIRequest) SetResult ¶ added in v1.3.1
func (r *TaobaotraderatesgetAPIRequest) SetResult(_result string) error
SetResult is Result Setter 评价结果。可选值:good(好评),neutral(中评),bad(差评)
func (*TaobaotraderatesgetAPIRequest) SetRole ¶ added in v1.3.1
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.3.1
func (r *TaobaotraderatesgetAPIRequest) SetStartDate(_startDate string) error
SetStartDate is StartDate Setter 评价开始时。如果只输入开始时间,那么能返回开始时间之后的评价数据。
func (*TaobaotraderatesgetAPIRequest) SetTid ¶ added in v1.3.1
func (r *TaobaotraderatesgetAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 交易订单id,可以是父订单id号,也可以是子订单id号
func (*TaobaotraderatesgetAPIRequest) SetUseHasNext ¶ added in v1.3.1
func (r *TaobaotraderatesgetAPIRequest) SetUseHasNext(_useHasNext bool) error
SetUseHasNext is UseHasNext Setter 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取评价信息,效率在原有的基础上有80%的提升。
type TaobaotraderatesgetAPIResponse ¶ added in v1.3.1
type TaobaotraderatesgetAPIResponse struct { model.CommonResponse TaobaotraderatesgetAPIResponseModel }
TaobaotraderatesgetAPIResponse 搜索评价信息 API返回值 taobao.traderates.get
搜索评价信息,只能获取距今180天内的评价记录(只支持查询卖家给出或得到的评价)。
type TaobaotraderatesgetAPIResponseModel ¶ added in v1.3.1
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>taobaotraderatesget_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.3.1
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.3.1
type TmalltraderatefeedsgetAPIRequest struct { model.Params // contains filtered or unexported fields }
TmalltraderatefeedsgetAPIRequest 查询子订单对应的评价、追评以及语义标签 API请求 tmall.traderate.feeds.get
通过子订单ID获取天猫订单对应的评价,追评,以及对应的语义标签
func NewTmalltraderatefeedsgetRequest ¶ added in v1.3.1
func NewTmalltraderatefeedsgetRequest() *TmalltraderatefeedsgetAPIRequest
NewTmalltraderatefeedsgetRequest 初始化TmalltraderatefeedsgetAPIRequest对象
func (TmalltraderatefeedsgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TmalltraderatefeedsgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TmalltraderatefeedsgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TmalltraderatefeedsgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TmalltraderatefeedsgetAPIRequest) GetChildTradeId ¶ added in v1.3.1
func (r TmalltraderatefeedsgetAPIRequest) GetChildTradeId() int64
GetChildTradeId ChildTradeId Getter
func (TmalltraderatefeedsgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TmalltraderatefeedsgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TmalltraderatefeedsgetAPIRequest) SetChildTradeId ¶ added in v1.3.1
func (r *TmalltraderatefeedsgetAPIRequest) SetChildTradeId(_childTradeId int64) error
SetChildTradeId is ChildTradeId Setter 交易子订单ID
type TmalltraderatefeedsgetAPIResponse ¶ added in v1.3.1
type TmalltraderatefeedsgetAPIResponse struct { model.CommonResponse TmalltraderatefeedsgetAPIResponseModel }
TmalltraderatefeedsgetAPIResponse 查询子订单对应的评价、追评以及语义标签 API返回值 tmall.traderate.feeds.get
通过子订单ID获取天猫订单对应的评价,追评,以及对应的语义标签
type TmalltraderatefeedsgetAPIResponseModel ¶ added in v1.3.1
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.3.1
type TmalltraderatefeedsgetModel struct { // 原始评价对应的标签列表 Tags []Tags `json:"tags,omitempty" xml:"tags>tags,omitempty"` // 追加评价中带有的语义标签列表 AppendTags []Tags `json:"append_tags,omitempty" xml:"append_tags>tags,omitempty"` // 追加评价内容 AppendContent string `json:"append_content,omitempty" xml:"append_content,omitempty"` // 评价内容 Content string `json:"content,omitempty" xml:"content,omitempty"` // 追加评价时间 AppendTime string `json:"append_time,omitempty" xml:"append_time,omitempty"` // 表示评价者的昵称 UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"` // 评价时间 CommentTime string `json:"comment_time,omitempty" xml:"comment_time,omitempty"` // ouid Ouid string `json:"ouid,omitempty" xml:"ouid,omitempty"` // 追评中是否含有负向标签 AppendHasNegtv bool `json:"append_has_negtv,omitempty" xml:"append_has_negtv,omitempty"` // 原始评价是否含有负向标签 HasNegtv bool `json:"has_negtv,omitempty" xml:"has_negtv,omitempty"` }
TmalltraderatefeedsgetModel 结构体
type TmalltraderateitemtagsgetAPIRequest ¶ added in v1.3.1
type TmalltraderateitemtagsgetAPIRequest struct { // contains filtered or unexported fields }
TmalltraderateitemtagsgetAPIRequest 通过商品ID获取标签列表 API请求 tmall.traderate.itemtags.get
通过商品ID获取标签详细信息
func NewTmalltraderateitemtagsgetRequest ¶ added in v1.3.1
func NewTmalltraderateitemtagsgetRequest() *TmalltraderateitemtagsgetAPIRequest
NewTmalltraderateitemtagsgetRequest 初始化TmalltraderateitemtagsgetAPIRequest对象
func (TmalltraderateitemtagsgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TmalltraderateitemtagsgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TmalltraderateitemtagsgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TmalltraderateitemtagsgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TmalltraderateitemtagsgetAPIRequest) GetItemId ¶ added in v1.3.1
func (r TmalltraderateitemtagsgetAPIRequest) GetItemId() int64
GetItemId ItemId Getter
func (TmalltraderateitemtagsgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TmalltraderateitemtagsgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TmalltraderateitemtagsgetAPIRequest) SetItemId ¶ added in v1.3.1
func (r *TmalltraderateitemtagsgetAPIRequest) SetItemId(_itemId int64) error
SetItemId is ItemId Setter 商品ID
type TmalltraderateitemtagsgetAPIResponse ¶ added in v1.3.1
type TmalltraderateitemtagsgetAPIResponse struct {}
TmalltraderateitemtagsgetAPIResponse 通过商品ID获取标签列表 API返回值 tmall.traderate.itemtags.get
通过商品ID获取标签详细信息
type TmalltraderateitemtagsgetAPIResponseModel ¶ added in v1.3.1
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