| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.vincent.rsf.framework.common.Cools; |
| | | import com.vincent.rsf.framework.exception.CoolException; |
| | | import com.vincent.rsf.server.common.domain.BusinessRes; |
| | | import com.vincent.rsf.server.common.exception.BusinessException; |
| | | import com.vincent.rsf.server.common.service.EmailService; |
| | | import com.vincent.rsf.server.system.controller.param.TenantInitParam; |
| | | import com.vincent.rsf.server.system.entity.*; |
| | |
| | | } |
| | | |
| | | if (null != userService.getByUsername(param.getUsername(), null)) { |
| | | throw new CoolException("the username already exist"); |
| | | throw new BusinessException(BusinessRes.USERNAME_EXIST); |
| | | } |
| | | if (!Cools.isEmpty(param.getEmail())) { |
| | | if (!emailService.isValid(param.getEmail())) { |