diff --git a/src/main/java/com/gongjakso/server/domain/apply/dto/AddApplyReq.java b/src/main/java/com/gongjakso/server/domain/apply/dto/AddApplyReq.java index 7a9b8321..d0c3f52e 100644 --- a/src/main/java/com/gongjakso/server/domain/apply/dto/AddApplyReq.java +++ b/src/main/java/com/gongjakso/server/domain/apply/dto/AddApplyReq.java @@ -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(); } } diff --git a/src/main/java/com/gongjakso/server/domain/apply/dto/ApplyRes.java b/src/main/java/com/gongjakso/server/domain/apply/dto/ApplyRes.java new file mode 100644 index 00000000..89a26b4e --- /dev/null +++ b/src/main/java/com/gongjakso/server/domain/apply/dto/ApplyRes.java @@ -0,0 +1,4 @@ +package com.gongjakso.server.domain.apply.dto; + +public record ApplyRes() { +}