package com.zt.plat.module.qms.business.config.controller.vo;

import lombok.*;
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 ConfigPermissionPageReqVO extends PageParam {

    @Schema(description = "主数据id", example = "31572")
    private Long sourceId;

    @Schema(description = "主数据类型", example = "1")
    private String sourceType;

    @Schema(description = "关联id", example = "20071")
    private Long targetId;

    @Schema(description = "关联name", example = "1")
    private String targetName;

    @Schema(description = "关联数据类型", example = "1")
    private String targetType;

    @Schema(description = "权限类型", example = "2")
    private String permissionType;

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

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

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

}