io.github.pojo.vo.NoticeVO Maven / Gradle / Ivy
The newest version!
package io.github.pojo.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.github.constant.TimeConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NoticeVO {
private String noticeId;
private String title;
private String author;
private String content;
private String cover;
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
@JsonSerialize(using = LocalDateTimeSerializer.class)
@JsonFormat(pattern = TimeConstant.YMD_HMS, timezone = "GMT+8")
private LocalDateTime createAt;
private Integer likeNum;
private Integer watchNum;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy