package cn.skcks.matrix.v2.model.role.dto;

import cn.skcks.matrix.v2.model.casbin.CasbinConstant;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Schema(title = "用户在某个系统下所拥有的权限")
@Data
public class GetUserPermissions {
    @NotBlank(message = "用户id 不能为空")
    @Pattern(regexp = "\\d*", message = "用户id 格式错误")
    @Schema(description = "用户id")
    private String userId;

    @NotBlank(message = "系统 不能为空")
    @Schema(description = "系统", defaultValue = CasbinConstant.DEFAULT_SYSTEM)
    private String system;
}

