package com.agileboot.system.notice.dto;

import com.agileboot.system.notice.entity.SysNotice;
import lombok.Data;

import java.util.Date;

/**
 * @author valarchie
 */
@Data
public class NoticeVO {

    public NoticeVO(SysNotice entity) {
        if (entity != null) {
            this.noticeId = entity.getNoticeId() + "";
            this.noticeTitle = entity.getNoticeTitle();
            this.noticeType = entity.getNoticeType();
            this.noticeContent = entity.getNoticeContent();
            this.status = entity.getStatus();
            this.createTime = entity.getCreateTime();
            this.creatorName = entity.getSearchValue();
        }
    }

    private String noticeId;

    private String noticeTitle;

    private Integer noticeType;

    private String noticeContent;

    private Integer status;

    private Date createTime;

    private String creatorName;

}
