Skip to content

Commit

Permalink
Merge pull request #62 from UniBond-jijijin/feature/61-block
Browse files Browse the repository at this point in the history
[feature/61-block] 사용자 및 게시글 차단 기능
  • Loading branch information
5jisoo authored Jan 8, 2024
2 parents ed3a915 + 2b6ec7a commit d08309e
Show file tree
Hide file tree
Showing 35 changed files with 578 additions and 556 deletions.
10 changes: 5 additions & 5 deletions unibond/BOOT-INF/classes/static/docs/community.html
Original file line number Diff line number Diff line change
Expand Up @@ -540,11 +540,11 @@ <h3 id="_response"><a class="link" href="#_response">Response</a></h3>
"message" : "요청에 성공하였습니다.",
"result" : {
"loginMemberProfileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"postOwnerId" : 32,
"profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/0ee1ae29-e205-4107-9a4d-69ffa68e98ecmountaineers-5649828_640.jpg",
"postOwnerName" : "건강렛츠고",
"postOwnerId" : 31,
"profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/b8602030-7b09-4f2c-bfb4-b9140c73f72afitness-594143_640.jpg",
"postOwnerName" : "헬스파트너",
"createdDate" : "2023-12-03T00:39:17.136017",
"diseaseName" : "종양 괴사 인자 수용체와 관련된 주기성 증후군",
"diseaseName" : "5번 염색체 장완의 결손 증후군",
"postImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/post/78b31858-b4dc-4b6b-a8ff-a9cf205b6401seoul-5932687_640.jpg",
"content" : "안녕하세요! 오늘 저는 오랜만에 바깥 외출을 했답니다. 날씨가 많이 추워졌어요. 집에만 있다 보니 이렇게 추워진 줄도 몰랐네요?",
"commentCount" : 4,
Expand Down Expand Up @@ -580,7 +580,7 @@ <h3 id="_response"><a class="link" href="#_response">Response</a></h3>
}, {
"commentUserId" : 29,
"profileImgUrl" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"commentUserName" : "시험왕",
"commentUserName" : "병원장",
"commentId" : 27,
"createdDate" : "2023-12-04T01:20:31.039816",
"content" : "우와! 밖이 벌써 이렇게 추워졌나요.. 저도 올해가 가기 전엔 꼭 나가봐야겠어요!",
Expand Down
11 changes: 6 additions & 5 deletions unibond/BOOT-INF/classes/static/docs/experience-community.html
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ <h3 id="_request"><a class="link" href="#_request">Request</a></h3>
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">GET /api/v1/community/experience?page=0 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: 29
Host: localhost:8080</code></pre>
</div>
</div>
Expand Down Expand Up @@ -504,7 +505,7 @@ <h3 id="_response"><a class="link" href="#_response">Response</a></h3>
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 2479
Content-Length: 2451

{
"isSuccess" : true,
Expand Down Expand Up @@ -542,10 +543,10 @@ <h3 id="_response"><a class="link" href="#_response">Response</a></h3>
"isEnd" : false
}, {
"createdDate" : "2023-12-03T00:39:17.136017",
"ownerId" : 32,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/0ee1ae29-e205-4107-9a4d-69ffa68e98ecmountaineers-5649828_640.jpg",
"ownerNick" : "건강렛츠고",
"disease" : "종양 괴사 인자 수용체와 관련된 주기성 증후군",
"ownerId" : 31,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/b8602030-7b09-4f2c-bfb4-b9140c73f72afitness-594143_640.jpg",
"ownerNick" : "헬스파트너",
"disease" : "5번 염색체 장완의 결손 증후군",
"postId" : 59,
"postImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/post/78b31858-b4dc-4b6b-a8ff-a9cf205b6401seoul-5932687_640.jpg",
"contentPreview" : "안녕하세요! 오늘 저는 오랜만에 바깥 외출을 했답니다. 날씨가 많이 추워졌어요. ",
Expand Down
76 changes: 50 additions & 26 deletions unibond/BOOT-INF/classes/static/docs/letter-rooms.html
Original file line number Diff line number Diff line change
Expand Up @@ -511,25 +511,37 @@ <h3 id="_response"><a class="link" href="#_response">Response</a></h3>
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 649
Content-Length: 1248

{
"isSuccess" : true,
"code" : 1000,
"message" : "요청에 성공하였습니다.",
"result" : {
"letterRoomList" : [ {
"senderProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/025cc515-c832-4c29-9fe0-9e77f0afea7d6808929_emoji_emoticon_emotion_expression_face_icon.png",
"senderNick" : "서울의가을",
"senderId" : 28,
"recentLetterSentDate" : "2024-01-01T02:37:54.084",
"letterRoomId" : 12
"senderProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/3b6fc68f-808c-4e22-97e8-9447d6916bc5cat-2068462_640.jpg",
"senderNick" : "눈송이네 베이킹",
"senderId" : 30,
"recentLetterSentDate" : "2024-01-07T22:56:25.129518",
"letterRoomId" : 19
}, {
"senderProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/ef3a45d1-4eb3-48a5-af19-92b0b42aee2bnight-1927265_640.jpg",
"senderNick" : "찍사",
"senderId" : 27,
"recentLetterSentDate" : "2024-01-07T22:39:15.467606",
"letterRoomId" : 17
}, {
"senderProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/b4c4506a-7208-49cb-a21a-2a7804062c49ocean-1867285_640.jpg",
"senderNick" : "새해복많이",
"senderId" : 26,
"recentLetterSentDate" : "2024-01-07T05:38:29.322177",
"letterRoomId" : 18
} ],
"pageInfo" : {
"numberOfElements" : 1,
"numberOfElements" : 3,
"lastPage" : true,
"totalPages" : 1,
"totalElements" : 1,
"totalElements" : 3,
"size" : 30
}
}
Expand Down Expand Up @@ -663,7 +675,7 @@ <h2 id="_get_all_letters_in_letter_rooms"><a class="link" href="#_get_all_letter
<h3 id="_request_2"><a class="link" href="#_request_2">Request</a></h3>
<div class="listingblock">
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">GET /api/v1/letter-rooms/12?page=0 HTTP/1.1
<pre class="highlight nowrap"><code class="language-http" data-lang="http">GET /api/v1/letter-rooms/17?page=0 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: 29
Host: localhost:8080</code></pre>
Expand Down Expand Up @@ -731,37 +743,44 @@ <h3 id="_response_2"><a class="link" href="#_response_2">Response</a></h3>
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1073
Content-Length: 1183

{
"isSuccess" : true,
"code" : 1000,
"message" : "요청에 성공하였습니다.",
"result" : {
"receiverId" : 28,
"receiverProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/025cc515-c832-4c29-9fe0-9e77f0afea7d6808929_emoji_emoticon_emotion_expression_face_icon.png",
"receiverName" : "서울의가을",
"receiverDiseaseName" : "피어슨 증후군[Pierson syndrome]",
"loginId" : 29,
"receiverId" : 27,
"receiverProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/ef3a45d1-4eb3-48a5-af19-92b0b42aee2bnight-1927265_640.jpg",
"receiverName" : "찍사",
"receiverDiseaseName" : "분열뇌증",
"receiverDiagnosisTiming" : "2023-11-10",
"pageInfo" : {
"numberOfElements" : 2,
"numberOfElements" : 3,
"lastPage" : true,
"totalPages" : 1,
"totalElements" : 2,
"totalElements" : 3,
"size" : 30
},
"letterList" : [ {
"letterId" : 20,
"senderId" : 28,
"senderName" : "서울의가을",
"sentDate" : "2024-01-01T02:37:54.084",
"letterTitle" : "너무 반가워요!"
"letterId" : 37,
"senderId" : 29,
"senderName" : "병원장",
"sentDate" : "2024-01-07T22:39:15.467606",
"letterTitle" : "크하핳 감사합니다"
}, {
"letterId" : 19,
"letterId" : 36,
"senderId" : 27,
"senderName" : "찍사",
"sentDate" : "2024-01-07T22:38:11.597295",
"letterTitle" : "뉴비여.."
}, {
"letterId" : 33,
"senderId" : 29,
"senderName" : "시험왕",
"sentDate" : "2024-01-01T02:37:22.417",
"letterTitle" : "안녕하세요! 처음으로 인사드립니다."
"senderName" : "병원장",
"sentDate" : "2024-01-07T21:34:56.961256",
"letterTitle" : "궁금한 게 있어요!"
} ]
}
}</code></pre>
Expand Down Expand Up @@ -802,6 +821,11 @@ <h3 id="_response_2"><a class="link" href="#_response_2">Response</a></h3>
<td class="tableblock halign-left valign-top"><p class="tableblock">결과 데이터</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>result.loginId</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Number</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">로그인 아이디</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>result.receiverId</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Number</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">수신자 아이디</p></td>
Expand Down Expand Up @@ -968,7 +992,7 @@ <h3 id="_response_3"><a class="link" href="#_response_3">Response</a></h3>
"letterRoomId" : 12,
"sentDate" : "2024-01-01T02:37:22.417",
"letterTitle" : "안녕하세요! 처음으로 인사드립니다.",
"senderName" : "시험왕"
"senderName" : "병원장"
} ]
}
}</code></pre>
Expand Down
130 changes: 21 additions & 109 deletions unibond/BOOT-INF/classes/static/docs/member.html
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ <h3 id="_request"><a class="link" href="#_request">Request</a></h3>

