Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

선호도 조사 관련 기능 구현 #6

Merged
merged 44 commits into from
Dec 22, 2022
Merged
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
fdf5f97
Feat: Rating 엔티티에 Builder 생성자 추가
mingeun0507 Dec 19, 2022
01ff3c7
Feat: 영화 평가 요청을 보내는 DTO 추가
mingeun0507 Dec 19, 2022
2cecbe2
Feat: 영화 평가 요청에 응답하는 DTO 추가
mingeun0507 Dec 19, 2022
657af0f
Feat: MovieId에서 영화를 찾을 수 없는 경우를 처리하는 Exception 추가
mingeun0507 Dec 19, 2022
0a8d691
Feat: 평가 요청을 처리하는 Service 추가 및 영화 평가 요청을 처리하는 메소드 추가
mingeun0507 Dec 19, 2022
f2d2578
Style: 개행 추가
mingeun0507 Dec 19, 2022
73aa151
Feat: 평가 요청을 처리하는 Controller 및 영화 평가 요청에 응답하는 API 추가
mingeun0507 Dec 19, 2022
a9702d4
Fix: 컬럼명 오류 수정
mingeun0507 Dec 19, 2022
a6c79d2
Fix: Builder 생성자 오류 수정
mingeun0507 Dec 20, 2022
912b48d
Feat: Preference 엔티티 추가
mingeun0507 Dec 20, 2022
87c63a9
Feat: Preference 엔티티와의 양방향 연관관계 컬럼 추가
mingeun0507 Dec 20, 2022
ae97745
Feat: Preference Repository 추가
mingeun0507 Dec 20, 2022
638023d
Fix: @Transactional 어노테이션 추가
mingeun0507 Dec 20, 2022
12e8fd4
Fix: 영화인이 찾아지지 않을 경우를 처리하는 Exception 추가
mingeun0507 Dec 20, 2022
dfe6944
Feat: 영화인 선호를 처리하는 Service 및 메소드 추가
mingeun0507 Dec 20, 2022
7201c70
Fix: Repository에 save 하는 로직 추가
mingeun0507 Dec 20, 2022
c919514
Fix: Repository에 save 하는 로직 추가
mingeun0507 Dec 20, 2022
9d55817
Fix: private 추가
mingeun0507 Dec 20, 2022
478b61a
Feat: 영화인 선호도 조사에 응답하는 DTO 추가
mingeun0507 Dec 20, 2022
d5205e3
Fix: Filmmaker가 아닌 다른 것에서 from 해올수 있게 수정
mingeun0507 Dec 20, 2022
6ea19dc
Feat: 영화인 선호 과정을 처리할 Controller 추가
mingeun0507 Dec 20, 2022
24afd18
Feat: Rating의 PK로 Rating을 찾지 못했을 경우를 처리하는 Exception 추가
mingeun0507 Dec 21, 2022
53616fe
Feat: userId와 movieId로 Rating을 찾는 메소드 추가
mingeun0507 Dec 21, 2022
56fb8ea
Feat: Rating에 대한 Setter 추가
mingeun0507 Dec 21, 2022
d3d143e
Fix: PK에 nullable = false 제거, Builder에서 PK 제거
mingeun0507 Dec 21, 2022
6bec7b6
Fix: Builder 생성자 추가
mingeun0507 Dec 21, 2022
a0d23f8
Fix: PK에 nullable = false 제거
mingeun0507 Dec 21, 2022
c26a01e
Fix: PK에 nullable = false 제거
mingeun0507 Dec 21, 2022
bd576a7
Fix: Builder 생성자 추가
mingeun0507 Dec 21, 2022
f979bdb
Feat: 값이 범위를 넘어간 경우를 처리하는 Exception 추가
mingeun0507 Dec 21, 2022
89e6c26
Feat: Table명 수정
mingeun0507 Dec 21, 2022
7038ce5
Feat: 영화 평가 기능에서 사용하는 메소드 구현
mingeun0507 Dec 21, 2022
c3c4368
Feat: 선호 정보를 입력하는 메소드 구현
mingeun0507 Dec 21, 2022
48a05ea
Fix: updateExistingRating에서 불필요 인자 제거
mingeun0507 Dec 21, 2022
2bd1aa8
Fix: 내부 메소드 접근 지정자 변경
mingeun0507 Dec 21, 2022
662fe65
Fix: 내부 메소드 접근 지정자 재수정
mingeun0507 Dec 21, 2022
286847d
Feat: Preference의 PK로 Preference를 찾을 수 없을 경우를 처리하는 Exception 추가
mingeun0507 Dec 21, 2022
ba70427
Feat: userId와 filmmakerId를 통해 레코드가 존재하는지 여부를 return하는 메소드 생성
mingeun0507 Dec 22, 2022
0ceaefc
Feat: 선호 여부가 이미 존재할 때 발생하는 Exception 추가
mingeun0507 Dec 22, 2022
61a7d2b
Feat: 영화인 선호 여부 등록 및 삭제 기능을 위한 메소드 구현
mingeun0507 Dec 22, 2022
e83424f
Feat: 영화인 삭제 API 구현
mingeun0507 Dec 22, 2022
3840554
Refactor: 함수명 알맞게 수정
mingeun0507 Dec 22, 2022
3bb09b7
Feat: 영화 선호 정보 삭제 기능을 처리하는 메소드 구현
mingeun0507 Dec 22, 2022
89ed0b9
Feat: 영화 선호 정보 삭제 기능 API 구현
mingeun0507 Dec 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Feat: 영화인 선호도 조사에 응답하는 DTO 추가
  • Loading branch information
mingeun0507 committed Dec 20, 2022
commit 478b61afbf94cd9fbadfdb65de31383c7ddf77bc
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package com.grilledsausage.molva.api.dto.preference;


import com.grilledsausage.molva.api.entity.filmmaker.Filmmaker;
import lombok.Builder;
import lombok.Data;

@Data
public class FilmmakerPreferenceResponseDto {

private Long id;

private Long code;

private String name;

private String type;

private String image;

private Boolean isInSurvey;

@Builder
public FilmmakerPreferenceResponseDto(Long id, Long code, String name, String type, String image, Boolean isInSurvey) {
this.id = id;
this.code = code;
this.name = name;
this.type = type;
this.image = image;
this.isInSurvey = isInSurvey;
}

public static FilmmakerPreferenceResponseDto from(Filmmaker filmmaker) {
return FilmmakerPreferenceResponseDto
.builder()
.id(filmmaker.getId())
.code(filmmaker.getCode())
.name(filmmaker.getName())
.type(filmmaker.getType())
.image(filmmaker.getImage())
.isInSurvey(filmmaker.getIsInSurvey())
.build();
}

}