| | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import com.yeshi.fanli.entity.config.SystemConfigKeyEnum; |
| | | import com.yeshi.fanli.service.inter.config.SystemConfigService; |
| | | import com.yeshi.fanli.util.*; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.core.task.TaskExecutor; |
| | |
| | | |
| | | @Resource |
| | | private RedisManager redisManager; |
| | | |
| | | @Resource |
| | | private SystemConfigService systemConfigService; |
| | | |
| | | |
| | | public UserInfo getUserByLoginTypeAndOpenId(int loginType, String openid, SystemEnum sysetm) { |
| | |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public String getDefaultNickName(SystemEnum system, Long uid) { |
| | | return systemConfigService.getValueCache(SystemConfigKeyEnum.defaultNickNamePrefix, system) + uid; |
| | | } |
| | | |
| | | @Override |
| | | public String getDefaultNickName(Long uid) { |
| | | SystemEnum system = getUserSystem(uid); |
| | | return getDefaultNickName(system, uid); |
| | | } |
| | | |
| | | @Override |
| | | public String getDefaultPortrait(SystemEnum system) { |
| | | return systemConfigService.getValueCache(SystemConfigKeyEnum.defaultPortrait, system); |
| | | } |
| | | |
| | | @Override |
| | | public String getDefaultPortrait(Long uid) { |
| | | SystemEnum system = getUserSystem(uid); |
| | | return getDefaultPortrait(system); |
| | | } |
| | | |
| | | |
| | | } |