{
"diseaseId" : 1,
"diseaseTiming" : "2024-01-06",
"diseaseTiming" : "2024-01-08",
"gender" : "FEMALE",
"nickname" : "안녕하세요닉네임",
"bio" : "안녕하세요 한 줄 소개 작성합니다.",
Expand Down Expand Up @@ -563,7 +563,7 @@ <h3 id="_response"><a class="link" href="#_response">Response</a></h3>
"isSuccess" : true,
"code" : 1000,
"message" : "요청에 성공하였습니다.",
"result" : 39
"result" : 64
}</code></pre>
</div>
</div>
Expand Down Expand Up @@ -688,12 +688,12 @@ <h3 id="_response_2"><a class="link" href="#_response_2">Response</a></h3>
"message" : "요청에 성공하였습니다.",
"result" : {
"profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"nickname" : "시험왕",
"nickname" : "병원장",
"gender" : "MALE",
"diseaseName" : "블륨 증후군",
"diseaseName" : "포도당 수송자 1 결핍증",
"diagnosisTiming" : "2002-06-27",
"bio" : "안녕하세요 친하게 지내요^^",
"interestList" : [ "영화/드라마", "친목", "운동" ]
"bio" : "새로운 신약 병원 정보 환영합니다.",
"interestList" : [ "유전자", "문화생활", "복지", "운동" ]
}
}</code></pre>
</div>
Expand Down Expand Up @@ -854,113 +854,25 @@ <h3 id="_response_3"><a class="link" href="#_response_3">Response</a></h3>
"message" : "요청에 성공하였습니다.",
"result" : {
"profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"nickname" : "시험왕",
"nickname" : "병원장",
"gender" : "MALE",
"diseaseName" : "블륨 증후군",
"diseaseName" : "포도당 수송자 1 결핍증",
"diagnosisTiming" : "2002-06-27",
"bio" : "안녕하세요 친하게 지내요^^",
"interestList" : [ "영화/드라마", "친목", "운동" ],
"bio" : "새로운 신약 병원 정보 환영합니다.",
"interestList" : [ "유전자", "문화생활", "복지", "운동" ],
"pageInfo" : {
"numberOfElements" : 9,
"numberOfElements" : 1,
"lastPage" : true,
"totalPages" : 1,
"totalElements" : 9,
"totalElements" : 1,
"size" : 30
},
"postPreviewList" : [ {
"createdDate" : "2024-01-06T06:07:59.413161",
"ownerId" : 29,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"ownerNick" : "시험왕",
"disease" : "블륨 증후군",
"postId" : 79,
"postImg" : null,
"contentPreview" : "아아\n글 왜 쓰면 풀투리프레쉬 없어ㅍ졋ㅆ지...",
"boardType" : "QNA",
"isEnd" : true
}, {
"createdDate" : "2024-01-04T12:24:22.161686",
"ownerId" : 29,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"ownerNick" : "시험왕",
"disease" : "블륨 증후군",
"postId" : 78,
"postImg" : null,
"contentPreview" : "글 작성도 아주 잘 됩니다! 하지만 속도는 조금 느려요.. 어쩔수가없네ㅠ 성능개선",
"boardType" : "QNA",
"isEnd" : false
}, {
"createdDate" : "2024-01-04T12:11:05.969729",
"ownerId" : 29,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"ownerNick" : "시험왕",
"disease" : "블륨 증후군",
"postId" : 77,
"postImg" : null,
"contentPreview" : "글도 쓸 수 있다! 난 너무 행복해 해 자동완성 왜 되냐;; 킹받네...나 밥도 ",
"boardType" : "QNA",
"isEnd" : false
}, {
"createdDate" : "2024-01-04T01:09:39.566862",
"ownerId" : 29,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"ownerNick" : "시험왕",
"disease" : "블륨 증후군",
"postId" : 76,
"postImg" : null,
"contentPreview" : "안녕하시렵니까? 잘 써지나유",
"boardType" : "QNA",
"isEnd" : true
}, {
"createdDate" : "2024-01-03T23:29:05.627646",
"ownerId" : 29,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"ownerNick" : "시험왕",
"disease" : "블륨 증후군",
"postId" : 75,
"postImg" : null,
"contentPreview" : "새로고침 테스트를 위한 글쓰기입니다,,,,,이이이이이이이이이이이이이이이이ㅣㅇ이이이",
"boardType" : "QNA",
"isEnd" : false
}, {
"createdDate" : "2024-01-03T23:26:28.345496",
"ownerId" : 29,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"ownerNick" : "시험왕",
"disease" : "블륨 증후군",
"postId" : 74,
"postImg" : null,
"contentPreview" : "새로고침 테스트를 위한 글쓰기입니다,,,,,이이이이이이이이이이이이이이이이ㅣㅇ이이이",
"boardType" : "QNA",
"isEnd" : false
}, {
"createdDate" : "2024-01-03T23:26:09.69247",
"ownerId" : 29,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"ownerNick" : "시험왕",
"disease" : "블륨 증후군",
"postId" : 73,
"postImg" : null,
"contentPreview" : "새로고침 테스트를 위한 글쓰기입니다",
"boardType" : "QNA",
"isEnd" : true
}, {
"createdDate" : "2024-01-03T22:16:28.436585",
"ownerId" : 29,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"ownerNick" : "시험왕",
"disease" : "블륨 증후군",
"postId" : 72,
"postImg" : null,
"contentPreview" : "이것은 질문 게시판의 게시물인데, 작성이 잘 될까요? 궁금합니다. 저는 빨리좀 하",
"boardType" : "QNA",
"isEnd" : false
}, {
"createdDate" : "2023-12-30T00:40:29.237761",
"ownerId" : 29,
"ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"ownerNick" : "시험왕",
"disease" : "블륨 증후군",
"ownerNick" : "병원장",
"disease" : "포도당 수송자 1 결핍증",
"postId" : 60,
"postImg" : null,
"contentPreview" : "급하게 친구들끼리 여행을 가게 될 일이 생겼어요. 사실 이동하는 게 많이 어려워서",
Expand Down Expand Up @@ -1255,20 +1167,20 @@ <h3 id="_response_4"><a class="link" href="#_response_4">Response</a></h3>
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 574
Content-Length: 583

{
"isSuccess" : true,
"code" : 1000,
"message" : "요청에 성공하였습니다.",
"result" : {
"profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg",
"nickname" : "시험왕",
"nickname" : "병원장",
"gender" : "NULL",
"diseaseName" : "10번 염색체 장완 말단부의 단일염색체증",
"diagnosisTiming" : "2002-06-27",
"bio" : "안녕하세요 수정된 한 줄 소개 작성합니다.",
"interestList" : [ "영화/드라마", "친목", "운동" ]
"interestList" : [ "유전자", "문화생활", "복지", "운동" ]
}
}</code></pre>
</div>
Expand Down Expand Up @@ -1517,20 +1429,20 @@ <h3 id="_response_5"><a class="link" href="#_response_5">Response</a></h3>
<div class="content">
<pre class="highlight nowrap"><code class="language-http" data-lang="http">HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 555
Content-Length: 564

{
"isSuccess" : true,
"code" : 1000,
"message" : "요청에 성공하였습니다.",
"result" : {
"profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/5bb0336a-8496-49d2-85a0-86ba1755d9b2test_profile_img.jpg",
"nickname" : "시험왕",
"profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f35652bb-10a5-4de7-b560-707157e9a916test_profile_img.jpg",
"nickname" : "병원장",
"gender" : "MALE",
"diseaseName" : "1번 염색체 장완 21.3 부분의 미세결손 증후군",
"diagnosisTiming" : "2002-06-27",
"bio" : "수정 테스트를 해봅시다",
"interestList" : [ "영화/드라마", "친목", "운동" ]
"interestList" : [ "유전자", "문화생활", "복지", "운동" ]
}
}</code></pre>
</div>
Expand Down
Loading

0 comments on commit d08309e

Please sign in to comment.