From 98fb7aadd34b2c4861401c48412b4836da9518b8 Mon Sep 17 00:00:00 2001 From: 5jisoo <56earls@gmail.com> Date: Tue, 9 Jan 2024 14:15:07 +0900 Subject: [PATCH 1/2] =?UTF-8?q?#4=20Feat:=20=EA=B2=BD=ED=97=98=20=EA=B8=B0?= =?UTF-8?q?=EB=A1=9D=20=EA=B2=8C=EC=8B=9C=ED=8C=90=20=EC=97=85=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=20v1=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/ExperiencePostController.java | 17 ++++++++++++++--- .../unibond/post/service/PostService.java | 13 +++++++++++++ .../ExperiencePostControllerTest.java | 2 +- 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/unibond/src/main/java/com/unibond/unibond/post/controller/ExperiencePostController.java b/unibond/src/main/java/com/unibond/unibond/post/controller/ExperiencePostController.java index 339260b..e72fd5e 100644 --- a/unibond/src/main/java/com/unibond/unibond/post/controller/ExperiencePostController.java +++ b/unibond/src/main/java/com/unibond/unibond/post/controller/ExperiencePostController.java @@ -17,11 +17,22 @@ @RestController @RequiredArgsConstructor -@RequestMapping("/api/v1/community/experience") public class ExperiencePostController { private final PostService postService; - @PostMapping(value = "", consumes = {APPLICATION_JSON_VALUE, MULTIPART_FORM_DATA_VALUE}) + @PostMapping(value = "/api/v1/community/experience") + public BaseResponse createPost(@RequestHeader("Authorization") Long loginId, + @RequestBody PostUploadReqDto request) { + try { + request.setBoardType(EXPERIENCE); + postService.createPost(request); + return new BaseResponse<>(SUCCESS); + } catch (BaseException e) { + return new BaseResponse<>(e.getStatus()); + } + } + + @PostMapping(value = "/api/v2/community/experience", consumes = {APPLICATION_JSON_VALUE, MULTIPART_FORM_DATA_VALUE}) public BaseResponse createPost(@RequestHeader("Authorization") Long loginId, @RequestPart MultipartFile postImg, @RequestPart PostUploadReqDto request) { @@ -34,7 +45,7 @@ public BaseResponse createPost(@RequestHeader("Authorization") Long loginId, } } - @GetMapping("") + @GetMapping("/api/v1/community/experience") public BaseResponse getExperienceCommunityPosts(@PageableDefault(size = 30) Pageable pageable) { try { return new BaseResponse<>(postService.getCommunityContent(EXPERIENCE, pageable)); diff --git a/unibond/src/main/java/com/unibond/unibond/post/service/PostService.java b/unibond/src/main/java/com/unibond/unibond/post/service/PostService.java index 5a7165d..9951c75 100644 --- a/unibond/src/main/java/com/unibond/unibond/post/service/PostService.java +++ b/unibond/src/main/java/com/unibond/unibond/post/service/PostService.java @@ -33,6 +33,19 @@ public class PostService { private final PostBlockRepository postBlockRepository; private final CommentRepository commentRepository; + @Transactional + public void createPost(PostUploadReqDto reqDto) throws BaseException { + try { + Member loginMember = loginInfoService.getLoginMember(); + Post newPost = reqDto.toEntity(loginMember, null); + postRepository.save(newPost); + } catch (BaseException e) { + throw e; + } catch (Exception e) { + throw new BaseException(DATABASE_ERROR); + } + } + @Transactional public void createPost(PostUploadReqDto reqDto, MultipartFile multipartFile) throws BaseException { try { diff --git a/unibond/src/test/java/com/unibond/unibond/post/controller/ExperiencePostControllerTest.java b/unibond/src/test/java/com/unibond/unibond/post/controller/ExperiencePostControllerTest.java index 5800511..9773151 100644 --- a/unibond/src/test/java/com/unibond/unibond/post/controller/ExperiencePostControllerTest.java +++ b/unibond/src/test/java/com/unibond/unibond/post/controller/ExperiencePostControllerTest.java @@ -127,7 +127,7 @@ void createPost() throws Exception { = new MockMultipartFile("request", "request", "application/json", content.getBytes(UTF_8)); this.mockMvc.perform( - multipart("/api/v1/community/experience") + multipart("/api/v2/community/experience") .file(testImg) .file(request) .header("Authorization", 29) From 301d715e3b10108993d07552d6a7a2db7779d4b1 Mon Sep 17 00:00:00 2001 From: 5jisoo <56earls@gmail.com> Date: Tue, 9 Jan 2024 20:27:43 +0900 Subject: [PATCH 2/2] =?UTF-8?q?#4=20Docs:=20=EA=B2=BD=ED=97=98=20=EA=B8=B0?= =?UTF-8?q?=EB=A1=9D=20=EA=B2=8C=EC=8B=9C=ED=8C=90=20v1=20API=20=EB=AA=85?= =?UTF-8?q?=EC=84=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/docs/experience-community.html | 2 +- .../classes/static/docs/letter-rooms.html | 12 +- .../BOOT-INF/classes/static/docs/member.html | 4 +- .../static/docs/question-community.html | 19 ++- .../docs/asciidoc/experience-community.adoc | 20 ++- .../src/docs/asciidoc/question-community.adoc | 2 +- .../controller/ExperiencePostController.java | 4 +- .../controller/QuestionPostController.java | 3 +- .../unibond/post/dto/PostUploadReqDto.java | 22 ++- .../unibond/post/service/PostService.java | 7 +- .../static/docs/experience-community.html | 152 ++++++++++++++++-- .../resources/static/docs/letter-rooms.html | 12 +- .../main/resources/static/docs/member.html | 27 +++- .../static/docs/question-community.html | 58 ++++++- .../ExperiencePostControllerTest.java | 49 +++++- 15 files changed, 324 insertions(+), 69 deletions(-) diff --git a/unibond/BOOT-INF/classes/static/docs/experience-community.html b/unibond/BOOT-INF/classes/static/docs/experience-community.html index 4b8fec0..b0b5358 100644 --- a/unibond/BOOT-INF/classes/static/docs/experience-community.html +++ b/unibond/BOOT-INF/classes/static/docs/experience-community.html @@ -853,7 +853,7 @@

