-
Notifications
You must be signed in to change notification settings - Fork 42
/
comment.go
55 lines (52 loc) · 1.92 KB
/
comment.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package comment
import "github.com/bububa/oceanengine/marketing-api/enum"
// Comment 评论
type Comment struct {
// ID 评论ID
ID uint64 `json:"comment_id,omitempty"`
// Text 评论内容
Text string `json:"text,omitempty"`
// CreateTime 评论创建时间
CreateTime string `json:"create_time,omitempty"`
// ReplyCount 评论的回复数量
ReplyCount int `json:"reply_count,omitempty"`
// LikeCount 点赞数
LikeCount int `json:"like_count,omitempty"`
// ReplyStatus 评论回复状态,REPLIED表示已回复,NO_REPLY表示未回复
ReplyStatus enum.CommentReplyStatus `json:"reply_status,omitempty"`
// HideStatus 隐藏状态, 可选值:
// ALL: 全部
// HIDE: 已隐藏
// NOT_HIDE: 未隐藏
HideStatus enum.CommentHideStatus `json:"hide_status,omitempty"`
// 评论情感, 可选值:
// NEGATIVE: 负向评论
// NEUTRAL: 中性评论
// POSITIVE: 正向评论
EmotionType enum.CommentEmotionType `json:"emotion_type,omitempty"`
// IsStick 该评论是否置顶,0:表示不置顶,1:表示置顶
IsStick int `json:"is_stick,omitempty"`
// AwemeID 评论用户抖音号
AwemeID string `json:"aweme_id,omitempty"`
// AwemeName 评论用户昵称
AwemeName string `json:"aweme_name,omitempty"`
// AdID 计划ID ,仅1.0平台适用
AdID uint64 `json:"ad_id,omitempty"`
// AdName 计划名
AdName string `json:"ad_name,omitempty"`
// CreativeID 评论所属创意id
CreativeID uint64 `json:"creative_id,omitempty"`
// PromotionID 广告id,仅2.0平台适用
PromotionID uint64 `json:"promotion_id,omitempty"`
// ItemID 广告视频ID
ItemID uint64 `json:"item_id,omitempty"`
// ItemTitle 视频标题
ItemTitle string `json:"item_title,omitempty"`
}
// UserInfo 评论用户信息
type UserInfo struct {
// UserScreenName 评论用户昵称
UserScreenName string `json:"user_screen_name,omitempty"`
// AwemeAccount 评论用户抖音号
AwemeAccount string `json:"aweme_account,omitempty"`
}