Documentation ¶
Overview ¶
Package baichuanctg 包含百川-ctg相关结构体
Index ¶
- type AlibabaBaichuanCtgToutiaoContentAPIRequest
- func (r AlibabaBaichuanCtgToutiaoContentAPIRequest) GetApiMethodName() string
- func (r AlibabaBaichuanCtgToutiaoContentAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaBaichuanCtgToutiaoContentAPIRequest) GetParam0() *CtgRequest
- func (r AlibabaBaichuanCtgToutiaoContentAPIRequest) GetRawParams() model.Params
- func (r *AlibabaBaichuanCtgToutiaoContentAPIRequest) SetParam0(_param0 *CtgRequest) error
- type AlibabaBaichuanCtgToutiaoContentAPIResponse
- type AlibabaBaichuanCtgToutiaoContentAPIResponseModel
- type AlibabaBaichuanCtgToutiaoContentData
- type CtgRequest
- type CtgResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlibabaBaichuanCtgToutiaoContentAPIRequest ¶ added in v1.2.0
type AlibabaBaichuanCtgToutiaoContentAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaBaichuanCtgToutiaoContentAPIRequest 微博输出头条数据 API请求 alibaba.baichuan.ctg.toutiao.content
百川头条内容获取
func NewAlibabaBaichuanCtgToutiaoContentRequest ¶
func NewAlibabaBaichuanCtgToutiaoContentRequest() *AlibabaBaichuanCtgToutiaoContentAPIRequest
NewAlibabaBaichuanCtgToutiaoContentRequest 初始化AlibabaBaichuanCtgToutiaoContentAPIRequest对象
func (AlibabaBaichuanCtgToutiaoContentAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlibabaBaichuanCtgToutiaoContentAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaBaichuanCtgToutiaoContentAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlibabaBaichuanCtgToutiaoContentAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaBaichuanCtgToutiaoContentAPIRequest) GetParam0 ¶ added in v1.2.0
func (r AlibabaBaichuanCtgToutiaoContentAPIRequest) GetParam0() *CtgRequest
GetParam0 Param0 Getter
func (AlibabaBaichuanCtgToutiaoContentAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaBaichuanCtgToutiaoContentAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaBaichuanCtgToutiaoContentAPIRequest) SetParam0 ¶ added in v1.2.0
func (r *AlibabaBaichuanCtgToutiaoContentAPIRequest) SetParam0(_param0 *CtgRequest) error
SetParam0 is Param0 Setter param0
type AlibabaBaichuanCtgToutiaoContentAPIResponse ¶
type AlibabaBaichuanCtgToutiaoContentAPIResponse struct { model.CommonResponse AlibabaBaichuanCtgToutiaoContentAPIResponseModel }
AlibabaBaichuanCtgToutiaoContentAPIResponse 微博输出头条数据 API返回值 alibaba.baichuan.ctg.toutiao.content
百川头条内容获取
type AlibabaBaichuanCtgToutiaoContentAPIResponseModel ¶ added in v1.2.0
type AlibabaBaichuanCtgToutiaoContentAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_baichuan_ctg_toutiao_content_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 内容总体结构 Result *CtgResponse `json:"result,omitempty" xml:"result,omitempty"` }
AlibabaBaichuanCtgToutiaoContentAPIResponseModel is 微博输出头条数据 成功返回结果
type AlibabaBaichuanCtgToutiaoContentData ¶
type AlibabaBaichuanCtgToutiaoContentData struct { // 内容标题 Title string `json:"title,omitempty" xml:"title,omitempty"` // 内容发布时间 PublishTime string `json:"publish_time,omitempty" xml:"publish_time,omitempty"` // 内容来源:头条 Source string `json:"source,omitempty" xml:"source,omitempty"` // 内容概要描述 Summary string `json:"summary,omitempty" xml:"summary,omitempty"` // 内容封面图 CoverUrl string `json:"cover_url,omitempty" xml:"cover_url,omitempty"` // 内容链接(可能为空) ContentUrl string `json:"content_url,omitempty" xml:"content_url,omitempty"` // 内容来源说明 OrgSource string `json:"org_source,omitempty" xml:"org_source,omitempty"` // 达人nick Nick string `json:"nick,omitempty" xml:"nick,omitempty"` // 淘宝达人id TbUid string `json:"tb_uid,omitempty" xml:"tb_uid,omitempty"` // 微博大V账户id WbUid string `json:"wb_uid,omitempty" xml:"wb_uid,omitempty"` // 内容创建时间 CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"` // 返回的埋点参数 Ybhpss string `json:"ybhpss,omitempty" xml:"ybhpss,omitempty"` // 内容正文信息 Body string `json:"body,omitempty" xml:"body,omitempty"` // 内容修改时间 ModifiedTime string `json:"modified_time,omitempty" xml:"modified_time,omitempty"` // 返回商品列表信息 ItemUrlList string `json:"item_url_list,omitempty" xml:"item_url_list,omitempty"` // 内容id ContentId string `json:"content_id,omitempty" xml:"content_id,omitempty"` }
AlibabaBaichuanCtgToutiaoContentData 结构体
type CtgRequest ¶
type CtgRequest struct { // delivery_id DeliveryId string `json:"delivery_id,omitempty" xml:"delivery_id,omitempty"` // res_id ResId string `json:"res_id,omitempty" xml:"res_id,omitempty"` // app_key BusinessAppKey string `json:"business_app_key,omitempty" xml:"business_app_key,omitempty"` // date Date string `json:"date,omitempty" xml:"date,omitempty"` // page_size PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` // current_page CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` }
CtgRequest 结构体
type CtgResponse ¶
type CtgResponse struct { // 数据列表 DataList []AlibabaBaichuanCtgToutiaoContentData `json:"data_list,omitempty" xml:"data_list>alibaba_baichuan_ctg_toutiao_content_data,omitempty"` // 返回错误信息 ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` // 错误码 ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` // 是否包含下一页数据 HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` // 处理成功与否 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
CtgResponse 结构体