Documentation ¶
Overview ¶
Package baichuanctg 包含百川-ctg相关结构体
Index ¶
- func ReleaseAlibabaBaichuanCtgToutiaoContentAPIRequest(v *AlibabaBaichuanCtgToutiaoContentAPIRequest)
- func ReleaseAlibabaBaichuanCtgToutiaoContentAPIResponse(v *AlibabaBaichuanCtgToutiaoContentAPIResponse)
- func ReleaseAlibabaBaichuanCtgToutiaoContentData(v *AlibabaBaichuanCtgToutiaoContentData)
- func ReleaseCtgRequest(v *CtgRequest)
- func ReleaseCtgResponse(v *CtgResponse)
- 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) Reset()
- 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 ¶
func ReleaseAlibabaBaichuanCtgToutiaoContentAPIRequest ¶ added in v1.3.4
func ReleaseAlibabaBaichuanCtgToutiaoContentAPIRequest(v *AlibabaBaichuanCtgToutiaoContentAPIRequest)
ReleaseAlibabaBaichuanCtgToutiaoContentAPIRequest 将 AlibabaBaichuanCtgToutiaoContentAPIRequest 放入 sync.Pool
func ReleaseAlibabaBaichuanCtgToutiaoContentAPIResponse ¶ added in v1.3.4
func ReleaseAlibabaBaichuanCtgToutiaoContentAPIResponse(v *AlibabaBaichuanCtgToutiaoContentAPIResponse)
ReleaseAlibabaBaichuanCtgToutiaoContentAPIResponse 将 AlibabaBaichuanCtgToutiaoContentAPIResponse 保存到 sync.Pool
func ReleaseAlibabaBaichuanCtgToutiaoContentData ¶ added in v1.3.4
func ReleaseAlibabaBaichuanCtgToutiaoContentData(v *AlibabaBaichuanCtgToutiaoContentData)
ReleaseAlibabaBaichuanCtgToutiaoContentData 释放AlibabaBaichuanCtgToutiaoContentData
func ReleaseCtgRequest ¶ added in v1.3.4
func ReleaseCtgRequest(v *CtgRequest)
ReleaseCtgRequest 释放CtgRequest
func ReleaseCtgResponse ¶ added in v1.3.4
func ReleaseCtgResponse(v *CtgResponse)
ReleaseCtgResponse 释放CtgResponse
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 GetAlibabaBaichuanCtgToutiaoContentAPIRequest ¶ added in v1.3.4
func GetAlibabaBaichuanCtgToutiaoContentAPIRequest() *AlibabaBaichuanCtgToutiaoContentAPIRequest
GetAlibabaBaichuanCtgToutiaoContentRequest 从 sync.Pool 获取 AlibabaBaichuanCtgToutiaoContentAPIRequest
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) Reset ¶ added in v1.3.4
func (r *AlibabaBaichuanCtgToutiaoContentAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
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
百川头条内容获取
func GetAlibabaBaichuanCtgToutiaoContentAPIResponse ¶ added in v1.3.4
func GetAlibabaBaichuanCtgToutiaoContentAPIResponse() *AlibabaBaichuanCtgToutiaoContentAPIResponse
GetAlibabaBaichuanCtgToutiaoContentAPIResponse 从 sync.Pool 获取 AlibabaBaichuanCtgToutiaoContentAPIResponse
func (*AlibabaBaichuanCtgToutiaoContentAPIResponse) Reset ¶ added in v1.3.4
func (m *AlibabaBaichuanCtgToutiaoContentAPIResponse) Reset()
Reset 清空结构体
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 微博输出头条数据 成功返回结果
func (*AlibabaBaichuanCtgToutiaoContentAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlibabaBaichuanCtgToutiaoContentAPIResponseModel) Reset()
Reset 清空结构体
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 结构体
func GetAlibabaBaichuanCtgToutiaoContentData ¶ added in v1.3.4
func GetAlibabaBaichuanCtgToutiaoContentData() *AlibabaBaichuanCtgToutiaoContentData
GetAlibabaBaichuanCtgToutiaoContentData() 从对象池中获取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 结构体
func GetCtgRequest ¶ added in v1.3.4
func GetCtgRequest() *CtgRequest
GetCtgRequest() 从对象池中获取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 结构体
func GetCtgResponse ¶ added in v1.3.4
func GetCtgResponse() *CtgResponse
GetCtgResponse() 从对象池中获取CtgResponse