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

import com.hotwj.platform.resourceManagement.companyPolicy.domain.HotCompanyPolicy;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 公司制度资料档案业务对象 hot_company_policy
 *
 * @author shihongwei
 * @date 2025-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotCompanyPolicy.class, reverseConvertGenerate = false)
public class HotCompanyPolicyBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 公司ID
     */
    @NotNull(message = "公司ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long companyId;

    /**
     * 制度名称
     */
    @NotBlank(message = "制度名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String policyTitle;

    /**
     * 制度类型
     */
    @NotBlank(message = "制度类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String policyType;

    /**
     * 附件URL(docx,pdf)
     */
    private String attachmentUrl;

    /**
     * 制度内容(修改正后内容)HTML(富文本)
     */
    private String contentHtml;

    /**
     * 修正前内容
     */
    private String correctionHtml;

    /**
     * 0=未发布, 1=已发布
     */
    @NotNull(message = "0=未发布, 1=已发布不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isPublished;

    /**
     * 排序号
     */
//    @NotNull(message = "排序号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;

    /**
     * 0=正常, 1=已删除
     */
//    @NotNull(message = "0=正常, 1=已删除不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isDeleted;


}
