|
|
|
@ -30,6 +30,7 @@ import com.palnet.biz.api.comn.response.BasicResponse;
|
|
|
|
|
import com.palnet.biz.api.comn.response.ErrorResponse; |
|
|
|
|
import com.palnet.biz.api.comn.response.SuccessResponse; |
|
|
|
|
import com.palnet.comn.code.RSErrorCode; |
|
|
|
|
import com.palnet.comn.exception.CustomException; |
|
|
|
|
import com.palnet.comn.utils.JsonUtils; |
|
|
|
|
|
|
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
@ -95,11 +96,14 @@ public class BasGroupUserController {
|
|
|
|
|
try { |
|
|
|
|
boolean result = service.delegate(rq); |
|
|
|
|
resultMap.put("result", result); |
|
|
|
|
} catch (CustomException e) { |
|
|
|
|
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR) |
|
|
|
|
.body(new ErrorResponse(e.getMessage(), e.getErrorCode())); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("IGNORE : {}", e); |
|
|
|
|
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR) |
|
|
|
|
.body(new ErrorResponse("Server Error", "-1")); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return ResponseEntity.ok().body(new SuccessResponse<Map>(resultMap)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|