Skip to content

Commit

Permalink
[feat] Course 썸네일 필드 추가 - #42
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarlgnszx committed Jul 11, 2024
1 parent 82a61a9 commit f289593
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;
import org.dateroad.user.domain.User;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

@Entity
Expand Down Expand Up @@ -43,11 +45,16 @@ public class Course extends DateBase {
@NotNull
private float time;

public static Course create(final String title, final String description,
@Setter
@Column(name = "thumbnail")
private String thumbnail;

public static Course create(final User user, final String title, final String description,
final String country, final String city,
final int cost, final LocalDate date,
final LocalTime startAt, final float time) {
return Course.builder()
.user(user)
.title(title)
.description(description)
.city(city)
Expand Down

0 comments on commit f289593

Please sign in to comment.