Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/170 유저별 일기 페이징 api 구현 #171

Merged
merged 1 commit into from
Aug 2, 2024
Merged

feat/170 유저별 일기 페이징 api 구현 #171

merged 1 commit into from
Aug 2, 2024

Conversation

rvbear
Copy link
Contributor

@rvbear rvbear commented Aug 2, 2024

PR type

  • Bug fix
  • Feature
  • Refactor
  • Chore

💻 작업사항

  • 유저별 일기 페이징 기능 구현

API Docs

Request

/diary/user?userId=2&page=1&pageSize=2

Response

totalDataSize : Integer (전체 데이터의 개수)
totalPage : Integer (전체 페이지 수)
hasNext : Boolean (다음 페이지 있는지 여부)
hasPrevious : Boolean (이전 페이지 있는지 여부)
currentPage : Integer (현재 페이지)
dataSize : Integer (페이지별 데이터 개수)
diaryList : [ diary : diaryInfo(*) ]

{
  "isSuccess": true,
  "message": "OK",
  "result": {
    "totalDataSize": 8,
    "totalPage": 4,
    "hasNext": true,
    "hasPrevious": false,
    "currentPage": 1,
    "dataSize": 2,
    "diaryList": [
      {
        "diaryId": 1,
        "title": "string",
        "createDate": "2024-08-01",
        "content": "string",
        "imgUrl": null
      },
      {
        "diaryId": 2,
        "title": "string",
        "createDate": "2024-07-31",
        "content": "string",
        "imgUrl": null
      }
    ]
  }

💡 작성한 이슈 외에 작업한 사항

  • X

✔️ check list

  • 작성한 이슈의 내용을 전부 적용했나요?
  • 리뷰어를 등록했나요?

@rvbear rvbear added the feat feat label Aug 2, 2024
@rvbear rvbear self-assigned this Aug 2, 2024
@rvbear rvbear linked an issue Aug 2, 2024 that may be closed by this pull request
1 task
@rvbear rvbear requested a review from Leewonchan14 August 2, 2024 09:40
@rvbear rvbear merged commit 5518754 into develop Aug 2, 2024
1 check passed
rvbear added a commit that referenced this pull request Aug 2, 2024
* [fix] 이메일 작성시  max_length를 20에서 100으로 변경

* [refactor] 변수 naming을 camelCase에서 snake_case로 변경

* [fix] api 명세와 변수명 통일화

* [chore] env 서브 모듈 추가 (#165)

* [feat] 유저 관련 로직 수정 (#163)

* [feat] 유저 관련 로직 수정

* [feat] /join -> /signup, pass_word -> password, user_name -> username

* [feat] test_data 전역 상태로 관리

* [feat] 변경된 model에 따라 test code 수정

* [refactor] camelCase 변환 메소드 분리

* [refactor] test_data를 model과 같은 곳에 위치

* [refactor] UserSerializer -> UserSafeSerializer

* [fix] 오류 핸들링 처리 추가

* [feat] 치매 진단 관련 API 구현 (#167)

* [feat] diag app 생성

* [chore] diag app 세팅

* [refactor] user와 diag 분리

* [feat] 설문 관련 api 기능 구현

* [feat] validation check 추가

* [feat] test code 작성

* [feat] total_question_size 제거

* [feat] 요소별 유효성 검증 추가

* [feat] celery 연동하여 이미지 생성 (#169)

* [feat] celery 연동

* [feat] celery 동작

* [feat] celery와 image 연동 완료

* [feat] taskId를 사용하여 작업내용 불러오기 기능 구현 완료

* [refactor] 불필요한 코드 제거

* [feat] docker-compose 파일 업데이트

* [fix] api key가 blank일 때 오류 수정

* [fix] 잘못 건드린 setting 되돌려놓기

* [feat] 유저별 일기 페이징 api 구현 (#171)

---------

Co-authored-by: Won Chan Lee <[email protected]>
rvbear added a commit that referenced this pull request Aug 9, 2024
* [fix] 이메일 작성시  max_length를 20에서 100으로 변경

* [refactor] 변수 naming을 camelCase에서 snake_case로 변경

* [fix] api 명세와 변수명 통일화

* [chore] env 서브 모듈 추가 (#165)

* [feat] 유저 관련 로직 수정 (#163)

* [feat] 유저 관련 로직 수정

* [feat] /join -> /signup, pass_word -> password, user_name -> username

* [feat] test_data 전역 상태로 관리

* [feat] 변경된 model에 따라 test code 수정

* [refactor] camelCase 변환 메소드 분리

* [refactor] test_data를 model과 같은 곳에 위치

* [refactor] UserSerializer -> UserSafeSerializer

* [fix] 오류 핸들링 처리 추가

* [feat] 치매 진단 관련 API 구현 (#167)

* [feat] diag app 생성

* [chore] diag app 세팅

* [refactor] user와 diag 분리

* [feat] 설문 관련 api 기능 구현

* [feat] validation check 추가

* [feat] test code 작성

* [feat] total_question_size 제거

* [feat] 요소별 유효성 검증 추가

* [feat] celery 연동하여 이미지 생성 (#169)

* [feat] celery 연동

* [feat] celery 동작

* [feat] celery와 image 연동 완료

* [feat] taskId를 사용하여 작업내용 불러오기 기능 구현 완료

* [refactor] 불필요한 코드 제거

* [feat] docker-compose 파일 업데이트

* [fix] api key가 blank일 때 오류 수정

* [fix] 잘못 건드린 setting 되돌려놓기

* [feat] 유저별 일기 페이징 api 구현 (#171)

* Fix/153 이미지 요청시 500 Error 수정 (#173)

* [fix] s3 연동할 때 500 error 방지

* [feat] bulk 요청 api 기능 구현

* [fix] 설문 오타 수정

---------

Co-authored-by: Won Chan Lee <[email protected]>
Leewonchan14 added a commit that referenced this pull request Aug 13, 2024
* [fix] 이메일 작성시  max_length를 20에서 100으로 변경

* [refactor] 변수 naming을 camelCase에서 snake_case로 변경

* [fix] api 명세와 변수명 통일화

* [chore] env 서브 모듈 추가 (#165)

* [feat] 유저 관련 로직 수정 (#163)

* [feat] 유저 관련 로직 수정

* [feat] /join -> /signup, pass_word -> password, user_name -> username

* [feat] test_data 전역 상태로 관리

* [feat] 변경된 model에 따라 test code 수정

* [refactor] camelCase 변환 메소드 분리

* [refactor] test_data를 model과 같은 곳에 위치

* [refactor] UserSerializer -> UserSafeSerializer

* [fix] 오류 핸들링 처리 추가

* [feat] 치매 진단 관련 API 구현 (#167)

* [feat] diag app 생성

* [chore] diag app 세팅

* [refactor] user와 diag 분리

* [feat] 설문 관련 api 기능 구현

* [feat] validation check 추가

* [feat] test code 작성

* [feat] total_question_size 제거

* [feat] 요소별 유효성 검증 추가

* [feat] celery 연동하여 이미지 생성 (#169)

* [feat] celery 연동

* [feat] celery 동작

* [feat] celery와 image 연동 완료

* [feat] taskId를 사용하여 작업내용 불러오기 기능 구현 완료

* [refactor] 불필요한 코드 제거

* [feat] docker-compose 파일 업데이트

* [fix] api key가 blank일 때 오류 수정

* [fix] 잘못 건드린 setting 되돌려놓기

* [feat] 유저별 일기 페이징 api 구현 (#171)

* Fix/153 이미지 요청시 500 Error 수정 (#173)

* [fix] s3 연동할 때 500 error 방지

* [feat] bulk 요청 api 기능 구현

* [fix] 설문 오타 수정

* fix/175 일기 이미지 여부 추가 (#176)

* [fix] 일기 이미지 여부 추가

* [fix] keyword imgUrl이 전부 None이 아니면 True로 변경

---------

Co-authored-by: rvbear <[email protected]>
Co-authored-by: KyungMin_Kim <[email protected]>
@Leewonchan14 Leewonchan14 deleted the feat/170 branch August 13, 2024 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat feat
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 일기 페이징 API 구현
2 participants