Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/api-specs/comments-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- 관점에서의 댓글 관련한 API 입니다.
- 대댓글은 존재하지 않고 같은 최상위 뎁스의 댓글만 존재합니다.
- 의견·댓글 작성 및 수정 시 본문은 1~200자여야 합니다. 초과하면 400 `PERSPECTIVE_400_LEN`입니다.

---

Expand Down Expand Up @@ -262,4 +263,4 @@
|------------|:-----------:|-----------|
| `COMMENT_NOT_FOUND` | `404` | 존재하지 않는 댓글 |
| `COMMENT_FORBIDDEN` | `403` | 본인 댓글 아님 |
---
---
1 change: 1 addition & 0 deletions docs/api-specs/perspectives-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- 관점 API 입니다.
- 현재 Creator 뱃지 부분이 ERD 상에선 보이지 않는데 확인 필요
- 의견·댓글 본문은 서버에서 최대 200자로 검증합니다.

### 관점 상태(status) 흐름

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.swyp.picke.domain.perspective.dto.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

public record CreateCommentRequest(
@NotBlank
@Size(max = 200)
String content
) {}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.swyp.picke.domain.perspective.dto.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

public record CreatePerspectiveRequest(
@NotBlank
@Size(max = 200)
String content
) {}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.swyp.picke.domain.perspective.dto.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

public record UpdateCommentRequest(
@NotBlank
@Size(max = 200)
String content
) {}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.swyp.picke.domain.perspective.dto.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

public record UpdatePerspectiveRequest(
@NotBlank
@Size(max = 200)
String content
) {}
Loading