mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-20 22:11:01 +08:00
refactor: extract post dtos
This commit is contained in:
18
backend/src/main/java/com/openisle/dto/PostRequest.java
Normal file
18
backend/src/main/java/com/openisle/dto/PostRequest.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package com.openisle.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Request body for creating or updating a post.
|
||||
*/
|
||||
@Data
|
||||
public class PostRequest {
|
||||
private Long categoryId;
|
||||
private String title;
|
||||
private String content;
|
||||
private List<Long> tagIds;
|
||||
private String captcha;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user