fcm push modify

This commit is contained in:
Gordon
2022-09-07 16:41:18 +08:00
parent 156e9e2fc7
commit 4a2a9eb997
2 changed files with 20 additions and 0 deletions
+5
View File
@@ -429,3 +429,8 @@ func (d *DataBases) SetUserBadgeUnreadCountSum(uid string, value int) error {
key := userBadgeUnreadCountSum + uid
return d.RDB.Set(context.Background(), key, value, 0).Err()
}
func (d *DataBases) GetUserBadgeUnreadCountSum(uid string) (int, error) {
key := userBadgeUnreadCountSum + uid
seq, err := d.RDB.Get(context.Background(), key).Result()
return utils.StringToInt(seq), err
}