mirror of https://github.com/bvn13/VoidForum.git
36 lines
745 B
Java
36 lines
745 B
Java
package ru.bvn13.voidforum.forms;
|
|
|
|
import lombok.Data;
|
|
import ru.bvn13.voidforum.models.Comment;
|
|
import ru.bvn13.voidforum.models.Post;
|
|
import ru.bvn13.voidforum.models.User;
|
|
import ru.bvn13.voidforum.models.support.CommentFormat;
|
|
|
|
import javax.validation.constraints.NotEmpty;
|
|
import javax.validation.constraints.NotNull;
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
* Created by bvn13 on 08.12.2017.
|
|
*/
|
|
@Data
|
|
public class CommentForm implements Serializable {
|
|
|
|
@NotNull
|
|
private Long postId;
|
|
|
|
private Long parentCommentId;
|
|
|
|
@NotEmpty
|
|
private String content;
|
|
|
|
private String renderedContent;
|
|
|
|
@NotNull
|
|
private CommentFormat commentFormat = CommentFormat.MARKDOWN;
|
|
|
|
@NotNull
|
|
private Boolean deletedMark = false;
|
|
|
|
}
|