package com.zt.plat.module.qms.resource.record.controller.admin.recordRelation.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 文件记录关系新增/修改 Request VO")
@Data
public class RecordRelationSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "28532")
    private String id;

    @Schema(description = "文件记录id", requiredMode = Schema.RequiredMode.REQUIRED, example = "30001")
    @NotNull(message = "文件记录id不能为空")
    private Long rcdId;

    @Schema(description = "目标对象id", requiredMode = Schema.RequiredMode.REQUIRED, example = "16509")
    @NotNull(message = "目标对象id不能为空")
    private Long tgtId;

    @Schema(description = "目标对象类型,业务类型：设备、物料试剂、原始记录等", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "目标对象类型,业务类型：设备、物料试剂、原始记录等不能为空")
    private String tgtTp;

    @Schema(description = "所属部门")
    private String sysDeptCd;

    @Schema(description = "备注")
    private String rmk;

}