|
|
@@ -1,5 +1,10 @@ |
|
|
|
package md |
|
|
|
|
|
|
|
const ( |
|
|
|
CommentLikeCacheKey = "comment:%s:like" |
|
|
|
CommentLikeCacheTime = 86400 * 30 |
|
|
|
) |
|
|
|
|
|
|
|
const EggEnergyUserEggScoreEsAlias = "egg_energy_user_egg_score" |
|
|
|
|
|
|
|
const EggEnergyUserEggScoreEsMapping = ` |
|
|
@@ -114,6 +119,9 @@ const EggFriendCircleEsMapping = ` |
|
|
|
"uid":{ |
|
|
|
"type": "integer" |
|
|
|
}, |
|
|
|
"im_uid":{ |
|
|
|
"type": "integer" |
|
|
|
}, |
|
|
|
"kind":{ |
|
|
|
"type": "short" |
|
|
|
}, |
|
|
@@ -190,6 +198,9 @@ const EggFriendCircleCommentEsMapping = ` |
|
|
|
"uid":{ |
|
|
|
"type": "integer" |
|
|
|
}, |
|
|
|
"im_uid":{ |
|
|
|
"type": "integer" |
|
|
|
}, |
|
|
|
"circle_id":{ |
|
|
|
"type": "integer" |
|
|
|
}, |
|
|
@@ -230,17 +241,61 @@ const EggFriendCircleCommentEsMapping = ` |
|
|
|
}` |
|
|
|
|
|
|
|
type EggFriendCircleCommentEs struct { |
|
|
|
Uid int64 `json:"uid" label:"uid"` |
|
|
|
ImUid int64 `json:"im_uid" label:"im_uid"` |
|
|
|
Kind int32 `json:"kind" label:"类型(1:普通 2:官方)"` |
|
|
|
CircleId string `json:"circle_id" label:"朋友圈id"` |
|
|
|
CommentId string `json:"comment_id" label:"评论id"` |
|
|
|
ReplyCommentId string `json:"reply_comment_id" label:"回复评论id"` |
|
|
|
Content string `json:"content" label:"文本内容"` |
|
|
|
LikesNums int `json:"likes_nums" label:"点赞数"` |
|
|
|
CommentNums int `json:"comment_nums" 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"` |
|
|
|
Uid int64 `json:"uid" label:"uid"` |
|
|
|
ImUid int64 `json:"im_uid" label:"im_uid"` |
|
|
|
Kind int32 `json:"kind" label:"类型(1:普通 2:官方)"` |
|
|
|
CircleId string `json:"circle_id" label:"朋友圈id"` |
|
|
|
CommentId string `json:"comment_id" label:"评论id"` |
|
|
|
CommentImUid int64 `json:"comment_im_uid" label:"回复评论用户id"` |
|
|
|
ReplyCommentId string `json:"reply_comment_id" label:"回复评论id"` |
|
|
|
ReplyCommentImUid int64 `json:"reply_comment_im_uid" label:"回复评论用户id"` |
|
|
|
Content string `json:"content" label:"文本内容"` |
|
|
|
LikesNums int `json:"likes_nums" label:"点赞数"` |
|
|
|
CommentNums int `json:"comment_nums" 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"` |
|
|
|
} |
|
|
|
|
|
|
|
//const EggFriendCircleCommentLikeEsAlias = "egg_friend_circle_comment_like" |
|
|
|
//const EggFriendCircleCommentLikeEsIndex = "egg_friend_circle_comment_like_" |
|
|
|
//const EggFriendCircleCommentLikeEsMapping = ` |
|
|
|
//{ |
|
|
|
// "settings" : { |
|
|
|
// "number_of_shards" : 2, |
|
|
|
// "number_of_replicas" : 1 |
|
|
|
// }, |
|
|
|
// "aliases": { |
|
|
|
// "egg_friend_circle_comment": {} |
|
|
|
// }, |
|
|
|
// "mappings":{ |
|
|
|
// "properties":{ |
|
|
|
// "uid":{ |
|
|
|
// "type": "integer" |
|
|
|
// }, |
|
|
|
// "im_uid":{ |
|
|
|
// "type": "integer" |
|
|
|
// }, |
|
|
|
// "comment_id":{ |
|
|
|
// "type": "integer" |
|
|
|
// }, |
|
|
|
// "created_at":{ |
|
|
|
// "type": "date", |
|
|
|
// "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis" |
|
|
|
// }, |
|
|
|
// "updated_at":{ |
|
|
|
// "type": "date", |
|
|
|
// "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis" |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
//}` |
|
|
|
// |
|
|
|
//type EggFriendCircleCommentLikeEs struct { |
|
|
|
// Uid int64 `json:"uid" label:"uid"` |
|
|
|
// ImUid int64 `json:"im_uid" label:"im_uid"` |
|
|
|
// CommentId string `json:"comment_id" label:"评论id"` |
|
|
|
// CreatedAt string `json:"created_at"` |
|
|
|
// UpdatedAt string `json:"updated_at"` |
|
|
|
//} |