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] 일기 조회 기능 수정 #53

Merged
merged 2 commits into from
Apr 14, 2024
Merged

Conversation

crHwang0822
Copy link
Member

작업 내용

  • 일기 조회 기능 응답 포맷 변경
    • 기존 응답 → 작성자의 memberId 반환
    {
      "total": 2,
      "unsent": [
        {
          "entryID": 13,
          "writer": "user1",
          "date": "2024-03-27 16:08:34",
          "content": "일기 텍스트..."
        }
      ],
      "sent": [
        {
          "entryID": 11,
          "writer": "user1",
          "sendAt": "2024-03-31 00:26:58",
          "content": "수정된 일기"
        },
        {
          "entryID": 12,
          "writer": "user1",
          "sendAt": "2024-03-31 00:27:22",
          "content": "일기 텍스트..."
        }
      ]
    }
    
    • 변경 후 응답 → 작성자의 nickname 반환
    {
      "total": 1,
      "unsent": [
        {
          "entryID": 2,
          "writerName": "반짝이는 마녀",
          "updatedAt": "2024-04-14 14:28:29",
          "content": "답장 보내여"
        }
      ],
      "sent": [
        {
          "entryID": 1,
          "writerName": "반짝이는 마녀",
          "sendAt": "2024-04-14 14:28:36",
          "content": "string"
        }
      ]
    }
    
  • 데이터베이스 칼럼명 변경 ex. memberid → member_id

기타

데이터베이스 스키마가 변경돼서 한번 데이터베이스 드롭했다가 실행하는 게 좋을 것 같아유

@crHwang0822 crHwang0822 merged commit ca0f48f into develop Apr 14, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant