Skip to content

Commit

Permalink
Merge pull request #199 from chjcode/fix/conflict
Browse files Browse the repository at this point in the history
fix(conflict) : merge과정에서 있었던 conflict 해결
  • Loading branch information
chjcode authored Oct 6, 2024
2 parents 55c7ff8 + fa062bd commit 9609148
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import chzzk.grassdiary.domain.member.dto.GrassInfoDTO;
import chzzk.grassdiary.domain.member.entity.Member;
import chzzk.grassdiary.domain.member.entity.MemberDAO;
import chzzk.grassdiary.domain.color.ColorCode;
import chzzk.grassdiary.domain.color.entity.ColorCode;
import chzzk.grassdiary.global.common.error.exception.SystemException;
import chzzk.grassdiary.global.common.response.ClientErrorCode;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void withdrawMember() {
this.email = "withdrawnMember";
this.profileIntro = null;
this.picture = null;

}
public void deductRewardPoints(int points) {
if (this.rewardPoint < points) {
throw new SystemException(ClientErrorCode.INSUFFICIENT_REWARD_POINTS_ERR);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package chzzk.grassdiary.domain.member.entity;

import chzzk.grassdiary.domain.base.BaseCreatedTimeEntity;
import chzzk.grassdiary.domain.color.ColorCode;
import chzzk.grassdiary.domain.color.entity.ColorCode;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package chzzk.grassdiary.domain.member.entity;

import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;

public interface MemberPurchasedColorDAO extends JpaRepository<MemberPurchasedColor, Long> {
boolean existsByColorCodeIdAndMemberId(Long memberId, Long colorCodeId);
List<MemberPurchasedColor> findAllByMemberId(Long memberId);
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package chzzk.grassdiary.domain.member.service;

import chzzk.grassdiary.domain.color.ColorCode;
import chzzk.grassdiary.domain.color.ColorCodeDAO;
import chzzk.grassdiary.domain.color.entity.ColorCode;
import chzzk.grassdiary.domain.color.entity.ColorCodeDAO;
import chzzk.grassdiary.domain.member.dto.MemberPurchasedColorResponseDTO;
import chzzk.grassdiary.domain.member.entity.Member;
import chzzk.grassdiary.domain.member.entity.MemberDAO;
Expand Down Expand Up @@ -34,7 +34,7 @@ public MemberPurchasedColorResponseDTO purchaseColor(Long colorCodeId, Long logI
saveRewardHistory(member, colorCode);
MemberPurchasedColor memberPurchasedColor = registerPurchase(member, colorCode);

return new MemberPurchasedColorResponseDTO(memberPurchasedColor);
return MemberPurchasedColorResponseDTO.from(memberPurchasedColor);
}

private Member getMemberById(Long id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public enum ClientErrorCode implements ErrorCodeModel {
COLOR_CODE_NOT_FOUND_ERR(404, "COLOR_CODE_NOT_FOUND_ERR", "존재하지 않는 색상입니다."),
COLOR_ALREADY_PURCHASED_ERR(409, "COLOR_ALREADY_PURCHASED_ERR", "이미 구매한 색상입니다."),


VALIDATION_ERR(400, "VALIDATION_ERR", "잘못된 입력입니다. 올바른 값을 입력해주세요."),
PERMISSION_ERR(403, "PERMISSION_ERR", "접근 권한이 없습니다. 관리자에게 문의하세요."),
TIMEOUT_ERR(408, "TIMEOUT_ERR", "요청 시간이 초과되었습니다. 다시 시도해주세요."),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package chzzk.grassdiary.domain.diary.service;

import chzzk.grassdiary.domain.color.ColorCode;
import chzzk.grassdiary.domain.color.ColorCodeDAO;
import chzzk.grassdiary.domain.color.entity.ColorCode;
import chzzk.grassdiary.domain.color.entity.ColorCodeDAO;
import chzzk.grassdiary.domain.color.ConditionLevel;
import chzzk.grassdiary.domain.diary.dto.browse.DiaryPreviewDTO;
import chzzk.grassdiary.domain.diary.entity.Diary;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package chzzk.grassdiary.domain.member.service;

import chzzk.grassdiary.domain.color.ColorCodeDAO;
import chzzk.grassdiary.domain.color.entity.ColorCodeDAO;
import chzzk.grassdiary.domain.member.entity.Member;
import chzzk.grassdiary.domain.member.entity.MemberDAO;
import chzzk.grassdiary.global.auth.service.dto.GoogleUserInfo;
Expand Down

0 comments on commit 9609148

Please sign in to comment.