package com.amms.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 公告对象 announcement
 */
public class Announcement {

    /** 公告id */
    private Long id;

    /** 标题 */
    private String title;

    /** 内容 */
    private String content;

    /** 置顶标识（0否 1是） */
    private Long isTop;

    /** 状态（0隐藏 1显示） */
    private Long status;

    /** 发布者id */
    private Long creator;

    /** 更新者id */
    private Long updater;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setIsTop(Long isTop) {
        this.isTop = isTop;
    }

    public Long getIsTop() {
        return isTop;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }


    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public Long getCreator() {
        return creator;
    }


    public void setUpdater(Long updater) {
        this.updater = updater;
    }

    public Long getUpdater() {
        return updater;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Announcement{" +
            "id=" + id +
            ", title=" + title +
            ", content=" + content +
            ", isTop=" + isTop +
            ", status=" + status +
            ", createTime=" + createTime +
            ", creator=" + creator +
            ", updateTime=" + updateTime +
            ", updater=" + updater +
        '}';
    }
}
