package com.zksy.system.basicData.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.zksy.common.utils.file.ExcelExport;
import com.zksy.common.utils.file.ExcelImport;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * 新闻发布对象 crm_news_release
 *
 * @author sy
 * @date 2024-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("crm_news_release")
@ApiModel(value = "新闻发布")
public class CrmNewsRelease extends Model<CrmNewsRelease> {

private static final long serialVersionUID=1L;

@ApiModelProperty(value = "主键")
    /** 主键 */
        @TableId(type = IdType.AUTO)
    private Long id;

@ApiModelProperty(value = "标题")
    /** 标题 */
                @ExcelImport(value = "标题")
                @ExcelExport(value = "标题")
    private String title;

@ApiModelProperty(value = "专栏")
    /** 专栏 */
                @ExcelImport(value = "专栏")
                @ExcelExport(value = "专栏")
    private String specialColumn;

@ApiModelProperty(value = "发布时间")
    /** 发布时间 */
                @ExcelImport(value = "发布时间")
                @ExcelExport(value = "发布时间")
    private Date date;

@ApiModelProperty(value = "内容")
    /** 内容 */
                @ExcelImport(value = "内容")
                @ExcelExport(value = "内容")
    private String content;

    @ApiModelProperty(value = "数据来源")
    /** 内容 */
    @ExcelImport(value = "数据来源")
    @ExcelExport(value = "数据来源")
    private String dataSource;

    @ApiModelProperty(value = "创建者")
    private String createBy;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新者")
    private String updateBy;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @TableField(exist = false)
    private List<CrmFile> files;

        }
