mirror of
https://github.com/hwanny1128/HGZero.git
synced 2025-12-06 10:16:24 +00:00
fix: meeting error
This commit is contained in:
parent
577889f53d
commit
dc53662874
@ -36,6 +36,12 @@ public enum ErrorCode {
|
|||||||
OPERATION_NOT_ALLOWED(HttpStatus.BAD_REQUEST, "B004", "허용되지 않은 작업입니다."),
|
OPERATION_NOT_ALLOWED(HttpStatus.BAD_REQUEST, "B004", "허용되지 않은 작업입니다."),
|
||||||
BUSINESS_RULE_VIOLATION(HttpStatus.BAD_REQUEST, "B005", "비즈니스 규칙 위반입니다."),
|
BUSINESS_RULE_VIOLATION(HttpStatus.BAD_REQUEST, "B005", "비즈니스 규칙 위반입니다."),
|
||||||
|
|
||||||
|
// 회의 관련 에러
|
||||||
|
MEETING_TIME_CONFLICT(HttpStatus.CONFLICT, "M001", "해당 시간대에 이미 예약된 회의가 있습니다."),
|
||||||
|
INVALID_MEETING_TIME(HttpStatus.BAD_REQUEST, "M002", "회의 시작 시간이 종료 시간보다 늦습니다."),
|
||||||
|
MEETING_NOT_FOUND(HttpStatus.NOT_FOUND, "M003", "회의를 찾을 수 없습니다."),
|
||||||
|
INVALID_MEETING_STATUS(HttpStatus.BAD_REQUEST, "M004", "유효하지 않은 회의 상태입니다."),
|
||||||
|
|
||||||
// 외부 시스템 에러 (4xxx)
|
// 외부 시스템 에러 (4xxx)
|
||||||
EXTERNAL_API_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "E001", "외부 API 호출 중 오류가 발생했습니다."),
|
EXTERNAL_API_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "E001", "외부 API 호출 중 오류가 발생했습니다."),
|
||||||
DATABASE_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "E002", "데이터베이스 오류가 발생했습니다."),
|
DATABASE_ERROR(HttpStatus.INTERNAL_SERVER_ERROR, "E002", "데이터베이스 오류가 발생했습니다."),
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -38,11 +38,6 @@ public class Meeting {
|
|||||||
*/
|
*/
|
||||||
private String purpose;
|
private String purpose;
|
||||||
|
|
||||||
/**
|
|
||||||
* 회의 장소
|
|
||||||
*/
|
|
||||||
private String location;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 회의 일시
|
* 회의 일시
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -74,11 +74,10 @@ public class MeetingService implements
|
|||||||
.meetingId(meetingId)
|
.meetingId(meetingId)
|
||||||
.title(command.title())
|
.title(command.title())
|
||||||
.purpose(command.purpose())
|
.purpose(command.purpose())
|
||||||
.description(command.description())
|
.description(command.agenda())
|
||||||
.location(command.location())
|
.location(command.location())
|
||||||
.scheduledAt(command.scheduledAt())
|
.scheduledAt(command.scheduledAt())
|
||||||
.endTime(command.endTime())
|
.endTime(command.endTime())
|
||||||
.location(command.location())
|
|
||||||
.status("SCHEDULED")
|
.status("SCHEDULED")
|
||||||
.organizerId(command.organizerId())
|
.organizerId(command.organizerId())
|
||||||
.participants(command.participants())
|
.participants(command.participants())
|
||||||
|
|||||||
@ -20,7 +20,8 @@ public interface CreateMeetingUseCase {
|
|||||||
*/
|
*/
|
||||||
record CreateMeetingCommand(
|
record CreateMeetingCommand(
|
||||||
String title,
|
String title,
|
||||||
String description,
|
String purpose,
|
||||||
|
String agenda,
|
||||||
LocalDateTime scheduledAt,
|
LocalDateTime scheduledAt,
|
||||||
LocalDateTime endTime,
|
LocalDateTime endTime,
|
||||||
String location,
|
String location,
|
||||||
|
|||||||
@ -71,7 +71,6 @@ public class MeetingController {
|
|||||||
request.getStartTime(),
|
request.getStartTime(),
|
||||||
request.getEndTime(),
|
request.getEndTime(),
|
||||||
request.getLocation(),
|
request.getLocation(),
|
||||||
request.getLocation(),
|
|
||||||
userId,
|
userId,
|
||||||
request.getParticipants(),
|
request.getParticipants(),
|
||||||
null // 템플릿 ID는 나중에 적용
|
null // 템플릿 ID는 나중에 적용
|
||||||
|
|||||||
@ -31,6 +31,9 @@ public class MeetingEntity extends BaseTimeEntity {
|
|||||||
@Column(name = "title", length = 200, nullable = false)
|
@Column(name = "title", length = 200, nullable = false)
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
|
@Column(name = "purpose", length = 500)
|
||||||
|
private String purpose;
|
||||||
|
|
||||||
@Column(name = "description", columnDefinition = "TEXT")
|
@Column(name = "description", columnDefinition = "TEXT")
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
@ -66,6 +69,7 @@ public class MeetingEntity extends BaseTimeEntity {
|
|||||||
return Meeting.builder()
|
return Meeting.builder()
|
||||||
.meetingId(this.meetingId)
|
.meetingId(this.meetingId)
|
||||||
.title(this.title)
|
.title(this.title)
|
||||||
|
.purpose(this.purpose)
|
||||||
.description(this.description)
|
.description(this.description)
|
||||||
.scheduledAt(this.scheduledAt)
|
.scheduledAt(this.scheduledAt)
|
||||||
.endTime(this.endTime)
|
.endTime(this.endTime)
|
||||||
@ -83,6 +87,7 @@ public class MeetingEntity extends BaseTimeEntity {
|
|||||||
return MeetingEntity.builder()
|
return MeetingEntity.builder()
|
||||||
.meetingId(meeting.getMeetingId())
|
.meetingId(meeting.getMeetingId())
|
||||||
.title(meeting.getTitle())
|
.title(meeting.getTitle())
|
||||||
|
.purpose(meeting.getPurpose())
|
||||||
.description(meeting.getDescription())
|
.description(meeting.getDescription())
|
||||||
.scheduledAt(meeting.getScheduledAt())
|
.scheduledAt(meeting.getScheduledAt())
|
||||||
.endTime(meeting.getEndTime())
|
.endTime(meeting.getEndTime())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user