Response

diff --git a/unibond/BOOT-INF/classes/static/docs/letter-rooms.html b/unibond/BOOT-INF/classes/static/docs/letter-rooms.html index 144d771..8fac522 100644 --- a/unibond/BOOT-INF/classes/static/docs/letter-rooms.html +++ b/unibond/BOOT-INF/classes/static/docs/letter-rooms.html @@ -511,7 +511,7 @@

Response

HTTP/1.1 200 OK
 Content-Type: application/json
-Content-Length: 1248
+Content-Length: 1599
 
 {
   "isSuccess" : true,
@@ -519,6 +519,12 @@ 

Response

"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-08T19:33:37.078678", + "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, @@ -538,10 +544,10 @@

Response

"letterRoomId" : 18 } ], "pageInfo" : { - "numberOfElements" : 3, + "numberOfElements" : 4, "lastPage" : true, "totalPages" : 1, - "totalElements" : 3, + "totalElements" : 4, "size" : 30 } } diff --git a/unibond/BOOT-INF/classes/static/docs/member.html b/unibond/BOOT-INF/classes/static/docs/member.html index b753fa8..c37a72e 100644 --- a/unibond/BOOT-INF/classes/static/docs/member.html +++ b/unibond/BOOT-INF/classes/static/docs/member.html @@ -563,7 +563,7 @@

Response

"isSuccess" : true, "code" : 1000, "message" : "요청에 성공하였습니다.", - "result" : 65 + "result" : 68 }
@@ -1436,7 +1436,7 @@

