package com.hotwj.platform.resourceManagement.companyPolicy.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.hotwj.platform.resourceManagement.companyPolicy.domain.HotCompanyPolicy;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

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


/**
 * 公司制度资料档案视图对象 hot_company_policy
 *
 * @author shihongwei
 * @date 2025-12-10
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotCompanyPolicy.class)
public class HotCompanyPolicyVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "排序", index = 0)
    private Integer sort;

    private Long id;
    private Long companyId;

    /**
     * 制度名称
     */
    @ExcelProperty(value = "制度名称", index = 1)
    private String policyTitle;

    private String attachmentUrl;

    private String contentHtml;

    /**
     * 是否发布
     */
    @ExcelProperty(value = "是否发布", index = 2, converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private Long isPublished;

    /**
     * 制度类型
     */
    private String policyType;

    private Long isDeleted;

    private Date createTime;

    /**
     * 排序号
     */
    @ExcelProperty(value = "排序号")
    private Long orderNum;
}
