This commit is contained in:
parent
0d6448bfbf
commit
a2d57166fc
@ -50,8 +50,8 @@ public class MainController {
|
||||
@Member
|
||||
@ParameterCheck
|
||||
@PostMapping("/inserEvent")
|
||||
public ApiResponse<String> inserEvent(@ReqMap MapDto map) {
|
||||
return mainService.inserEvent(map);
|
||||
public ApiResponse<String> insertEvent(@ReqMap MapDto map) {
|
||||
return mainService.insertEvent(map);
|
||||
}
|
||||
|
||||
@Admin
|
||||
|
||||
@ -72,15 +72,13 @@ public class MainService {
|
||||
if(localevntService.selectCheckEvent(map) > 0) {
|
||||
localevntService.deleteEvent(map);
|
||||
return ApiResponse.okMessage("이벤트 삭제");
|
||||
//return ApiResponse.error(HttpStatus.CONFLICT, "이미 동일한 이벤트가 존재합니다");
|
||||
|
||||
} else {
|
||||
// localevntService.insertEvent(map);
|
||||
// return ApiResponse.okMessage("이벤트 추가");
|
||||
return ApiResponse.error(HttpStatus.CONFLICT, "해당 이벤트가 존재하지 않습니다");
|
||||
}
|
||||
}
|
||||
|
||||
public ApiResponse<String> inserEvent(MapDto map) {
|
||||
public ApiResponse<String> insertEvent(MapDto map) {
|
||||
if(localevntService.selectCheckEvent(map) > 0) {
|
||||
return ApiResponse.error(HttpStatus.CONFLICT, "이미 동일한 이벤트가 존재합니다");
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user