RemoveUserStatus remove user status
(ctx context.Context, userID string)
| 145 | |
| 146 | // RemoveUserStatus remove user status |
| 147 | func (ar *authRepo) RemoveUserStatus(ctx context.Context, userID string) (err error) { |
| 148 | err = ar.data.Cache.Del(ctx, constant.UserStatusChangedCacheKey+userID) |
| 149 | if err != nil { |
| 150 | return errors.InternalServer(reason.DatabaseError).WithError(err).WithStack() |
| 151 | } |
| 152 | return nil |
| 153 | } |
| 154 | |
| 155 | // GetAdminUserCacheInfo get admin user cache info |
| 156 | func (ar *authRepo) GetAdminUserCacheInfo(ctx context.Context, accessToken string) (userInfo *entity.UserCacheInfo, err error) { |