Skip to content

Commit 35f00c5

Browse files
authored
Merge pull request #137 from prgrms-web-devcourse-final-project/dev
Dev
2 parents 6d18a21 + f09c9ad commit 35f00c5

5 files changed

Lines changed: 82 additions & 2 deletions

File tree

README.md

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,76 @@
1-
readme test
1+
# 🐶강아지 건강 기록/제안 및 소통 서비스 [ 멍멍일지 ]
2+
3+
## 프로젝트 소개
4+
5+
**멍멍일지**는 반려견 보호자들이 사랑스러운 반려견에게 **개인 맞춤형 최적의 일상 루틴**을 제공하고, **다른 보호자들과 유용한 정보와 경험을 공유**하며 궁금증을 해소할 수 있는 반려동물 관리 플랫폼입니다.
6+
7+
**멍멍일지**는 반려견의 개별적인 특성을 고려한 루틴 추천과 보호자 간의 활발한 소통을 통해 더욱 건강하고 행복한 반려 생활을 돕고자 합니다.
8+
9+
<br>
10+
11+
### 프로젝트 개발 기간
12+
13+
2025.06.26(목) ~ 07.31(목)
14+
15+
<br>
16+
17+
## 팀원 구성
18+
19+
<div>
20+
<table >
21+
<tbody>
22+
<tr>
23+
<td align="center"><b>강대겸</b></td>
24+
<td align="center"><b>김예원</b></td>
25+
<td align="center"><b>박종욱</b></td>
26+
<td align="center"><b>박현도</b></td>
27+
<td align="center"><b>안세희</b></td>
28+
</tr>
29+
<tr>
30+
<td align="center"><a href="https://github.com/KangDaegyeom"><img src="https://github.com/KangDaegyeom.png" width="100px;" alt="강대겸"/></a></td>
31+
<td align="center"><a href="https://github.com/eonwy"><img src="https://github.com/eonwy.png" width="100px;" alt="김예원"/></a></td>
32+
<td align="center"><a href="https://github.com/JongWook6"><img src="https://github.com/JongWook6.png" width="100px;" alt="박종욱"/></a></td>
33+
<td align="center"><a href="https://github.com/hyundo0328"><img src="https://github.com/hyundo0328.png" width="100px;" alt="박현도"/></a></td>
34+
<td align="center"><a href="https://github.com/ash-be"><img src="https://github.com/ash-be.png" width="100px;" alt="안세희"/></a></td>
35+
</tr>
36+
<tr>
37+
<td align="center"><a href="https://github.com/KangDaegyeom"><sub><b>@KangDaegyeom</b></sub></a></td>
38+
<td align="center"><a href="https://github.com/eonwy"><sub><b>@eonwy</b></sub></a></td>
39+
<td align="center"><a href="https://github.com/JongWook6"><sub><b>@JongWook6</b></sub></a></td>
40+
<td align="center"><a href="https://github.com/hyundo0328"><sub><b>@hyundo0328</b></sub></a></td>
41+
<td align="center"><a href="https://github.com/ash-be"><sub><b>@ash-be</b></sub></a></td>
42+
</tr>
43+
</tbody>
44+
</table>
45+
46+
</div>
47+
48+
## 시스템 구성도
49+
50+
![시스템 구성도](docs/images/system.png)
51+
52+
<br>
53+
54+
## ERD
55+
![ERD](docs/images/404TNF.png)
56+
57+
<br>
58+
59+
## 주요 기능
60+
### 대시보드
61+
- 반려동물 프로필(사진, 이름, 나이 등) 조회
62+
- 식사, 산책, 몸무게 등 주요 정보 입력 및 데이터 그래프 제공
63+
- 맞춤형 정보 및 반려견 정서 추측 정보 제공
64+
### 생활기록
65+
- 식사, 산책, 건강 상태(몸무게, 예방접종 등) 기록
66+
- 비정형 기록(일기, 특이사항 등) 기록
67+
- 일정 등록 등
68+
### 커뮤니티(질문게시판 / 자유게시판)
69+
- 다른 반려견 보호자들의 의견 공유
70+
- 게시글 작성, 좋아요, 댓글 등 사용자 인터랙션
71+
### 알림(리마인더)
72+
- 일정, 건강 관리, 예방접종 등 알림/리마인더 제공
73+
### 회원/관리자 페이지
74+
- 회원 관리
75+
- 신고 관리
76+

docs/images/404TNF.png

1.36 MB
Loading

docs/images/system.png

118 KB
Loading

src/main/java/com/grepp/teamnotfound/app/model/auth/AuthService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public LoginResult login(LoginCommand request) {
4242
User user = userRepository.findByEmail(request.getEmail())
4343
.orElseThrow(() -> new AuthException(UserErrorCode.USER_NOT_FOUND));
4444

45+
if(!"local".equals(user.getProvider())){
46+
throw new AuthException(UserErrorCode.USER_ALREADY_SOCIAL_SIGNED);
47+
}
48+
4549
if(user.isDeleted()){
4650
throw new AuthException(AuthErrorCode.DELETED_USER);
4751
}

src/main/java/com/grepp/teamnotfound/infra/error/exception/code/UserErrorCode.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public enum UserErrorCode implements BaseErrorCode{
1919
USER_ACCESS_DENIED(HttpStatus.FORBIDDEN.value(), "USER_007", "해당 사용자 정보에 대한 접근 권한이 없습니다."),
2020
INVALID_PASSWORD_FORMAT(HttpStatus.BAD_REQUEST.value(), "USER_008", "비밀번호는 영문/숫자/특수문자를 포함한 8~20자여야 합니다."),
2121
USER_REPORTED(HttpStatus.FORBIDDEN.value(), "USER_009", "신고로 인해 게시글/댓글 작성이 제한되었습니다."),
22-
USER_NOT_SUSPENDED(HttpStatus.BAD_REQUEST.value(), "USER_010", "정지된 회원이 아닙니다.");
22+
USER_NOT_SUSPENDED(HttpStatus.BAD_REQUEST.value(), "USER_010", "정지된 회원이 아닙니다."),
23+
USER_ALREADY_SOCIAL_SIGNED(HttpStatus.CONFLICT.value(), "USER_011", "소셜 로그인으로 가입한 이메일입니다.");
2324

2425
private final int status;
2526
private final String code;

0 commit comments

Comments
 (0)