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

import com.hotwj.platform.resourceManagement.companyLaborContract.domain.HotCompanyLaborContract;
import io.github.linpeilie.annotations.AutoMapper;
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;

import java.util.Date;

/**
 * 公司劳动合同业务对象 hot_company_labor_contract
 *
 * @author shihongwei
 * @date 2025-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotCompanyLaborContract.class, reverseConvertGenerate = false)
public class HotCompanyLaborContractBo extends BaseEntity {

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

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

    /**
     * 安全管理人员ID
     */
    @NotNull(message = "安全管理人员ID不能为空", groups = {AddGroup.class})
    private Long safeUserId;



    /**
     * 生效日期
     */
    @NotNull(message = "生效日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date effectiveDate;

    /**
     * 截至日期
     */
    @NotNull(message = "截至日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date expireDate;

    /**
     * 图片附件URL(多个用逗号分隔)
     */
    private String imageUrls;

    /**
     * 备注
     */
    private String remark;

    /**
     * 0=未归档, 1=已归档
     */
    private Long isArchived;

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


}
