package com.yunyan.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.yunyan.common.annotation.Excel;

import com.yunyan.common.core.domain.BaseEntity;
import com.yunyan.common.core.domain.BaseEntityVo;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Builder;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;


/**
 * 敏感词管理对象 tb_alert_word
 *
 * @author yunyan
 * @date 2023-07-27
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName(value = "tb_alert_word")
public class AlertWord extends BaseEntityVo
{
    private static final long serialVersionUID = 1L;

    /** ID主键 */
    @JsonSerialize(using= ToStringSerializer.class)
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "ID主键")
    private Long id;

    /** 名词解释标题 */
    @ApiModelProperty(value = "名词解释标题")
    private String title;

    /** (废弃，不用)显示顺序(升序) */
    @ApiModelProperty(value = "(废弃，不用)显示顺序(升序)")
    private Integer orderNum;

    /** 状态: 1-启用(默认), 0-停用 */
    @ApiModelProperty(value = "状态: 1-启用(默认), 0-停用")
    private Integer status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /** 创建者 */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建者")
    private String createBy;

    /** 更新者 */
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    /** 逻辑删除(1-删除，0-未删) */
            //逻辑删除（就是在delete字段做标记，不是真正意义上的删除）
    @JsonIgnore
    @TableLogic(value = "0",delval = "1")
    @TableField(select = false)
    @ApiModelProperty(value = "逻辑删除(1-删除，0-未删)")
    private Integer deleted;



}
