Documentation ¶
Overview ¶
Package xiamitrace 包含曲库开放平台TraceAPI相关结构体
Index ¶
- func ReleaseResultCode(v *ResultCode)
- func ReleaseXiamiContentResourceActionReportAPIRequest(v *XiamiContentResourceActionReportAPIRequest)
- func ReleaseXiamiContentResourceActionReportAPIResponse(v *XiamiContentResourceActionReportAPIResponse)
- 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) Reset()
- 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 ¶
func ReleaseResultCode ¶ added in v1.3.4
func ReleaseResultCode(v *ResultCode)
ReleaseResultCode 释放ResultCode
func ReleaseXiamiContentResourceActionReportAPIRequest ¶ added in v1.3.4
func ReleaseXiamiContentResourceActionReportAPIRequest(v *XiamiContentResourceActionReportAPIRequest)
ReleaseXiamiContentResourceActionReportAPIRequest 将 XiamiContentResourceActionReportAPIRequest 放入 sync.Pool
func ReleaseXiamiContentResourceActionReportAPIResponse ¶ added in v1.3.4
func ReleaseXiamiContentResourceActionReportAPIResponse(v *XiamiContentResourceActionReportAPIResponse)
ReleaseXiamiContentResourceActionReportAPIResponse 将 XiamiContentResourceActionReportAPIResponse 保存到 sync.Pool
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 结构体
func GetResultCode ¶ added in v1.3.4
func GetResultCode() *ResultCode
GetResultCode() 从对象池中获取ResultCode
type XiamiContentResourceActionReportAPIRequest ¶ added in v1.2.0
type XiamiContentResourceActionReportAPIRequest struct { model.Params // contains filtered or unexported fields }
XiamiContentResourceActionReportAPIRequest 曲库开放平台内容行为上报接口 API请求 xiami.content.resource.action.report
合作方对接入的曲库开放内容上报行为日志
func GetXiamiContentResourceActionReportAPIRequest ¶ added in v1.3.4
func GetXiamiContentResourceActionReportAPIRequest() *XiamiContentResourceActionReportAPIRequest
GetXiamiContentResourceActionReportRequest 从 sync.Pool 获取 XiamiContentResourceActionReportAPIRequest
func NewXiamiContentResourceActionReportRequest ¶
func NewXiamiContentResourceActionReportRequest() *XiamiContentResourceActionReportAPIRequest
NewXiamiContentResourceActionReportRequest 初始化XiamiContentResourceActionReportAPIRequest对象
func (XiamiContentResourceActionReportAPIRequest) GetAction ¶ added in v1.2.0
func (r XiamiContentResourceActionReportAPIRequest) GetAction() string
GetAction Action Getter
func (XiamiContentResourceActionReportAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r XiamiContentResourceActionReportAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (XiamiContentResourceActionReportAPIRequest) GetApiParams ¶ added in v1.2.0
func (r XiamiContentResourceActionReportAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (XiamiContentResourceActionReportAPIRequest) GetExtra ¶ added in v1.2.5
func (r XiamiContentResourceActionReportAPIRequest) GetExtra() string
GetExtra Extra Getter
func (XiamiContentResourceActionReportAPIRequest) GetFromId ¶ added in v1.2.0
func (r XiamiContentResourceActionReportAPIRequest) GetFromId() string
GetFromId FromId Getter
func (XiamiContentResourceActionReportAPIRequest) GetFromType ¶ added in v1.2.0
func (r XiamiContentResourceActionReportAPIRequest) GetFromType() int64
GetFromType FromType Getter
func (XiamiContentResourceActionReportAPIRequest) GetNum ¶ added in v1.2.0
func (r XiamiContentResourceActionReportAPIRequest) GetNum() int64
GetNum Num Getter
func (XiamiContentResourceActionReportAPIRequest) GetOpenId ¶ added in v1.2.0
func (r XiamiContentResourceActionReportAPIRequest) GetOpenId() string
GetOpenId OpenId Getter
func (XiamiContentResourceActionReportAPIRequest) GetRawParams ¶ added in v1.2.8
func (r XiamiContentResourceActionReportAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (XiamiContentResourceActionReportAPIRequest) GetRelationId ¶ added in v1.2.9
func (r XiamiContentResourceActionReportAPIRequest) GetRelationId() string
GetRelationId RelationId Getter
func (XiamiContentResourceActionReportAPIRequest) GetRelationType ¶ added in v1.2.9
func (r XiamiContentResourceActionReportAPIRequest) GetRelationType() string
GetRelationType RelationType Getter
func (XiamiContentResourceActionReportAPIRequest) GetResourceId ¶ added in v1.2.0
func (r XiamiContentResourceActionReportAPIRequest) GetResourceId() string
GetResourceId ResourceId Getter
func (XiamiContentResourceActionReportAPIRequest) GetResourceType ¶ added in v1.2.0
func (r XiamiContentResourceActionReportAPIRequest) GetResourceType() string
GetResourceType ResourceType Getter
func (XiamiContentResourceActionReportAPIRequest) GetUtdid ¶ added in v1.2.0
func (r XiamiContentResourceActionReportAPIRequest) GetUtdid() string
GetUtdid Utdid Getter
func (*XiamiContentResourceActionReportAPIRequest) Reset ¶ added in v1.3.4
func (r *XiamiContentResourceActionReportAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*XiamiContentResourceActionReportAPIRequest) SetAction ¶ added in v1.2.0
func (r *XiamiContentResourceActionReportAPIRequest) SetAction(_action string) error
SetAction is Action Setter 行为类型(可枚举):LISTEN(主动试听)、PASSIVE_LISTEN(被动试听)
func (*XiamiContentResourceActionReportAPIRequest) SetExtra ¶ added in v1.2.5
func (r *XiamiContentResourceActionReportAPIRequest) SetExtra(_extra string) error
SetExtra is Extra Setter 扩展信息
func (*XiamiContentResourceActionReportAPIRequest) SetFromId ¶ added in v1.2.0
func (r *XiamiContentResourceActionReportAPIRequest) SetFromId(_fromId string) error
SetFromId is FromId Setter 来源id,如歌单id
func (*XiamiContentResourceActionReportAPIRequest) SetFromType ¶ added in v1.2.0
func (r *XiamiContentResourceActionReportAPIRequest) SetFromType(_fromType int64) error
SetFromType is FromType Setter 1推荐2歌单3标签
func (*XiamiContentResourceActionReportAPIRequest) SetNum ¶ added in v1.2.0
func (r *XiamiContentResourceActionReportAPIRequest) SetNum(_num int64) error
SetNum is Num Setter 行为数量
func (*XiamiContentResourceActionReportAPIRequest) SetOpenId ¶ added in v1.2.0
func (r *XiamiContentResourceActionReportAPIRequest) SetOpenId(_openId string) error
SetOpenId is OpenId Setter 用户id
func (*XiamiContentResourceActionReportAPIRequest) SetRelationId ¶ added in v1.2.9
func (r *XiamiContentResourceActionReportAPIRequest) SetRelationId(_relationId string) error
SetRelationId is RelationId Setter 音频id
func (*XiamiContentResourceActionReportAPIRequest) SetRelationType ¶ added in v1.2.9
func (r *XiamiContentResourceActionReportAPIRequest) SetRelationType(_relationType string) error
SetRelationType is RelationType Setter 关联类型(如音频)
func (*XiamiContentResourceActionReportAPIRequest) SetResourceId ¶ added in v1.2.0
func (r *XiamiContentResourceActionReportAPIRequest) SetResourceId(_resourceId string) error
SetResourceId is ResourceId Setter 资源ID
func (*XiamiContentResourceActionReportAPIRequest) SetResourceType ¶ added in v1.2.0
func (r *XiamiContentResourceActionReportAPIRequest) SetResourceType(_resourceType string) error
SetResourceType is ResourceType Setter 资源类型(可枚举): song(歌曲)
func (*XiamiContentResourceActionReportAPIRequest) SetUtdid ¶ added in v1.2.0
func (r *XiamiContentResourceActionReportAPIRequest) SetUtdid(_utdid string) error
SetUtdid is Utdid Setter 用户设备id
type XiamiContentResourceActionReportAPIResponse ¶
type XiamiContentResourceActionReportAPIResponse struct { model.CommonResponse XiamiContentResourceActionReportAPIResponseModel }
XiamiContentResourceActionReportAPIResponse 曲库开放平台内容行为上报接口 API返回值 xiami.content.resource.action.report
合作方对接入的曲库开放内容上报行为日志
func GetXiamiContentResourceActionReportAPIResponse ¶ added in v1.3.4
func GetXiamiContentResourceActionReportAPIResponse() *XiamiContentResourceActionReportAPIResponse
GetXiamiContentResourceActionReportAPIResponse 从 sync.Pool 获取 XiamiContentResourceActionReportAPIResponse
func (*XiamiContentResourceActionReportAPIResponse) Reset ¶ added in v1.3.4
func (m *XiamiContentResourceActionReportAPIResponse) Reset()
Reset 清空结构体
type XiamiContentResourceActionReportAPIResponseModel ¶ added in v1.2.0
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 曲库开放平台内容行为上报接口 成功返回结果
func (*XiamiContentResourceActionReportAPIResponseModel) Reset ¶ added in v1.3.4
func (m *XiamiContentResourceActionReportAPIResponseModel) Reset()
Reset 清空结构体