package org.dromara.personnel.domain.bo;

import org.dromara.personnel.domain.OpsCaigouPlanFiles;
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_caigou_plan_files
 *
 * @author LionLi
 * @date 2025-09-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsCaigouPlanFiles.class, reverseConvertGenerate = false)
public class OpsCaigouPlanFilesBo extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 采购申请计划id
     */
//    @NotNull(message = "采购申请计划id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long caigouPlanId;

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

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

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


}
