Improve file search results with postgres (#17112)

* Improve file search results with postgres

* Adding channel id to search results

* Fixing file info saves
Этот коммит содержится в:
Jesús Espino
2021-03-16 11:19:13 +01:00
коммит произвёл GitHub
родитель 2417fb265d
Коммит 7208952010
3 изменённых файлов: 24 добавлений и 6 удалений

Просмотреть файл

@@ -45,6 +45,7 @@ type FileInfo struct {
Id string `json:"id"`
CreatorId string `json:"user_id"`
PostId string `json:"post_id,omitempty"`
ChannelId string `db:"-" json:"channel_id"`
CreateAt int64 `json:"create_at"`
UpdateAt int64 `json:"update_at"`
DeleteAt int64 `json:"delete_at"`