comment

package
v0.0.0-...-80d2d60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package comment 评论管理

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelTopRequest

type CancelTopRequest struct {
	// AdvertiserID 告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// CommentID 评论ID
	CommentID uint64 `json:"comment_id,omitempty"`
	// PhotoID 视频ID
	PhotoID uint64 `json:"photo_id,omitempty"`
}

CancelTopRequest 取消评论置顶 API Request

func (CancelTopRequest) Encode

func (r CancelTopRequest) Encode() []byte

Encode implement PostRequest interface

func (CancelTopRequest) Url

func (r CancelTopRequest) Url() string

Url implement PostRequest interface

type CancelTopResponse

type CancelTopResponse struct {
	// CommentID 评论ID
	CommentID uint64 `json:"comment_id,omitempty"`
}

CancelTopResponse 取消评论置顶 API Response

type Comment

type Comment struct {
	// CommentID 评论 ID
	CommentID uint64 `json:"comment_id,omitempty"`
	// RootCommentID 一级评论 ID
	RootCommentID uint64 `json:"root_comment_id,omitempty"`
	// CommentAuthorID 评论发布者 UserID
	CommentAuthorID uint64 `json:"comment_author_id,omitempty"`
	// PhotoID 视频 ID
	PhotoID model.Uint64 `json:"photo_id,omitempty"`
	// PhotoAuthorID 视频作者 UserID
	PhotoAuthorID uint64 `json:"photo_author_id,omitempty"`
	// CommentLevel 评论层级
	// 	1:一级评论,2:二级评论
	CommentLevel int `json:"comment_level,omitempty"`
	// CommentContent 评论内容
	CommentContent string `json:"comment_content,omitempty"`
	// FavNum 点赞数
	FavNum int64 `json:"fav_num,omitempty"`
	// PostTime 评论发布时间
	// 毫秒级时间戳
	PostTime int64 `json:"post_time,omitempty"`
	// NickName 评论发布者昵称
	NickName string `json:"nick_name,omitempty"`
	// ReplyStatus 回复状态
	// 1:未回复,2:已回复
	ReplyStatus int `json:"reply_status,omitempty"`
	// ShieldStatus 屏蔽状态
	// 1:未屏蔽,2:已屏蔽
	ShieldStatus int `json:"shield_status,omitempty"`
	// PhotoTags 视频标签
	PhotoTags []string `json:"photo_tags,omitempty"`
	// IsRootCommentForbid 一级评论是否被隐藏
	IsRootCommentForbid bool `json:"is_root_comment_forbid,omitempty"`
	// ShieldType 屏蔽类型
	// 1:评论内容关键词,3:手动屏蔽,4:社区自动屏蔽,5:用户昵称关键词,6:快手 ID
	ShieldType int `json:"shield_type,omitempty"`
	// EmotionURL 表情url
	EmotionURL string `json:"emotion_url,omitempty"`
	// IsTopComment 是否被置顶
	IsTopComment bool `json:"is_top_comment,omitempty"`
}

Comment 评论

type CommentReply

type CommentReply struct {
	// ReplyToCommentID 回复的评论 ID
	ReplyToCommentID uint64 `json:"reply_to_comment_id,omitempty"`
	// PhotoID 视频 ID
	PhotoID model.Uint64 `json:"photo_id,omitempty"`
	// PhotoAuthorID 视频作者 UserID
	PhotoAuthorID uint64 `json:"photo_author_id,omitempty"`
	// ReplyToUserID 被回复的用户 UserID
	ReplyToUserID uint64 `json:"reply_to_user_id,omitempty"`
	// ReplyContent 回复内容
	ReplyContent string `json:"reply_content,omitempty"`
}

CommentReply 评论回复

type ListRequest