Response

"code" : 1000, "message" : "요청에 성공하였습니다.", "result" : { - "profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/dc45f826-fb80-46d9-9121-ae0a0816a9e4test_profile_img.jpg", + "profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/00f348b2-0669-4007-a6ff-6e4129b71023test_profile_img.jpg", "nickname" : "병원장", "gender" : "MALE", "diseaseName" : "1번 염색체 장완 21.3 부분의 미세결손 증후군", diff --git a/unibond/BOOT-INF/classes/static/docs/question-community.html b/unibond/BOOT-INF/classes/static/docs/question-community.html index 586c597..5b80b1b 100644 --- a/unibond/BOOT-INF/classes/static/docs/question-community.html +++ b/unibond/BOOT-INF/classes/static/docs/question-community.html @@ -517,7 +517,7 @@

Response

HTTP/1.1 200 OK
 Content-Type: application/json;charset=UTF-8
-Content-Length: 1437
+Content-Length: 2067
 
 {
   "isSuccess" : true,
@@ -525,10 +525,10 @@ 

Response

"message" : "요청에 성공하였습니다.", "result" : { "pageInfo" : { - "numberOfElements" : 2, + "numberOfElements" : 3, "lastPage" : true, "totalPages" : 1, - "totalElements" : 2, + "totalElements" : 3, "size" : 30 }, "postPreviewList" : [ { @@ -542,6 +542,17 @@

Response

"contentPreview" : "급하게 친구들끼리 여행을 가게 될 일이 생겼어요. 사실 이동하는 게 많이 어려워서", "boardType" : "QNA", "isEnd" : false + }, { + "createdDate" : "2023-11-12T00:57:12.641472", + "ownerId" : 28, + "ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/025cc515-c832-4c29-9fe0-9e77f0afea7d6808929_emoji_emoticon_emotion_expression_face_icon.png", + "ownerNick" : "서울의가을", + "disease" : "10번 염색체 장완 말단부의 단일염색체증", + "postId" : 62, + "postImg" : null, + "contentPreview" : "학교에 다니면서 친구들한테 어떻게 이 병에 대해 솔직하게 털어놨는지 다들 계기가 ", + "boardType" : "QNA", + "isEnd" : false }, { "createdDate" : "2023-10-03T00:41:51.650698", "ownerId" : 30, @@ -686,7 +697,7 @@

Response

diff --git a/unibond/src/docs/asciidoc/experience-community.adoc b/unibond/src/docs/asciidoc/experience-community.adoc index 8748f0a..a19725e 100644 --- a/unibond/src/docs/asciidoc/experience-community.adoc +++ b/unibond/src/docs/asciidoc/experience-community.adoc @@ -26,9 +26,25 @@ include::{snippets}/get-experience-community/query-parameters.adoc[] include::{snippets}/get-experience-community/http-response.adoc[] include::{snippets}/get-experience-community/response-fields.adoc[] -== Upload Posts on Experience Community +== Upload Posts on Experience Community- V1 -경험 기록 게시판에 게시물 업로드하기 +경험 기록 게시판에 게시물 업로드하기 (v1) + +=== Request + +include::{snippets}/post-experience-community_v1/http-request.adoc[] + +include::{snippets}/post-experience-community_v1/request-headers.adoc[] +include::{snippets}/post-experience-community_v1/request-fields.adoc[] + +=== Response + +include::{snippets}/post-experience-community/http-response.adoc[] +include::{snippets}/post-experience-community/response-fields.adoc[] + +== Upload Posts on Experience Community- V2 + +경험 기록 게시판에 게시물 업로드하기 (v2) === Request diff --git a/unibond/src/docs/asciidoc/question-community.adoc b/unibond/src/docs/asciidoc/question-community.adoc index 5acd09a..bcbd3c1 100644 --- a/unibond/src/docs/asciidoc/question-community.adoc +++ b/unibond/src/docs/asciidoc/question-community.adoc @@ -1,4 +1,4 @@ -= Experience Community API += Q&A Community API Lucy Oh; :doctype: book :icons: font diff --git a/unibond/src/main/java/com/unibond/unibond/post/controller/ExperiencePostController.java b/unibond/src/main/java/com/unibond/unibond/post/controller/ExperiencePostController.java index e72fd5e..4e0b880 100644 --- a/unibond/src/main/java/com/unibond/unibond/post/controller/ExperiencePostController.java +++ b/unibond/src/main/java/com/unibond/unibond/post/controller/ExperiencePostController.java @@ -24,8 +24,7 @@ public class ExperiencePostController { public BaseResponse createPost(@RequestHeader("Authorization") Long loginId, @RequestBody PostUploadReqDto request) { try { - request.setBoardType(EXPERIENCE); - postService.createPost(request); + postService.createPost(request, EXPERIENCE); return new BaseResponse<>(SUCCESS); } catch (BaseException e) { return new BaseResponse<>(e.getStatus()); @@ -37,7 +36,6 @@ public BaseResponse createPost(@RequestHeader("Authorization") Long loginId, @RequestPart MultipartFile postImg, @RequestPart PostUploadReqDto request) { try { - request.setBoardType(EXPERIENCE); postService.createPost(request, postImg); return new BaseResponse<>(SUCCESS); } catch (BaseException e) { diff --git a/unibond/src/main/java/com/unibond/unibond/post/controller/QuestionPostController.java b/unibond/src/main/java/com/unibond/unibond/post/controller/QuestionPostController.java index 1a1c5cf..a71a286 100644 --- a/unibond/src/main/java/com/unibond/unibond/post/controller/QuestionPostController.java +++ b/unibond/src/main/java/com/unibond/unibond/post/controller/QuestionPostController.java @@ -22,8 +22,7 @@ public class QuestionPostController { public BaseResponse createPost(@RequestHeader("Authorization") Long loginId, @RequestBody PostUploadReqDto reqDto) { try { - reqDto.setBoardType(QNA); - postService.createPost(reqDto, null); + postService.createPost(reqDto, QNA); return new BaseResponse<>(SUCCESS); } catch (BaseException e) { return new BaseResponse<>(e.getStatus()); diff --git a/unibond/src/main/java/com/unibond/unibond/post/dto/PostUploadReqDto.java b/unibond/src/main/java/com/unibond/unibond/post/dto/PostUploadReqDto.java index 200e0ab..a566b61 100644 --- a/unibond/src/main/java/com/unibond/unibond/post/dto/PostUploadReqDto.java +++ b/unibond/src/main/java/com/unibond/unibond/post/dto/PostUploadReqDto.java @@ -4,38 +4,36 @@ import com.unibond.unibond.post.domain.BoardType; import com.unibond.unibond.post.domain.Post; import lombok.Data; +import lombok.NoArgsConstructor; +import static com.unibond.unibond.post.domain.BoardType.EXPERIENCE; import static com.unibond.unibond.post.domain.BoardType.QNA; @Data +@NoArgsConstructor public class PostUploadReqDto { private String content; - // null - private Member owner; - private BoardType boardType; - - public Post toEntity(Member owner, String postImgUrl) { - this.owner = owner; + public Post toEntity(Member owner, BoardType boardType, String postImgUrl) { if (boardType.equals(QNA)) { - return createQNAPost(); + return createQNAPost(owner); } else { - return createExperiencePost(postImgUrl); + return createExperiencePost(owner, postImgUrl); } } - private Post createQNAPost() { + private Post createQNAPost(Member owner) { return Post.createQnAPost() .owner(owner) - .boardType(boardType) + .boardType(QNA) .content(content) .build(); } - private Post createExperiencePost(String postImgUrl) { + private Post createExperiencePost(Member owner, String postImgUrl) { return Post.createExperiencePost() .owner(owner) - .boardType(boardType) + .boardType(EXPERIENCE) .content(content) .postImageUrl(postImgUrl) .build(); diff --git a/unibond/src/main/java/com/unibond/unibond/post/service/PostService.java b/unibond/src/main/java/com/unibond/unibond/post/service/PostService.java index 9951c75..62075b4 100644 --- a/unibond/src/main/java/com/unibond/unibond/post/service/PostService.java +++ b/unibond/src/main/java/com/unibond/unibond/post/service/PostService.java @@ -22,6 +22,7 @@ import org.springframework.web.multipart.MultipartFile; import static com.unibond.unibond.common.BaseResponseStatus.*; +import static com.unibond.unibond.post.domain.BoardType.EXPERIENCE; @Service @RequiredArgsConstructor @@ -34,10 +35,10 @@ public class PostService { private final CommentRepository commentRepository; @Transactional - public void createPost(PostUploadReqDto reqDto) throws BaseException { + public void createPost(PostUploadReqDto reqDto, BoardType boardType) throws BaseException { try { Member loginMember = loginInfoService.getLoginMember(); - Post newPost = reqDto.toEntity(loginMember, null); + Post newPost = reqDto.toEntity(loginMember, boardType, null); postRepository.save(newPost); } catch (BaseException e) { throw e; @@ -54,7 +55,7 @@ public void createPost(PostUploadReqDto reqDto, MultipartFile multipartFile) thr if (multipartFile != null) { imgUrl = s3Uploader.upload(multipartFile, "post"); } - Post newPost = reqDto.toEntity(loginMember, imgUrl); + Post newPost = reqDto.toEntity(loginMember, EXPERIENCE, imgUrl); postRepository.save(newPost); } catch (BaseException e) { throw e; diff --git a/unibond/src/main/resources/static/docs/experience-community.html b/unibond/src/main/resources/static/docs/experience-community.html index b0b5358..e5a3c42 100644 --- a/unibond/src/main/resources/static/docs/experience-community.html +++ b/unibond/src/main/resources/static/docs/experience-community.html @@ -454,12 +454,18 @@

Experience Community API

  • Response
  • -
  • Upload Posts on Experience Community +
  • Upload Posts on Experience Community- V1
  • +
  • Upload Posts on Experience Community- V2 + +
  • @@ -523,7 +529,7 @@

    Response

    HTTP/1.1 200 OK
     Content-Type: application/json;charset=UTF-8
    -Content-Length: 2451
    +Content-Length: 3082
     
     {
       "isSuccess" : true,
    @@ -531,13 +537,24 @@ 

    Response

    "message" : "요청에 성공하였습니다.", "result" : { "pageInfo" : { - "numberOfElements" : 3, + "numberOfElements" : 4, "lastPage" : true, "totalPages" : 1, - "totalElements" : 3, + "totalElements" : 4, "size" : 30 }, "postPreviewList" : [ { + "createdDate" : "2024-01-05T00:08:44.564552", + "ownerId" : 32, + "ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/0ee1ae29-e205-4107-9a4d-69ffa68e98ecmountaineers-5649828_640.jpg", + "ownerNick" : "건강렛츠고", + "disease" : "종양 괴사 인자 수용체와 관련된 주기성 증후군", + "postId" : 100, + "postImg" : null, + "contentPreview" : "전 정말 운동을 하면 할 수록 건강해지는 느낌이라 너무 좋습니다\uD83D\uDCAA\uD83C\uDFFB 다들 기분", + "boardType" : "EXPERIENCE", + "isEnd" : false + }, { "createdDate" : "2024-01-03T01:30:08.746334", "ownerId" : 27, "ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/ef3a45d1-4eb3-48a5-af19-92b0b42aee2bnight-1927265_640.jpg", @@ -549,14 +566,14 @@

    Response

    "boardType" : "EXPERIENCE", "isEnd" : false }, { - "createdDate" : "2024-01-03T01:13:39.116094", + "createdDate" : "2024-01-03T01:13:39.116", "ownerId" : 32, "ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/0ee1ae29-e205-4107-9a4d-69ffa68e98ecmountaineers-5649828_640.jpg", "ownerNick" : "건강렛츠고", "disease" : "종양 괴사 인자 수용체와 관련된 주기성 증후군", "postId" : 63, "postImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/post/4a57410a-75e4-40bb-9724-73d111dc8db5KakaoTalk_20240103_010050997.jpg", - "contentPreview" : "아무리 환자라도 공부할 건 해아죠ㅋㅋ\uD83D\uDE31 다들 시험 별로 안남으셨을 텐데 공부 잘", + "contentPreview" : "아무리 환자라도 공부할 건 해야겠죠..\uD83D\uDE34\uD83D\uDE34 다들 시험 별로 안 남으셨을 텐데 ", "boardType" : "EXPERIENCE", "isEnd" : false }, { @@ -700,16 +717,127 @@

    Response

    -

    Upload Posts on Experience Community

    +

    Upload Posts on Experience Community- V1

    -

    경험 기록 게시판에 게시물 업로드하기

    +

    경험 기록 게시판에 게시물 업로드하기 (v1)

    Request

    -
    $ http --multipart POST 'http://localhost:8080/api/v1/community/experience' \
    +
    POST /api/v1/community/experience HTTP/1.1
    +Content-Type: application/json;charset=UTF-8
    +Authorization: 29
    +Accept: application/json
    +Content-Length: 103
    +Host: localhost:8080
    +
    +{
    +  "content" : "안녕하세요 경험 공유 게시판 게시물을 업로드해보겠습니다."
    +}
    +
    +
    + ++++ + + + + + + + + + + + + +
    NameDescription

    Authorization

    Basic auth credentials

    + +++++ + + + + + + + + + + + + + + +
    PathTypeDescription

    content

    String

    경험 공유 게시판에 업로드 할 게시물의 내용

    +
    +
    +

    Response

    +
    +
    +
    HTTP/1.1 200 OK
    +Content-Type: application/json;charset=UTF-8
    +Content-Length: 95
    +
    +{
    +  "isSuccess" : true,
    +  "code" : 1000,
    +  "message" : "요청에 성공하였습니다."
    +}
    +
    +
    + +++++ + + + + + + + + + + + + + + + + + + + + + + + + +
    PathTypeDescription

    isSuccess

    Boolean

    성공 여부

    code

    Number

    결과 코드

    message

    String

    결과 메세지

    +
    +
    +
    +
    +

    Upload Posts on Experience Community- V2

    +
    +
    +

    경험 기록 게시판에 게시물 업로드하기 (v2)

    +
    +
    +

    Request

    +
    +
    +
    $ http --multipart POST 'http://localhost:8080/api/v2/community/experience' \
         'Authorization:29' \
         'postImg'@'test-img.jpg' \
         'request'@'request'
    @@ -717,7 +845,7 @@

    Request

    -
    $ curl 'http://localhost:8080/api/v1/community/experience' -i -X POST \
    +
    $ curl 'http://localhost:8080/api/v2/community/experience' -i -X POST \
         -H 'Content-Type: multipart/form-data;charset=UTF-8' \
         -H 'Authorization: 29' \
         -F 'postImg=@test-img.jpg;type=multipart/form-data' \
    @@ -801,7 +929,7 @@ 

    Request

    -

    Response

    +

    Response

    HTTP/1.1 200 OK
    @@ -853,7 +981,7 @@ 

    Response

    diff --git a/unibond/src/main/resources/static/docs/letter-rooms.html b/unibond/src/main/resources/static/docs/letter-rooms.html index 8fac522..b8f338b 100644 --- a/unibond/src/main/resources/static/docs/letter-rooms.html +++ b/unibond/src/main/resources/static/docs/letter-rooms.html @@ -519,17 +519,17 @@

    Response

    "message" : "요청에 성공하였습니다.", "result" : { "letterRoomList" : [ { + "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-09T02:30:19.901808", + "letterRoomId" : 19 + }, { "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-08T19:33:37.078678", "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" : "찍사", diff --git a/unibond/src/main/resources/static/docs/member.html b/unibond/src/main/resources/static/docs/member.html index c37a72e..086f2b9 100644 --- a/unibond/src/main/resources/static/docs/member.html +++ b/unibond/src/main/resources/static/docs/member.html @@ -500,7 +500,7 @@

    Request

    { "diseaseId" : 1, - "diseaseTiming" : "2024-01-08", + "diseaseTiming" : "2024-01-09", "gender" : "FEMALE", "nickname" : "안녕하세요닉네임", "bio" : "안녕하세요 한 줄 소개 작성합니다.", @@ -563,7 +563,7 @@

    Response

    "isSuccess" : true, "code" : 1000, "message" : "요청에 성공하였습니다.", - "result" : 68 + "result" : 75 }
    @@ -690,7 +690,7 @@

    Response

    "profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg", "nickname" : "병원장", "gender" : "MALE", - "diseaseName" : "포도당 수송자 1 결핍증", + "diseaseName" : "피어슨 증후군[Pierson syndrome]", "diagnosisTiming" : "2002-06-27", "bio" : "새로운 신약 병원 정보 환영합니다.", "interestList" : [ "유전자", "문화생활", "복지", "운동" ] @@ -856,23 +856,34 @@

    Response

    "profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg", "nickname" : "병원장", "gender" : "MALE", - "diseaseName" : "포도당 수송자 1 결핍증", + "diseaseName" : "피어슨 증후군[Pierson syndrome]", "diagnosisTiming" : "2002-06-27", "bio" : "새로운 신약 병원 정보 환영합니다.", "interestList" : [ "유전자", "문화생활", "복지", "운동" ], "pageInfo" : { - "numberOfElements" : 1, + "numberOfElements" : 2, "lastPage" : true, "totalPages" : 1, - "totalElements" : 1, + "totalElements" : 2, "size" : 30 }, "postPreviewList" : [ { + "createdDate" : "2024-01-08T02:18:05.209", + "ownerId" : 29, + "ownerProfileImg" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/f4113115-ee23-4a14-8a47-861b5aa7fdecdog-4586317_640.jpg", + "ownerNick" : "병원장", + "disease" : "피어슨 증후군[Pierson syndrome]", + "postId" : 103, + "postImg" : null, + "contentPreview" : "qna test", + "boardType" : "QNA", + "isEnd" : true + }, { "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" : "포도당 수송자 1 결핍증", + "disease" : "피어슨 증후군[Pierson syndrome]", "postId" : 60, "postImg" : null, "contentPreview" : "급하게 친구들끼리 여행을 가게 될 일이 생겼어요. 사실 이동하는 게 많이 어려워서", @@ -1436,7 +1447,7 @@

    Response

    "code" : 1000, "message" : "요청에 성공하였습니다.", "result" : { - "profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/00f348b2-0669-4007-a6ff-6e4129b71023test_profile_img.jpg", + "profileImage" : "https://unibond-img-bucket.s3.ap-northeast-2.amazonaws.com/user/2e8f7688-1c73-45da-b3b3-fa6189ec8f35test_profile_img.jpg", "nickname" : "병원장", "gender" : "MALE", "diseaseName" : "1번 염색체 장완 21.3 부분의 미세결손 증후군", diff --git a/unibond/src/main/resources/static/docs/question-community.html b/unibond/src/main/resources/static/docs/question-community.html index 5b80b1b..c9185c5 100644 --- a/unibond/src/main/resources/static/docs/question-community.html +++ b/unibond/src/main/resources/static/docs/question-community.html @@ -6,7 +6,7 @@ -Experience Community API +Q&A Community API