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

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.module.infra.api.businessfile.dto.BusinessFileWithUrlRespDTO;
import com.zt.plat.module.qms.core.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 文件、模板、记录 Response VO")
@Data
@ExcelIgnoreUnannotated
public class RecordJoinPermissionRespVO extends RecordRecordRespVO{
    @Schema(description = "权限ID")
    @ExcelProperty("权限ID")
    private Long permId;

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

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

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

    @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 LocalDateTime permExpirationDate;

    @Schema(description = "过期标识,0-有效，1-过期", example = "1")
    @ExcelProperty("过期标识,0-有效，1-过期")
    @Dict(dicCode = "yes_or_no")
    private Integer permExpirationStatus;

    @Schema(description = "权限作废标志,0-有效，1-作废")
    @ExcelProperty("权限作废标志,0-有效，1-作废")
    @Dict(dicCode = "yes_or_no")
    private Integer permCancelFlag;

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

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

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

}