Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
v1.0.0
  • Loading branch information
char-yb authored Aug 30, 2024
2 parents caf7728 + 66cbfa4 commit 56fdc51
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.depromeet.stonebed.domain.member.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import lombok.AccessLevel;
import lombok.Builder;
Expand All @@ -20,7 +19,6 @@ public class OauthInfo {
private String oauthProvider;

@Schema(description = "소셜 이메일", example = "[email protected]")
@Column(unique = true)
private String oauthEmail;

@Builder(access = AccessLevel.PRIVATE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ public class MissionService {

public MissionCreateResponse createMission(MissionCreateRequest missionCreateRequest) {
Mission mission =
Mission.builder()
.title(missionCreateRequest.title())
.raisePet(missionCreateRequest.raisePet())
.build();
Mission.createMission(
missionCreateRequest.title(),
missionCreateRequest.raisePet(),
missionCreateRequest.completeMessage());

mission = missionRepository.save(mission);
return MissionCreateResponse.from(mission);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ public Mission(String title, RaisePet raisePet, String completeMessage) {
this.completeMessage = completeMessage;
}

public static Mission createMission(String title, RaisePet raisePet, String completeMessage) {
return Mission.builder()
.title(title)
.raisePet(raisePet)
.completeMessage(completeMessage)
.build();
}

public void updateTitle(String title) {
this.title = title;
}
Expand Down

0 comments on commit 56fdc51

Please sign in to comment.