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

import com.alibaba.excel.annotation.ExcelProperty;
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 RecordPermissionSaveReqVO {

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

    @Schema(description = "父id", example = "8883")
    private Long parentId;

    @Schema(description = "记录类型", example = "1")
    private String sourceType;

    @Schema(description = "记录id", example = "1104")
    private Long sourceId;

    @Schema(description = "授权类型", example = "1")
    @NotEmpty(message = "授权类型不能为空")
    private String targetType;

    @Schema(description = "授权对象", example = "9264")
    @NotEmpty(message = "授权对象不能为空")
    private String targetId;

    @Schema(description = "授权对象名称", example = "普通角色")
    private String targetName;

    @Schema(description = "权限类型")
    @NotEmpty(message = "权限类型不能为空")
    private String permission;

    @Schema(description = "密级")
    private String confidentialLevel;

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

    @Schema(description = "过期日期")
    private LocalDateTime expirationDate;

    @Schema(description = "过期标识,0-有效，1-过期", example = "1")
    private String expirationStatus;

    @Schema(description = "作废标识,0-有效，1-作废")
    private String cancelFlag;

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

//    @Schema(description = "保留结束日期")
//    private LocalDateTime saveEndDate;

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

    @Schema(description = "生效日期")
    private LocalDateTime effectiveDate;

    @Schema(description = "申请类型")
    private LocalDateTime applyType;

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

}