Documentation ¶
Index ¶
- type ResultCode
- type XiamiContentResourceActionReportAPIResponse
- type XiamiContentResourceActionReportRequest
- func (r XiamiContentResourceActionReportRequest) GetAction() string
- func (r XiamiContentResourceActionReportRequest) GetApiMethodName() string
- func (r XiamiContentResourceActionReportRequest) GetApiParams() url.Values
- func (r XiamiContentResourceActionReportRequest) GetFromId() string
- func (r XiamiContentResourceActionReportRequest) GetFromType() int64
- func (r XiamiContentResourceActionReportRequest) GetNum() int64
- func (r XiamiContentResourceActionReportRequest) GetOpenId() string
- func (r XiamiContentResourceActionReportRequest) GetResourceId() string
- func (r XiamiContentResourceActionReportRequest) GetResourceType() string
- func (r XiamiContentResourceActionReportRequest) GetUtdid() string
- func (r *XiamiContentResourceActionReportRequest) SetAction(action string) error
- func (r *XiamiContentResourceActionReportRequest) SetFromId(fromId string) error
- func (r *XiamiContentResourceActionReportRequest) SetFromType(fromType int64) error
- func (r *XiamiContentResourceActionReportRequest) SetNum(num int64) error
- func (r *XiamiContentResourceActionReportRequest) SetOpenId(openId string) error
- func (r *XiamiContentResourceActionReportRequest) SetResourceId(resourceId string) error
- func (r *XiamiContentResourceActionReportRequest) SetResourceType(resourceType string) error
- func (r *XiamiContentResourceActionReportRequest) SetUtdid(utdid string) error
- type XiamiContentResourceActionReportResponse
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 XiamiContentResourceActionReportAPIResponse ¶
type XiamiContentResourceActionReportAPIResponse struct { model.CommonResponse XiamiContentResourceActionReportResponse }
曲库开放平台内容行为上报接口 API返回值 xiami.content.resource.action.report
合作方对接入的曲库开放内容上报行为日志
type XiamiContentResourceActionReportRequest ¶
type XiamiContentResourceActionReportRequest struct { model.Params // contains filtered or unexported fields }
曲库开放平台内容行为上报接口 API请求 xiami.content.resource.action.report
合作方对接入的曲库开放内容上报行为日志
func NewXiamiContentResourceActionReportRequest ¶
func NewXiamiContentResourceActionReportRequest() *XiamiContentResourceActionReportRequest
初始化XiamiContentResourceActionReportRequest对象
func (XiamiContentResourceActionReportRequest) GetAction ¶
func (r XiamiContentResourceActionReportRequest) GetAction() string
Action Getter
func (XiamiContentResourceActionReportRequest) GetApiMethodName ¶
func (r XiamiContentResourceActionReportRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (XiamiContentResourceActionReportRequest) GetApiParams ¶
func (r XiamiContentResourceActionReportRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (XiamiContentResourceActionReportRequest) GetFromId ¶
func (r XiamiContentResourceActionReportRequest) GetFromId() string
FromId Getter
func (XiamiContentResourceActionReportRequest) GetFromType ¶
func (r XiamiContentResourceActionReportRequest) GetFromType() int64
FromType Getter
func (XiamiContentResourceActionReportRequest) GetNum ¶
func (r XiamiContentResourceActionReportRequest) GetNum() int64
Num Getter
func (XiamiContentResourceActionReportRequest) GetOpenId ¶
func (r XiamiContentResourceActionReportRequest) GetOpenId() string
OpenId Getter
func (XiamiContentResourceActionReportRequest) GetResourceId ¶
func (r XiamiContentResourceActionReportRequest) GetResourceId() string
ResourceId Getter
func (XiamiContentResourceActionReportRequest) GetResourceType ¶
func (r XiamiContentResourceActionReportRequest) GetResourceType() string
ResourceType Getter
func (XiamiContentResourceActionReportRequest) GetUtdid ¶
func (r XiamiContentResourceActionReportRequest) GetUtdid() string
Utdid Getter
func (*XiamiContentResourceActionReportRequest) SetAction ¶
func (r *XiamiContentResourceActionReportRequest) SetAction(action string) error
Action Setter 行为类型(可枚举):LISTEN(主动试听)、PASSIVE_LISTEN(被动试听)
func (*XiamiContentResourceActionReportRequest) SetFromId ¶
func (r *XiamiContentResourceActionReportRequest) SetFromId(fromId string) error
FromId Setter 来源id,如歌单id
func (*XiamiContentResourceActionReportRequest) SetFromType ¶
func (r *XiamiContentResourceActionReportRequest) SetFromType(fromType int64) error
FromType Setter 1推荐2歌单3标签
func (*XiamiContentResourceActionReportRequest) SetNum ¶
func (r *XiamiContentResourceActionReportRequest) SetNum(num int64) error
Num Setter 行为数量
func (*XiamiContentResourceActionReportRequest) SetOpenId ¶
func (r *XiamiContentResourceActionReportRequest) SetOpenId(openId string) error
OpenId Setter 用户id
func (*XiamiContentResourceActionReportRequest) SetResourceId ¶
func (r *XiamiContentResourceActionReportRequest) SetResourceId(resourceId string) error
ResourceId Setter 资源ID
func (*XiamiContentResourceActionReportRequest) SetResourceType ¶
func (r *XiamiContentResourceActionReportRequest) SetResourceType(resourceType string) error
ResourceType Setter 资源类型(可枚举): song(歌曲)
func (*XiamiContentResourceActionReportRequest) SetUtdid ¶
func (r *XiamiContentResourceActionReportRequest) SetUtdid(utdid string) error
Utdid Setter 用户设备id
type XiamiContentResourceActionReportResponse ¶
type XiamiContentResourceActionReportResponse struct { XMLName xml.Name `xml:"xiami_content_resource_action_report_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 上报结果: true(成功), false(失败) Result bool `json:"result,omitempty" xml:"result,omitempty"` // 返回结果码 ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` }
曲库开放平台内容行为上报接口 成功返回结果