Skip to content

Commit

Permalink
fix: 프로그램 타입 추가 #138
Browse files Browse the repository at this point in the history
  • Loading branch information
moonjin-kim committed Apr 2, 2024
1 parent 6a6ad27 commit 4f2e441
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,10 @@
import java.time.LocalDate;

@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class BannerRequestDto {
private String title;
private LocalDate startAt;
private LocalDate endAt;
private MultipartFile image;

public BannerRequestDto(String title, LocalDate startAt, LocalDate endAt, MultipartFile image) {
this.title = title;
this.startAt = startAt;
this.endAt = endAt;
this.image = image;
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.sideProject.PlanIT.domain.program.dto.response;

import com.sideProject.PlanIT.domain.product.entity.Product;
import com.sideProject.PlanIT.domain.product.entity.enums.ProductType;
import com.sideProject.PlanIT.domain.program.entity.enums.ProgramStatus;
import com.sideProject.PlanIT.domain.program.entity.Program;
import com.sideProject.PlanIT.domain.user.dto.member.response.EmployeeSemiResponseDto;
Expand All @@ -16,6 +17,7 @@
public class ProgramResponse {
long id;
String productName;
ProductType type;
int remainedNumber;
String startAt;
String endAt;
Expand Down Expand Up @@ -43,6 +45,7 @@ public ProgramResponse(
this.endAt = endAt;
this.status = status;
this.productName = product.getName();
this.type = product.getType();
this.member = MemberSemiResponseDto.of(member);
this.employee = EmployeeSemiResponseDto.of(employee);
this.suspendAt = suspendAt;
Expand Down

0 comments on commit 4f2e441

Please sign in to comment.