|
|
@@ -138,6 +138,9 @@ const EggFriendCircleEsMapping = ` |
|
|
|
}, |
|
|
|
"state":{ |
|
|
|
"type": "short" |
|
|
|
}, |
|
|
|
"is_praise":{ |
|
|
|
"type": "short" |
|
|
|
}, |
|
|
|
"is_top_up":{ |
|
|
|
"type": "short" |
|
|
@@ -163,14 +166,15 @@ type EggFriendCircleEs struct { |
|
|
|
LikesNums int `json:"likes_nums" label:"点赞数"` |
|
|
|
ShareNums int `json:"share_nums" label:"分享数"` |
|
|
|
CommentNums int `json:"comment_nums" label:"评论数"` |
|
|
|
Sate int32 `json:"state" label:"状态(1:正常 2:隐藏)"` |
|
|
|
State int32 `json:"state" label:"状态(1:正常 2:隐藏)"` |
|
|
|
IsTopUp int32 `json:"is_top_up" label:"是否置顶(1:是 2:否)"` |
|
|
|
IsPraise int32 `json:"is_praise" label:"是否被表扬(1:是 2:否)"` |
|
|
|
CreatedAt string `json:"created_at"` |
|
|
|
UpdatedAt string `json:"updated_at"` |
|
|
|
} |
|
|
|
|
|
|
|
const EggFriendCircleCommentEsAlias = "egg_friend_circle_comment" |
|
|
|
const EggFriendCircleCommentEsIndex = "egg_friend_circle_comment_1" |
|
|
|
const EggFriendCircleCommentEsIndex = "egg_friend_circle_comment_" |
|
|
|
const EggFriendCircleCommentEsMapping = ` |
|
|
|
{ |
|
|
|
"settings" : { |
|
|
@@ -188,11 +192,17 @@ const EggFriendCircleCommentEsMapping = ` |
|
|
|
"circle_id":{ |
|
|
|
"type": "integer" |
|
|
|
}, |
|
|
|
"comment_id":{ |
|
|
|
"type": "integer" |
|
|
|
}, |
|
|
|
"content":{ |
|
|
|
"type": "keyword", |
|
|
|
"type": "keyword" |
|
|
|
}, |
|
|
|
"kind":{ |
|
|
|
"type": "short", |
|
|
|
"type": "short" |
|
|
|
}, |
|
|
|
"is_praise":{ |
|
|
|
"type": "short" |
|
|
|
}, |
|
|
|
"state":{ |
|
|
|
"type": "short" |
|
|
@@ -208,3 +218,15 @@ const EggFriendCircleCommentEsMapping = ` |
|
|
|
} |
|
|
|
} |
|
|
|
}` |
|
|
|
|
|
|
|
type EggFriendCircleCommentEs struct { |
|
|
|
Uid int64 `json:"uid" label:"uid"` |
|
|
|
Kind int32 `json:"kind" label:"类型(1:普通 2:官方)"` |
|
|
|
CircleId int64 `json:"circle_id" label:"朋友圈id"` |
|
|
|
CommentId int64 `json:"comment_id" label:"评论id"` |
|
|
|
Content string `json:"content" label:"文本内容"` |
|
|
|
State int32 `json:"state" label:"状态(1:正常 2:隐藏)"` |
|
|
|
IsPraise int32 `json:"is_praise" label:"是否被表扬(1:是 2:否)"` |
|
|
|
CreatedAt string `json:"created_at"` |
|
|
|
UpdatedAt string `json:"updated_at"` |
|
|
|
} |