type ListRequest struct {
	// AdvertiserID 广告主 ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// CommentContent 	评论内容
	CommentContent string `json:"comment_content,omitempty"`
	// ReplyStatus 回复状态
	// 1:未回复,2:已回复
	ReplyStatus int `json:"reply_status,omitempty"`
	// CommentLevel 评论层级
	// 1:一级评论,2:二级评论
	CommentLevel int `json:"comment_level,omitempty"`
	// PostStartTime 评论发布起始时间
	// 与 post_time_end 同时传或同时不传;过滤筛选条件,毫秒级时间戳
	PostStartTime int64 `json:"post_time_start,omitempty"`
	// PostEndTime 评论发布结束时间
	// 与 post_time_start 同时传或同时不传;过滤筛选条件,毫秒级时间戳
	PostEndTime int64 `json:"post_time_end,omitempty"`
	// ShieldStatus 隐藏状态
	// 1:未隐藏,2:已隐藏
	ShieldStatus int `json:"shield_status,omitempty"`
	// PhotoQueryValue 视频搜索参数
	// 可输入视频 ID 或视频名称进行查询
	PhotoQueryValue string `json:"photo_query_value,omitempty"`
	// PhotoTag 视频标签
	PhotoTag string `json:"photo_tag,omitempty"`
	// Page 页码
	Page int `json:"page,omitempty"`
	// PageSize 每页条数
	PageSize int `json:"page_size,omitempty"`
}

ListRequest 评论列表数据查询 API Request

func (ListRequest) Encode

func (r ListRequest) Encode() []byte

Encode implement PostRequest interface

func (ListRequest) Url

func (r ListRequest) Url() string

Url implement PostRequest interface

type ListResponse

type ListResponse struct {
	// Total 	符合条件的记录总数
	Total int `json:"total,omitempty"`
	// Details 	评论列表
	Details []Comment `json:"details,omitempty"`
}

ListResponse 评论列表数据查询 API Response

type ReplyRequest

type ReplyRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// ReplyList 批量回复评论参数
	ReplyList []CommentReply `json:"reply_list,omitempty"`
}

ReplyRequest 评论回复 API Request

func (ReplyRequest) Encode

func (r ReplyRequest) Encode() []byte

Encode implement PostRequest interface

func (ReplyRequest) Url

func (r ReplyRequest) Url() string

Url implement PostRequest interface

type ReplyResponse

type ReplyResponse struct {
	// ReplyResultList
	ReplyResultList []ReplyResult `json:"reply_result_list,omitempty"`
}

ReplyResponse 评论回复 API Response

type ReplyResult

type ReplyResult struct {
	// ReplyToCommentID 回复的评论 ID
	ReplyToCommentID uint64 `json:"reply_to_comment_id,omitempty"`
	// ReplyResult 回复结果
	// 1 成功;2 失败
	ReplyResult int `json:"reply_result,omitempty"`
}

type SetTopRequest

type SetTopRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// CommentID 评论ID
	CommentID uint64 `json:"comment_id,omitempty"`
	// PhotoID 视频ID
	PhotoID uint64 `json:"photo_id,omitempty"`
}

SetTopRequest 评论置顶 API Request

func (SetTopRequest) Encode

func (r SetTopRequest) Encode() []byte

Encode implement PostRequest interface

func (SetTopRequest) Url

func (r SetTopRequest) Url() string

Url implement PostRequest interface

type SetTopResponse

type SetTopResponse struct {
	// CommentID 评论ID
	CommentID uint64 `json:"comment_id,omitempty"`
}

SetTopResponse 评论置顶 API Response

type ShieldComment

type ShieldComment struct {
	// CommentID 评论ID
	CommentID uint64 `json:"comment_id,omitempty"`
	// PhotoID 视频 ID
	PhotoID uint64 `json:"photo_id,omitempty"`
}

SheildComment 屏蔽评论参数

type ShieldInfo

type ShieldInfo struct {
	// ShieldInfoID 屏蔽信息ID
	ShieldInfoID uint64 `json:"shield_info_id,omitempty"`
	// ShieldType 屏蔽信息类型
	ShieldType int `json:"shield_type,omitempty"`
	// ShieldContent 屏蔽内容
	ShieldContent string `json:"shield_content,omitempty"`
}

type ShieldInfoCreateRequest

type ShieldInfoCreateRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// ShieldContentList 根据 shield_type 类型填写屏蔽信息内容
	ShieldContentList []string `json:"shield_content_list,omitempty"`
	// ShieldType 屏蔽类型
	// 1:评论内容关键词(数量上限 100,长度上限 20),5:用户昵称关键词(数量上限 100,长度上限 20),6:快手 ID(数量上限 200)
	ShieldType int `json:"shield_type,omitempty"`
}

ShieldInfoCreateRequest 增加屏蔽评论信息 API Request

func (ShieldInfoCreateRequest) Encode

func (r ShieldInfoCreateRequest) Encode() []byte

Encode implement PostRequest interface

func (ShieldInfoCreateRequest) Url

Url implement PostRequest interface

type ShieldInfoCreateResponse

type ShieldInfoCreateResponse struct {
	// ShieldInfoIDList 生成的屏蔽信息id
	// 仅返回创建成功的屏蔽信息id(超过数量限制返回为空;超过长度限制、屏蔽信息重复的屏蔽信息会被过滤掉)
	ShieldInfoIDList []uint64 `json:"shield_info_id_list,omitempty"`
}

ShieldInfoCreateResponse 增加屏蔽评论信息 API Response

type ShieldInfoDeleteRequest

type ShieldInfoDeleteRequest struct {
	// AdvertiserID 广告主id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// ShieldInfoIDList 屏蔽信息id
	ShieldInfoIDList []uint64 `json:"shield_info_id_list,omitempty"`
}

ShieldInfoDeleteRequest 删除屏蔽评论信息 API Request

func (ShieldInfoDeleteRequest) Encode

func (r ShieldInfoDeleteRequest) Encode() []byte

Encode implement PostRequest interface

func (ShieldInfoDeleteRequest) Url

Url implement PostRequest interface

type ShieldInfoListRequest

type ShieldInfoListRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// Page 页码
	Page int `json:"page,omitempty"`
	// PageSize 每页条数
	PageSize int `json:"page_size,omitempty"`
	// ShieldTypeList 屏蔽信息类型
	// 1:评论内容关键词,5:用户昵称关键词,6:快手 ID
	ShieldTypeList []int `json:"shield_type_list,omitempty"`
}

ShieldInfoListRequest 获取屏蔽评论信息列表 API Request

func (ShieldInfoListRequest) Encode

func (r ShieldInfoListRequest) Encode() []byte

Encode implement PostRequest interface

func (ShieldInfoListRequest) Url

func (r ShieldInfoListRequest) Url() string

Url implement PostRequest interface

type ShieldInfoListResponse

type ShieldInfoListResponse struct {
	// TotalCount 总条数
	TotalCount int `json:"total_count,omitempty"`
	// Details 屏蔽信息列表
	Details []ShieldInfo `json:"details,omitempty"`
}

ShieldInfoListResponse 获取屏蔽评论信息列表 API Response

type ShieldRequest

type ShieldRequest struct {
	// AdvertiserID 广告主ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// ShieldList 批量屏蔽评论参数,单次请求最多屏蔽50条评论
	ShieldList []ShieldComment `json:"shield_list,omitempty"`
}

ShieldRequest 评论屏蔽 API Request

func (ShieldRequest) Encode

func (r ShieldRequest) Encode() []byte

Encode implement PostRequest interface

func (ShieldRequest) Url

func (r ShieldRequest) Url() string

Url implement PostRequest interface

type TreeRequest

type TreeRequest struct {
	// AdvertiserID 广告主 ID
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// CommentID 评论 ID
	CommentID uint64 `json:"comment_id,omitempty"`
}

TreeRequest 评论树查询 API Request

func (TreeRequest) Encode

func (r TreeRequest) Encode() []byte

Encode implement PostRequest interface

func (TreeRequest) Url

func (r TreeRequest) Url() string

Url implement PostRequest interface

type TreeResponse

type TreeResponse struct {
	// RootCommentDetail 一级评论
	RootCommentDetail *Comment `json:"root_comment_detail,omitempty"`
	// ChildCommentDetailList 二级评论
	ChildCommentDetailList []Comment `json:"child_comment_detail_list,omitempty"`
}

TreeResponse 评论树查询 API Response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL