mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-09 08:30:55 +08:00
34 lines
733 B
Java
34 lines
733 B
Java
package com.openisle.dto;
|
|
|
|
import lombok.Data;
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.util.List;
|
|
|
|
import com.openisle.model.PostType;
|
|
|
|
/**
|
|
* 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;
|
|
|
|
// optional for lottery posts
|
|
private PostType type;
|
|
private String prizeDescription;
|
|
private String prizeIcon;
|
|
private Integer prizeCount;
|
|
private Integer pointCost;
|
|
private LocalDateTime startTime;
|
|
private LocalDateTime endTime;
|
|
// fields for poll posts
|
|
private List<String> options;
|
|
private Boolean multiple;
|
|
}
|
|
|