NoticeVO.java 650 B

12345678910111213141516171819202122232425262728
  1. package nju.seec.helper.vo;
  2. import lombok.Data;
  3. import nju.seec.helper.entity.Notice;
  4. import java.time.LocalDateTime;
  5. /**
  6. * @author cst
  7. */
  8. @Data
  9. public class NoticeVO {
  10. private Long id;
  11. private Long courseId;
  12. private String title;
  13. private String content;
  14. private LocalDateTime createAt;
  15. private LocalDateTime updateAt;
  16. public NoticeVO(Notice notice) {
  17. this.id = notice.getId();
  18. this.courseId = notice.getCourseId();
  19. this.title = notice.getTitle();
  20. this.content = notice.getContent();
  21. this.createAt = notice.getCreateAt();
  22. this.updateAt = notice.getUpdateAt();
  23. }
  24. }