package com.zt.plat.module.qms.resource.record.controller.admin.recordpermission.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 org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 记录权限 Response VO")
@Data
@ExcelIgnoreUnannotated
public class RecordPermissionRespVO {

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

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

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

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

    @Schema(description = "授权类型", example = "1")
    @ExcelProperty("授权类型")
    private String targetType;

    @Schema(description = "授权对象", example = "9264")
    @ExcelProperty("授权对象")
    private String targetId;

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

    @Schema(description = "权限类型")
    @ExcelProperty("权限类型")
    @Dict(dicCode = "file_record_permission type")
    private String permission;

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

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

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

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

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


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

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

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

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

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

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

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}