Skip to content

Commit

Permalink
#97 fix : recruit_role 필드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
sycuuui committed Apr 7, 2024
1 parent 660bd8b commit 6113af4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public record ApplicationRes(
String application,
String recruit_part,
List<String> category,
String recruit_role,
@JsonInclude(JsonInclude.Include.NON_NULL)
List<String> postStack,
@Null
Expand All @@ -25,6 +24,6 @@ public record ApplicationRes(

) {
public static ApplicationRes of(Apply apply, List<String> category,List<String> stackName){
return new ApplicationRes(apply.getApplyType(),apply.getMember().getMajor(),apply.getApplication(), apply.getRecruit_part(), category, apply.getRecruit_role(), stackName,apply.getStackTypeList());
return new ApplicationRes(apply.getApplyType(),apply.getMember().getMajor(),apply.getApplication(), apply.getRecruit_part(), category, stackName,apply.getStackTypeList());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
public record ApplyReq(
String application,
String recruit_part,
String recruit_role,
String type,
String applyType,
@Null
Expand All @@ -32,7 +31,6 @@ public Apply toEntity(Member member, Post post){
.post(post)
.application(application)
.recruit_part(recruit_part)
.recruit_role(recruit_role)
.type(PostType.valueOf(type))
.applyType(ApplyType.NONE)
.build();
Expand All @@ -52,7 +50,6 @@ public Apply toEntity(Member member, Post post){
.post(post)
.application(application)
.recruit_part(recruit_part)
.recruit_role(recruit_role)
.type(PostType.valueOf(type))
.applyType(ApplyType.NONE)
.stackTypeList(stackTypeList)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ public class Apply extends BaseTimeEntity {
@Column(name = "recruit_part",nullable = false,columnDefinition = "varchar(50)")
private String recruit_part;

@Column(name = "recruit_role",columnDefinition = "varchar(50)")
private String recruit_role;

@Enumerated(EnumType.STRING)
private PostType type;

Expand All @@ -51,26 +48,24 @@ public class Apply extends BaseTimeEntity {
private List<StackType> stackTypeList = new ArrayList<>();

@Builder
public Apply(Long applyId, Member member,Post post,List<StackType> stackTypeList, String application,String recruit_part,String recruit_role,PostType type, ApplyType applyType){
public Apply(Long applyId, Member member,Post post,List<StackType> stackTypeList, String application,String recruit_part,PostType type, ApplyType applyType){
this.applyId=applyId;
this.member=member;
this.post=post;
this.stackTypeList=stackTypeList;
this.application=application;
this.recruit_part=recruit_part;
this.recruit_role=recruit_role;
this.type=type;
this.applyType=applyType;
}

@Builder
public Apply(Long applyId, Member member,Post post,String application,String recruit_part,String recruit_role,PostType type, ApplyType applyType){
public Apply(Long applyId, Member member,Post post,String application,String recruit_part,PostType type, ApplyType applyType){
this.applyId=applyId;
this.member=member;
this.post=post;
this.application=application;
this.recruit_part=recruit_part;
this.recruit_role=recruit_role;
this.type=type;
this.applyType=applyType;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

public enum StackType {
REACT,TYPESCRIPT,JAVASCRIPT,NEXTJS,NODEJS,JAVA,SPRING,
KOTLIN,SWIFT,FLUTTER,ACC
KOTLIN,SWIFT,FLUTTER,ETC
}

0 comments on commit 6113af4

Please sign in to comment.