...
|
...
|
@@ -67,8 +67,8 @@ func (repo *MessagePersonalRepository) Find(param map[string]interface{}) (int, |
|
|
if v, ok := param["types"]; ok {
|
|
|
query.Where("types=?", v)
|
|
|
}
|
|
|
if v, ok := param["playload"]; ok {
|
|
|
query.Where("playload @>?", v)
|
|
|
if v, ok := param["payload"]; ok {
|
|
|
query.Where("payload @>?", v)
|
|
|
}
|
|
|
query.Order("id desc")
|
|
|
count, err := query.SelectAndCount()
|
...
|
...
|
|