package com.hotwj.platform.noticeManagerment.companyNotice.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.hotwj.platform.noticeManagerment.companyNotice.domain.HotCompanyNotice;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 公司公告视图对象 hot_company_notice
 *
 * @author shihongwei
 * @date 2026-01-07
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotCompanyNotice.class)
public class HotCompanyNoticeVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 公司ID
     */
    @ExcelProperty(value = "公司ID")
    private Long companyId;

    /**
     * 新闻类型（company=企业，head=总部）
     */
    @ExcelProperty(value = "新闻类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "c=ompany=企业，head=总部")
    private Long noticeType;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 作者
     */
    @ExcelProperty(value = "作者")
    private String author;

    /**
     * 封面图URL
     */
    @ExcelProperty(value = "封面图URL")
    private String coverImage;

    /**
     * 封面图URLUrl
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "coverImage")
    private String coverImageUrl;
    /**
     * 公告内容（富文本）
     */
    @ExcelProperty(value = "公告内容", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "富=文本")
    private String content;

    /**
     * 排序值，越大越靠前
     */
    @ExcelProperty(value = "排序值，越大越靠前")
    private Long sortNo;

    /**
     * 是否置顶：0=否 1=是
     */
    @ExcelProperty(value = "是否置顶：0=否 1=是")
    private Long isTop;

    /**
     * 是否发布：0=未发布 1=已发布
     */
    @ExcelProperty(value = "是否发布：0=未发布 1=已发布")
    private Long isPublished;

    /**
     * 0=正常, 1=已删除
     */
    @ExcelProperty(value = "0=正常, 1=已删除")
    private Long isDeleted;

    private Date createTime;

}
