Skip to content

Commit

Permalink
feat: 리턴 타입 capacityType 추가 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
ympark99 committed Oct 7, 2023
1 parent 6e26aac commit c4e7d88
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.time.LocalDateTime;

import com.onna.onnaback.domain.apply.domain.AcceptStatus;
import com.onna.onnaback.domain.spark.domain.CapacityType;
import com.onna.onnaback.domain.spark.domain.DurationHour;

import lombok.AllArgsConstructor;
Expand All @@ -24,6 +25,8 @@ public class ApplyDto {

private Long capacity;

private CapacityType capacityType;

private Long price;

private String img;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public List<ApplyDto> getList(Member applicant) {
memberSparkMapping.getApplySpark().getDurationHour(),
memberSparkMapping.getApplySpark().getMemberCount(),
memberSparkMapping.getApplySpark().getCapacity(),
memberSparkMapping.getApplySpark().getCapacityType(),
memberSparkMapping.getApplySpark().getPrice(),
memberSparkMapping.getApplySpark().getImg(),
memberSparkMapping.getApplySpark().getTitle(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.time.LocalDateTime;

import com.onna.onnaback.domain.spark.domain.CapacityType;
import com.onna.onnaback.domain.spark.domain.DurationHour;
import com.onna.onnaback.domain.spark.domain.RecruitType;
import com.onna.onnaback.domain.spark.domain.SparkType;
Expand Down Expand Up @@ -31,6 +32,8 @@ public class SparkListDto {

Long capacity;

CapacityType capacityType;

Long memberCount;

RecruitType recruitType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.time.LocalDateTime;
import java.util.List;

import com.onna.onnaback.domain.spark.domain.CapacityType;
import com.onna.onnaback.domain.spark.domain.DurationHour;
import com.onna.onnaback.domain.spark.domain.RecruitType;
import com.onna.onnaback.domain.spark.domain.SparkType;
Expand Down Expand Up @@ -32,6 +33,8 @@ public class SparkResponse {

Long capacity;

CapacityType capacityType;

Long memberCount;

RecruitType recruitType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public List<SparkListDto> getList(Pageable pageable, SparkType sparkType,
spark.getSparkDate(),
spark.getDurationHour(),
spark.getCapacity(),
spark.getCapacityType(),
spark.getMemberCount(),
spark.getRecruitType(),
spark.getPlace().getImg(),
Expand Down Expand Up @@ -191,6 +192,7 @@ public SparkResponse getSparkInfo(Long id) {
.price(spark.getPrice())
.durationHour(spark.getDurationHour())
.capacity(spark.getCapacity())
.capacityType(spark.getCapacityType())
.hostName(spark.getHost().getName())
.hostImg(spark.getHost().getProfileImg())
.hostDetail(spark.getHostDetail())
Expand Down

0 comments on commit c4e7d88

Please sign in to comment.