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: 관리자 뉴스 히스토리 조회 #101

Open
Hamiwood opened this issue Dec 26, 2024 · 0 comments
Open

feat: 관리자 뉴스 히스토리 조회 #101

Hamiwood opened this issue Dec 26, 2024 · 0 comments
Assignees
Labels
🧑‍💻feature 기능 구현

Comments

@Hamiwood
Copy link
Contributor

🔎 작업 내용

  • 관리자가 여러 조건으로 뉴스 히스토리를 조회합니다
  • 기본 20개를 한 페이지로 구성하여 페이지네이션을 설정합니다.
  • 조회 테스트를 실행합니다.

✔️ url

GET api/news-history?userId=1&newsId=1&createdAt=2024-12-04

✅ Header

Authorization: Bearer {token}

✅ Request Body

✅ Response Body

{
"status" 200,
"message" : "관리자 뉴스 히스토리 조회 성공",
"data" : {
   "contents": [ {
  "createdAt" : 2024-12-04,
  "modifiedAt" : 2024-12-04,
  "userId" : 1,
  "newsId" : 1
  }, { ... }, { ... } ],
   "page": 3,
   "size": 20,
   "totalPages": 32
 }
}

⚠️예외 처리

  • 403 관리자 외에는 접근할 수 없도록 합니다.

⏰ 예상 기한

  • 2024-12-26
@Hamiwood Hamiwood self-assigned this Dec 26, 2024
@Hamiwood Hamiwood added the 🧑‍💻feature 기능 구현 label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧑‍💻feature 기능 구현
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant