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

import com.zt.plat.module.qms.core.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 文件记录通用申请明细新增/修改 Request VO")
@Data
public class RecordApplyDetailSaveReqVO {

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

    @Schema(description = "父id", example = "28812")
    private Long applyId;

    @Schema(description = "授权类型")
    private String targetType;

    @Schema(description = "授权名称")
    private String targetName;

    @Schema(description = "文件id", example = "3188")
    private Long documentId;

    @Schema(description = "授权Id")
    private Long targetId;

    @Schema(description = "是否需要更改")
    @Dict(dicCode = "yes_or_no")
    private Integer isModify;

    @Schema(description = "更改原因")
    private String modifyCause;

    @Schema(description = "是否保留")
    private String saveFlag;

    @Schema(description = "结束日期")
    private LocalDateTime endDate;

    private String formData;

    @Schema(description = "是否长期有效")
    private String permanently;

    @Schema(description = "开始日期")
    private LocalDateTime applyStartDate;

    @Schema(description = "截止日期")
    private LocalDateTime applyEndDate;

    @Schema(description = "排序号")
    private String sortNo;

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

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

    @Schema(description = "分发号")
    private String assignCode;

    @Schema(description = "分发编号")
    private String assignId;

    //================================

}