Skip to content

Commit

Permalink
#5 Apply 생성 기능 성공
Browse files Browse the repository at this point in the history
issue : member_id header로 가져오기
  • Loading branch information
sycuuui committed Jan 19, 2024
1 parent c0b184f commit c8cd115
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,24 @@

import com.gongjakso.server.domain.apply.entity.Apply;
import com.gongjakso.server.domain.apply.enumerate.PostType;
import com.gongjakso.server.domain.member.entity.Member;

public record AddApplyReq(
Member memberId,
String application,
String recruit_part,
PostType type
PostType type,
Boolean is_pass,
Boolean is_open
) {
public Apply toEntity(){
return Apply.builder()
.member(memberId)
.application(application)
.recruit_part(recruit_part)
.type(type)
.is_pass(false)
.is_open(false)
.build();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.gongjakso.server.domain.apply.dto;

public record ApplyRes() {
}

0 comments on commit c8cd115

Please sign in to comment.