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

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.hotwj.platform.noticeManagerment.lawRegulation.domain.HotLawRegulation;
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_law_regulation
 *
 * @author shihongwei
 * @date 2026-01-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotLawRegulation.class)
public class HotLawRegulationVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

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

    /**
     * 制度名称
     */
    @ExcelProperty(value = "制度名称")
    private String ruleName;

    /**
     * 制度类型
     */
    @ExcelProperty(value = "制度类型")
    private Long ruleType;

    /**
     * 附件URL
     */
    @ExcelProperty(value = "附件URL")
    private String attachmentUrl;

    /**
     * 制度内容（富文本，附件优先展示）
     */
    @ExcelProperty(value = "制度内容", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "富=文本，附件优先展示")
    private String content;

    /**
     * 是否发布
     */
    @ExcelProperty(value = "是否发布")
    private Long isPublished;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Long sortno;

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

    private Date createTime;

}
