9 changed files with 154 additions and 7 deletions
@ -0,0 +1,65 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.elink.esua.epdc.vaccine.vim.redis; |
||||
|
|
||||
|
import com.elink.esua.epdc.commons.tools.redis.RedisKeys; |
||||
|
import com.elink.esua.epdc.commons.tools.redis.RedisUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 区划信息表 |
||||
|
* |
||||
|
* @author yujintao yujintao@elink-cn.com |
||||
|
* @since v1.0.0 2019-05-08 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class VaccinationAuthRedis { |
||||
|
|
||||
|
@Autowired |
||||
|
private RedisUtils redisUtils; |
||||
|
|
||||
|
/** |
||||
|
* 疫苗接种权限 |
||||
|
* |
||||
|
* @param userId |
||||
|
* @param auth |
||||
|
* @return void |
||||
|
* @author zhy |
||||
|
* @date 2021/6/3 17:19 |
||||
|
*/ |
||||
|
public void setVaccinationAuth(String userId, Object auth) { |
||||
|
String key = RedisKeys.getVaccinationAuthKey(userId); |
||||
|
redisUtils.set(key, auth, RedisUtils.MINUTE_THIRTY_EXPIRE); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 疫苗接种权限 |
||||
|
* |
||||
|
* @param userId |
||||
|
* @param param |
||||
|
* @return void |
||||
|
* @author zhy |
||||
|
* @date 2021/6/3 17:19 |
||||
|
*/ |
||||
|
public void setVaccinationAuthParam(String userId, Object param) { |
||||
|
String key = RedisKeys.getVaccinationAuthParamKey(userId); |
||||
|
redisUtils.set(key, param, RedisUtils.MINUTE_THIRTY_EXPIRE); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue