package com.gxwebsoft.oa.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 消息记录表
 *
 * @author 科技小王子
 * @since 2023-03-22 14:07:26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Notice对象", description = "消息记录表")
@TableName("oa_notice")
public class Notice implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "notice_id", type = IdType.AUTO)
    private Integer noticeId;

    @ApiModelProperty(value = "消息类型")
    private String type;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "颜色")
    private String color;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "消息来源")
    private String source;

    @ApiModelProperty(value = "来源记录ID")
    private Integer sourceId;

    @ApiModelProperty(value = "路由地址")
    private String path;

    @ApiModelProperty(value = "代币")
    private Long tokens;

    @ApiModelProperty(value = "是否已查阅")
    private Integer isRead;

    @ApiModelProperty(value = "渠道, 0发送 1回复")
    private Integer channel;

    @ApiModelProperty(value = "任务状态")
    private Integer progress;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "状态, 0待处理, 1已完成")
    private Integer status;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "注册时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "开发者名称")
    @TableField(exist = false)
    private String nickname;

    @ApiModelProperty(value = "开发者头像")
    @TableField(exist = false)
    private String avatar;

}
