-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Feature/#24 2차 MVP 인터페이스 설계
- Loading branch information
Showing
13 changed files
with
703 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/main/java/com/server/bbo_gak/domain/card/entity/CardMemo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.server.bbo_gak.domain.card.entity; | ||
|
||
import com.server.bbo_gak.global.common.BaseEntity; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.FetchType; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.JoinColumn; | ||
import jakarta.persistence.ManyToOne; | ||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@Entity | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class CardMemo extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "card_memo_id") | ||
private Long id; | ||
|
||
private String content; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "card_id") | ||
private Card card; | ||
|
||
public CardMemo(String content, Card card) { | ||
this.content = content; | ||
this.card = card; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/java/com/server/bbo_gak/domain/card/entity/CopyInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.server.bbo_gak.domain.card.entity; | ||
|
||
import com.server.bbo_gak.global.common.BaseEntity; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@Entity | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class CopyInfo extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "copy_info_id") | ||
private Long id; | ||
|
||
private Long parentCardId; | ||
|
||
public CopyInfo(Long parentCardId) { | ||
this.parentCardId = parentCardId; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/server/bbo_gak/domain/card/service/CardMemoService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.server.bbo_gak.domain.card.service; | ||
|
||
import com.server.bbo_gak.domain.user.entity.User; | ||
|
||
public interface CardMemoService { | ||
|
||
void createCardMemo(); | ||
|
||
void updateCardMemo(); | ||
|
||
void deleteCardMemo(); | ||
|
||
void getCardMemoList(User user, Long cardId); | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
src/main/java/com/server/bbo_gak/domain/recruit/entity/Recruit.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.server.bbo_gak.domain.recruit.entity; | ||
|
||
import com.server.bbo_gak.domain.card.entity.Card; | ||
import com.server.bbo_gak.global.common.BaseEntity; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.EnumType; | ||
import jakarta.persistence.Enumerated; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.OneToMany; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@Entity | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class Recruit extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "recruit_id") | ||
private Long id; | ||
|
||
private String title; | ||
|
||
private String season; | ||
|
||
private String siteUrl; | ||
|
||
@Enumerated(EnumType.STRING) | ||
private RecruitStatus recruitStatus; | ||
|
||
@OneToMany(mappedBy = "recruit") | ||
private List<Card> cardList = new ArrayList<>(); | ||
|
||
} |
36 changes: 36 additions & 0 deletions
36
src/main/java/com/server/bbo_gak/domain/recruit/entity/RecruitSchedule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.server.bbo_gak.domain.recruit.entity; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.EnumType; | ||
import jakarta.persistence.Enumerated; | ||
import jakarta.persistence.FetchType; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.JoinColumn; | ||
import jakarta.persistence.ManyToOne; | ||
import java.time.LocalDate; | ||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@Entity | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class RecruitSchedule { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "recruit_schedule_id") | ||
private Long id; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "recruit_id") | ||
private Recruit recruit; | ||
|
||
@Enumerated(EnumType.STRING) | ||
private RecruitStage recruitStage; | ||
|
||
private LocalDate deadLine; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/server/bbo_gak/domain/recruit/entity/RecruitStage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.server.bbo_gak.domain.recruit.entity; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum RecruitStage { | ||
|
||
FIRST_INTERVIEW("1차 면접"), | ||
SECOND_INTERVIEW("2차 면접"), | ||
THIRD_INTERVIEW("3차 면접"), | ||
FINAL_INTERVIEW("최종 면접"); | ||
|
||
private final String Value; | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/com/server/bbo_gak/domain/recruit/entity/RecruitStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.server.bbo_gak.domain.recruit.entity; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum RecruitStatus { | ||
|
||
PREPARATION_IN_PROGRESS("지원 준비 중"), | ||
APPLICATION_COMPLETED("지원 완료"), | ||
DOCUMENT_PASSED("서류 통과"), | ||
INTERVIEW_PASSED("면접 통과"), | ||
FINAL_ACCEPTANCE("최종 합격"), | ||
REJECTED("불합격"); | ||
|
||
|
||
private final String value; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/server/bbo_gak/domain/recruit/service/RecruitScheduleService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.server.bbo_gak.domain.recruit.service; | ||
|
||
public interface RecruitScheduleService { | ||
|
||
void createRecruitSchedule(); | ||
|
||
void getRecruitScheduleList(); | ||
|
||
void updateRecruitSchedule(); | ||
|
||
void deleteRecruitSchedule(); | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/com/server/bbo_gak/domain/recruit/service/RecruitService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.server.bbo_gak.domain.recruit.service; | ||
|
||
import com.server.bbo_gak.domain.card.entity.CardType; | ||
import com.server.bbo_gak.domain.user.entity.User; | ||
|
||
public interface RecruitService { | ||
|
||
void getTotalRecruitList(); //생성순 정렬 | ||
|
||
void getProgressRecruitList(); | ||
|
||
void createRecruit(); | ||
|
||
void deleteRecruit(); | ||
|
||
void updateRecruit(); | ||
|
||
void getRecruitDetail(); | ||
|
||
void getCardListInRecruit(User user, Long recruitId, CardType type); | ||
|
||
void getCardTypeCountsInRecruit(User user, Long recruitId); | ||
|
||
void copyMyInfoCardToRecruit(User user, Long CardId, Long recruitId); | ||
} |
Oops, something went wrong.