跳转至

comment

models.comment

Comment API 返回模型定义.

IconTextInfo pydantic-model

Bases: Response

评论数量接口附带的角标文案与展示标识.

ATTRIBUTE DESCRIPTION
txt

角标展示文案.

TYPE: str

unique_id

角标唯一标识.

TYPE: str

type

角标类型.

TYPE: int

cmid

关联评论 ID.

TYPE: str

is_dynamic

是否为动态角标.

TYPE: bool

Fields:

CommentCountResponse pydantic-model

Bases: Response

评论数量接口整理后的统计结果.

ATTRIBUTE DESCRIPTION
biz_type

业务类型.

TYPE: int

biz_id

业务对象 ID.

TYPE: str

biz_sub_type

业务子类型.

TYPE: int

count

评论总数.

TYPE: int

count_ver

计数字段版本.

TYPE: str

count_view

面向展示的计数文案.

TYPE: str

related_id

关联对象 ID.

TYPE: str

tip

附加提示文案.

TYPE: str

icon_list

角标信息列表.

TYPE: list[IconTextInfo]

cm_tab_type

评论标签页类型.

TYPE: int

Fields:

CommentItem pydantic-model

Bases: Response

标准评论列表中的单条评论记录.

ATTRIBUTE DESCRIPTION
cmid

评论 ID.

TYPE: str

seq_no

评论序号.

TYPE: str

nick

昵称.

TYPE: str

avatar

头像地址.

TYPE: str

encrypt_uin

加密 UIN.

TYPE: str

content

评论正文.

TYPE: str

pub_time

发布时间戳.

TYPE: int

praise_num

点赞数.

TYPE: int

reply_cnt

回复数.

TYPE: int

is_praised

当前账号是否已点赞.

TYPE: int

is_self

是否为本人评论.

TYPE: int

state

评论状态.

TYPE: int

hot_score

热度分数文案.

TYPE: str

rec_score

推荐分数文案.

TYPE: str

song_id

关联歌曲 ID.

TYPE: int

song_name

关联歌曲名.

TYPE: str

singer_names

关联歌手名串.

TYPE: str

song_ts_elems

歌曲时间轴元素.

TYPE: list[dict[str, Any]]

hash_tag_list

话题标签列表.

TYPE: list[dict[str, Any]]

little_tails

尾巴挂件列表.

TYPE: list[dict[str, Any]]

icon_list

图标列表.

TYPE: list[dict[str, Any]]

vip_ui

VIP 展示信息.

TYPE: dict[str, Any]

sub_comments

子评论列表.

TYPE: list[dict[str, Any]]

Fields:

CommentListResponse pydantic-model

Bases: Response

歌曲等常规内容评论列表接口的响应体.

ATTRIBUTE DESCRIPTION
comments

当前页评论列表.

TYPE: list[CommentItem]

comment_ids

当前页评论 ID 列表.

TYPE: list[str]

has_more

是否还有更多结果.

TYPE: int

next_offset

下一页偏移量.

TYPE: int

total

评论总数.

TYPE: int

total_cm_num

评论总量字段.

TYPE: int

comment_tip

评论提示文案.

TYPE: str

comment_h5_page

H5 页面地址.

TYPE: str

has_ts_cm

是否包含时间轴评论.

TYPE: int

share_cnt

分享数.

TYPE: int

msg

附加消息.

TYPE: str

sub_code

子返回码.

TYPE: int

Fields:

MomentCommentItem pydantic-model

Bases: Response

时刻动态评论流中的单条评论记录.

ATTRIBUTE DESCRIPTION
cmid

评论 ID.

TYPE: str

seq_no

评论序号.

TYPE: str

content

评论正文.

TYPE: str

encrypt_uin

加密 UIN.

TYPE: str

pub_time

发布时间戳.

TYPE: int

praise_num

点赞数.

TYPE: int

reply_cnt

回复数.

TYPE: int

state

评论状态.

TYPE: int

is_self

是否为本人评论.

TYPE: int

location

位置文案.

TYPE: str

phone_type

设备类型文案.

TYPE: str

pic

配图地址.

TYPE: str

pic_size

配图尺寸信息.

TYPE: str

song_ts_elems

歌曲时间轴元素.

TYPE: list[dict[str, Any]]

hash_tag_list

话题标签列表.

TYPE: list[dict[str, Any]]

little_tails

尾巴挂件列表.

TYPE: list[dict[str, Any]]

Fields:

MomentCommentResponse pydantic-model

Bases: Response

时刻评论列表接口的响应体.

ATTRIBUTE DESCRIPTION
comments

当前页时刻评论列表.

TYPE: list[MomentCommentItem]

has_more

是否还有更多结果.

TYPE: int

next_pos

下一页游标.

TYPE: str

hint

提示文案.

TYPE: str

prev_list_loaded

前序列表是否已加载.

TYPE: int

map_cm_ext

评论扩展信息映射.

TYPE: dict[str, dict[str, Any]]

Fields: