Skip to content

Commit

Permalink
로그인
Browse files Browse the repository at this point in the history
  • Loading branch information
bikooju committed Jan 11, 2025
1 parent a8d2f50 commit 98743a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public enum ErrorStatus implements BaseErrorCode {

// News Error
NEWS_NOT_EXIST_FOUND(HttpStatus.BAD_REQUEST, "NEWS4001", "뉴스가 없습니다."),

//Store Error
STORE_NOT_FOUND(HttpStatus.NOT_FOUND, "STORE_4001","가게가 없습니다.");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@
public interface GroupRepository extends JpaRepository<TeamGroup, Long> {
Optional<TeamGroup> findByGroupKey(String groupKey);
boolean existsByGroupKey(String groupKey);
Optional<TeamGroup> findByGroupKey(String groupKey);
}
2 changes: 2 additions & 0 deletions src/main/java/banban/springboot/service/MemberService.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public MemberResponseDTO findMemberById(Long id,String groupKey) {
return MemberResponseDTO.builder()
.id(member.getId())
.username(member.getUsername())
.teamGroup(teamGroup)
.build();
}

Expand All @@ -64,6 +65,7 @@ public MemberResponseDTO getMemberByUsername(String username, String groupKey) {
return MemberResponseDTO.builder()
.id(member.getId())
.username(member.getUsername())
.teamGroup(teamGroup)
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.ColumnDefault;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDateTime;
Expand All @@ -24,6 +25,7 @@ public class NewsRequestDTO {

//private List<MultipartFile> images; // 사용자가 업로드한 이미지

@ColumnDefault("false")
private boolean isBreakingNews; // 속보 여부

@NotNull(message = "긍정인지 부정인지 작성해주세요")
Expand Down

0 comments on commit 98743a2

Please sign in to comment.