Documentation ¶
Overview ¶
Package xiamitrace 包含曲库开放平台TraceAPI相关结构体
Index ¶
- type ResultCode
- type XiamicontentresourceactionreportAPIRequest
- func (r XiamicontentresourceactionreportAPIRequest) GetAction() string
- func (r XiamicontentresourceactionreportAPIRequest) GetApiMethodName() string
- func (r XiamicontentresourceactionreportAPIRequest) GetApiParams(params url.Values)
- func (r XiamicontentresourceactionreportAPIRequest) GetExtra() string
- func (r XiamicontentresourceactionreportAPIRequest) GetFromId() string
- func (r XiamicontentresourceactionreportAPIRequest) GetFromType() int64
- func (r XiamicontentresourceactionreportAPIRequest) GetNum() int64
- func (r XiamicontentresourceactionreportAPIRequest) GetOpenId() string
- func (r XiamicontentresourceactionreportAPIRequest) GetRawParams() model.Params
- func (r XiamicontentresourceactionreportAPIRequest) GetRelationId() string
- func (r XiamicontentresourceactionreportAPIRequest) GetRelationType() string
- func (r XiamicontentresourceactionreportAPIRequest) GetResourceId() string
- func (r XiamicontentresourceactionreportAPIRequest) GetResourceType() string
- func (r XiamicontentresourceactionreportAPIRequest) GetUtdid() string
- func (r *XiamicontentresourceactionreportAPIRequest) SetAction(_action string) error
- func (r *XiamicontentresourceactionreportAPIRequest) SetExtra(_extra string) error
- func (r *XiamicontentresourceactionreportAPIRequest) SetFromId(_fromId string) error
- func (r *XiamicontentresourceactionreportAPIRequest) SetFromType(_fromType int64) error
- func (r *XiamicontentresourceactionreportAPIRequest) SetNum(_num int64) error
- func (r *XiamicontentresourceactionreportAPIRequest) SetOpenId(_openId string) error
- func (r *XiamicontentresourceactionreportAPIRequest) SetRelationId(_relationId string) error
- func (r *XiamicontentresourceactionreportAPIRequest) SetRelationType(_relationType string) error
- func (r *XiamicontentresourceactionreportAPIRequest) SetResourceId(_resourceId string) error
- func (r *XiamicontentresourceactionreportAPIRequest) SetResourceType(_resourceType string) error
- func (r *XiamicontentresourceactionreportAPIRequest) SetUtdid(_utdid string) error
- type XiamicontentresourceactionreportAPIResponse
- type XiamicontentresourceactionreportAPIResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResultCode ¶
type ResultCode struct { // result message Msg string `json:"msg,omitempty" xml:"msg,omitempty"` // result code Code int64 `json:"code,omitempty" xml:"code,omitempty"` }
ResultCode 结构体
type XiamicontentresourceactionreportAPIRequest ¶ added in v1.3.1
type XiamicontentresourceactionreportAPIRequest struct { model.Params // contains filtered or unexported fields }
XiamicontentresourceactionreportAPIRequest 曲库开放平台内容行为上报接口 API请求 xiami.content.resource.action.report
合作方对接入的曲库开放内容上报行为日志
func NewXiamicontentresourceactionreportRequest ¶ added in v1.3.1
func NewXiamicontentresourceactionreportRequest() *XiamicontentresourceactionreportAPIRequest
NewXiamicontentresourceactionreportRequest 初始化XiamicontentresourceactionreportAPIRequest对象
func (XiamicontentresourceactionreportAPIRequest) GetAction ¶ added in v1.3.1
func (r XiamicontentresourceactionreportAPIRequest) GetAction() string
GetAction Action Getter
func (XiamicontentresourceactionreportAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r XiamicontentresourceactionreportAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (XiamicontentresourceactionreportAPIRequest) GetApiParams ¶ added in v1.3.1
func (r XiamicontentresourceactionreportAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (XiamicontentresourceactionreportAPIRequest) GetExtra ¶ added in v1.3.1
func (r XiamicontentresourceactionreportAPIRequest) GetExtra() string
GetExtra Extra Getter
func (XiamicontentresourceactionreportAPIRequest) GetFromId ¶ added in v1.3.1
func (r XiamicontentresourceactionreportAPIRequest) GetFromId() string
GetFromId FromId Getter
func (XiamicontentresourceactionreportAPIRequest) GetFromType ¶ added in v1.3.1
func (r XiamicontentresourceactionreportAPIRequest) GetFromType() int64
GetFromType FromType Getter
func (XiamicontentresourceactionreportAPIRequest) GetNum ¶ added in v1.3.1
func (r XiamicontentresourceactionreportAPIRequest) GetNum() int64
GetNum Num Getter
func (XiamicontentresourceactionreportAPIRequest) GetOpenId ¶ added in v1.3.1
func (r XiamicontentresourceactionreportAPIRequest) GetOpenId() string
GetOpenId OpenId Getter
func (XiamicontentresourceactionreportAPIRequest) GetRawParams ¶ added in v1.3.1
func (r XiamicontentresourceactionreportAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (XiamicontentresourceactionreportAPIRequest) GetRelationId ¶ added in v1.3.1
func (r XiamicontentresourceactionreportAPIRequest) GetRelationId() string
GetRelationId RelationId Getter
func (XiamicontentresourceactionreportAPIRequest) GetRelationType ¶ added in v1.3.1
func (r XiamicontentresourceactionreportAPIRequest) GetRelationType() string
GetRelationType RelationType Getter
func (XiamicontentresourceactionreportAPIRequest) GetResourceId ¶ added in v1.3.1
func (r XiamicontentresourceactionreportAPIRequest) GetResourceId() string
GetResourceId ResourceId Getter
func (XiamicontentresourceactionreportAPIRequest) GetResourceType ¶ added in v1.3.1
func (r XiamicontentresourceactionreportAPIRequest) GetResourceType() string
GetResourceType ResourceType Getter
func (XiamicontentresourceactionreportAPIRequest) GetUtdid ¶ added in v1.3.1
func (r XiamicontentresourceactionreportAPIRequest) GetUtdid() string
GetUtdid Utdid Getter
func (*XiamicontentresourceactionreportAPIRequest) SetAction ¶ added in v1.3.1
func (r *XiamicontentresourceactionreportAPIRequest) SetAction(_action string) error
SetAction is Action Setter 行为类型(可枚举):LISTEN(主动试听)、PASSIVE_LISTEN(被动试听)
func (*XiamicontentresourceactionreportAPIRequest) SetExtra ¶ added in v1.3.1
func (r *XiamicontentresourceactionreportAPIRequest) SetExtra(_extra string) error
SetExtra is Extra Setter 扩展信息
func (*XiamicontentresourceactionreportAPIRequest) SetFromId ¶ added in v1.3.1
func (r *XiamicontentresourceactionreportAPIRequest) SetFromId(_fromId string) error
SetFromId is FromId Setter 来源id,如歌单id
func (*XiamicontentresourceactionreportAPIRequest) SetFromType ¶ added in v1.3.1
func (r *XiamicontentresourceactionreportAPIRequest) SetFromType(_fromType int64) error
SetFromType is FromType Setter 1推荐2歌单3标签
func (*XiamicontentresourceactionreportAPIRequest) SetNum ¶ added in v1.3.1
func (r *XiamicontentresourceactionreportAPIRequest) SetNum(_num int64) error
SetNum is Num Setter 行为数量
func (*XiamicontentresourceactionreportAPIRequest) SetOpenId ¶ added in v1.3.1
func (r *XiamicontentresourceactionreportAPIRequest) SetOpenId(_openId string) error
SetOpenId is OpenId Setter 用户id
func (*XiamicontentresourceactionreportAPIRequest) SetRelationId ¶ added in v1.3.1
func (r *XiamicontentresourceactionreportAPIRequest) SetRelationId(_relationId string) error
SetRelationId is RelationId Setter 音频id
func (*XiamicontentresourceactionreportAPIRequest) SetRelationType ¶ added in v1.3.1
func (r *XiamicontentresourceactionreportAPIRequest) SetRelationType(_relationType string) error
SetRelationType is RelationType Setter 关联类型(如音频)
func (*XiamicontentresourceactionreportAPIRequest) SetResourceId ¶ added in v1.3.1
func (r *XiamicontentresourceactionreportAPIRequest) SetResourceId(_resourceId string) error
SetResourceId is ResourceId Setter 资源ID
func (*XiamicontentresourceactionreportAPIRequest) SetResourceType ¶ added in v1.3.1
func (r *XiamicontentresourceactionreportAPIRequest) SetResourceType(_resourceType string) error
SetResourceType is ResourceType Setter 资源类型(可枚举): song(歌曲)
func (*XiamicontentresourceactionreportAPIRequest) SetUtdid ¶ added in v1.3.1
func (r *XiamicontentresourceactionreportAPIRequest) SetUtdid(_utdid string) error
SetUtdid is Utdid Setter 用户设备id
type XiamicontentresourceactionreportAPIResponse ¶ added in v1.3.1
type XiamicontentresourceactionreportAPIResponse struct { model.CommonResponse XiamicontentresourceactionreportAPIResponseModel }
XiamicontentresourceactionreportAPIResponse 曲库开放平台内容行为上报接口 API返回值 xiami.content.resource.action.report
合作方对接入的曲库开放内容上报行为日志
type XiamicontentresourceactionreportAPIResponseModel ¶ added in v1.3.1
type XiamicontentresourceactionreportAPIResponseModel struct { XMLName xml.Name `xml:"xiami_content_resource_action_report_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回结果码 ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` // 上报结果: true(成功), false(失败) Result bool `json:"result,omitempty" xml:"result,omitempty"` }
XiamicontentresourceactionreportAPIResponseModel is 曲库开放平台内容行为上报接口 成功返回结果