github.com/infraboard/keyauth@v0.8.1/apps/permission/pb/request.proto (about)

     1  syntax = "proto3";
     2  
     3  package infraboard.keyauth.permission;
     4  option go_package = "github.com/infraboard/keyauth/apps/permission";
     5  
     6  import "github.com/infraboard/mcube/pb/page/page.proto";
     7  
     8  // QueryPermissionRequest 查询用户权限
     9  message QueryPermissionRequest {
    10      // @gotags: json:"page"
    11     infraboard.mcube.page.PageRequest page = 1;
    12      // @gotags: json:"namespace_id"
    13      string namespace_id = 2;
    14      // @gotags: json:"account"
    15      string account = 3;
    16  }
    17  
    18  // QueryRoleRequest 查询用户权限
    19  message QueryRoleRequest {
    20      // @gotags: json:"page"
    21     infraboard.mcube.page.PageRequest page = 1;
    22      // @gotags: json:"namespace_id"
    23      string namespace_id = 2;
    24      // @gotags: json:"with_permission"
    25      bool with_permission = 3;
    26      // @gotags: json:"account"
    27      string account = 4;
    28  }
    29  
    30  // CheckPermissionRequest todo
    31  message CheckPermissionRequest {
    32      // @gotags: json:"page"
    33     infraboard.mcube.page.PageRequest page = 1;
    34      // @gotags: json:"namespace_id"
    35      string namespace_id = 2;
    36      // @gotags: json:"endpoint_id"
    37      string endpoint_id = 3;
    38      // @gotags: json:"service_id"
    39      string service_id = 4;
    40      // @gotags: json:"path"
    41      string path = 5;
    42      // @gotags: json:"account"
    43      string account = 6;
    44  }