|
|
@ -17,8 +17,8 @@ import net.lensfrex.dscape.dao.entity.UserBasic; |
|
|
|
import net.lensfrex.dscape.dao.service.BlackListService; |
|
|
|
import net.lensfrex.dscape.dao.service.BlackListService; |
|
|
|
import net.lensfrex.dscape.dao.service.UserBasicService; |
|
|
|
import net.lensfrex.dscape.dao.service.UserBasicService; |
|
|
|
import net.lensfrex.dscape.dto.request.user.UserAddRequest; |
|
|
|
import net.lensfrex.dscape.dto.request.user.UserAddRequest; |
|
|
|
import net.lensfrex.dscape.dto.response.general.ResponseCode; |
|
|
|
|
|
|
|
import net.lensfrex.dscape.dto.response.data.user.RegisterResponseBody; |
|
|
|
import net.lensfrex.dscape.dto.response.data.user.RegisterResponseBody; |
|
|
|
|
|
|
|
import net.lensfrex.dscape.dto.response.general.ResponseCode; |
|
|
|
import net.lensfrex.dscape.enums.user.BlackListTypeEnum; |
|
|
|
import net.lensfrex.dscape.enums.user.BlackListTypeEnum; |
|
|
|
import net.lensfrex.dscape.enums.user.UserRoleEnum; |
|
|
|
import net.lensfrex.dscape.enums.user.UserRoleEnum; |
|
|
|
import net.lensfrex.dscape.exception.GlobalException; |
|
|
|
import net.lensfrex.dscape.exception.GlobalException; |
|
|
@ -97,7 +97,7 @@ public class AdminService { |
|
|
|
String uid = userService.addUserToDatabase(requestBody.getUserName(), requestBody.getPassword(), |
|
|
|
String uid = userService.addUserToDatabase(requestBody.getUserName(), requestBody.getPassword(), |
|
|
|
StpUtil.getLoginIdAsString(), UserRoleEnum.getTypeEnumByCode(requestBody.getRole()), registerIp); |
|
|
|
StpUtil.getLoginIdAsString(), UserRoleEnum.getTypeEnumByCode(requestBody.getRole()), registerIp); |
|
|
|
|
|
|
|
|
|
|
|
RegisterResponseBody registerResponseBody = new RegisterResponseBody (); |
|
|
|
RegisterResponseBody registerResponseBody = new RegisterResponseBody(); |
|
|
|
registerResponseBody.setUid(uid); |
|
|
|
registerResponseBody.setUid(uid); |
|
|
|
|
|
|
|
|
|
|
|
return registerResponseBody; |
|
|
|
return registerResponseBody; |
|
|
|