Browse Source

add es friend circle like

master
shenjiachi 1 month ago
parent
commit
114f519b2b
1 changed files with 39 additions and 0 deletions
  1. +39
    -0
      md/es.go

+ 39
- 0
md/es.go View File

@@ -244,3 +244,42 @@ type EggFriendCircleCommentEs struct {
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}

const EggFriendCircleLikeEsAlias = "egg_friend_circle_like"
const EggFriendCircleLikeEsIndex = "egg_friend_circle_like_"
const EggFriendCircleLikeEsMapping = `
{
"settings" : {
"number_of_shards" : 2,
"number_of_replicas" : 1
},
"aliases": {
"egg_friend_circle": {}
},
"mappings":{
"properties":{
"uid":{
"type": "integer"
},
"circle_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 EggFriendCircleLikeEs struct {
Uid int64 `json:"uid" label:"uid"`
ImUid int64 `json:"im_uid" label:"im_uid"`
CircleId string `json:"circle_id" label:"朋友圈id"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}

Loading…
Cancel
Save