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

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.zt.plat.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 记录权限分页 Request VO")
@Data
public class RecordPermissionPageReqVO extends PageParam {

    @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")
    private String targetType;

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

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

    @Schema(description = "权限类型")
    private String permission;

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

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

    @Schema(description = "过期日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    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 String remark;

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

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    // =============临时字段=================

    private Long userId;

    private List<Long> userDeptIds;

}