You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
711 B
29 lines
711 B
package club.pojo;
|
|
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import lombok.Data;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.util.Date;
|
|
|
|
|
|
@Data
|
|
public class Answer {
|
|
private Integer id;
|
|
private Integer userId;
|
|
private Integer replayId;
|
|
private Integer commentId;
|
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
|
private Date answerTime;
|
|
private String content;
|
|
|
|
@TableField(exist = false)
|
|
private User user;
|
|
@TableField(exist = false)
|
|
private Answer answer;
|
|
@TableField(exist = false)
|
|
private Comment comment;
|
|
|
|
}
|