package org.dromara.personnel.domain.bo;

import org.dromara.personnel.domain.OpsUserFiles;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 运维人员文件业务对象 ops_user_files
 *
 * @author LionLi
 * @date 2025-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsUserFiles.class, reverseConvertGenerate = false)
public class OpsUserFilesBo extends BaseEntity {

    /**
     * 运维人员id
     */
    private Long opsUserId;

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

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

    /**
     * 文件类型（1、特种作业证图片）
     */
    @NotBlank(message = "文件类型（1、特种作业证图片）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileType;


}
