github.com/infraboard/keyauth@v0.8.1/apps/endpoint/pb/resource.proto (about)

     1  syntax = "proto3";
     2  
     3  package infraboard.keyauth.endpoint;
     4  option go_package = "github.com/infraboard/keyauth/apps/endpoint";
     5  
     6  // Resource todo
     7  message Resource {
     8      // 资源所属服务名称
     9      // @gotags: json:"service_id"
    10      string service_id = 1;
    11      // 资源名称
    12      // @gotags: json:"name"
    13      string name = 2;
    14      // 资源支持操作的path
    15      // @gotags: json:"paths"
    16      repeated string paths = 3;
    17      // 支持操作的方法
    18      // @gotags: json:"methods"
    19      repeated string methods = 4;
    20      // 支持操作的函数
    21      // @gotags: json:"functions"
    22      repeated string functions = 5;
    23      // 支持操作的动作
    24      // @gotags: json:"actions"
    25      repeated string actions = 6;
    26  }
    27  
    28  message ResourceSet {
    29      // @gotags: bson:"total" json:"total"
    30      int64 total = 1;
    31      // @gotags: bson:"items" json:"items"
    32      repeated Resource items = 2;
    33  }