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

     1  syntax = "proto3";
     2  
     3  package infraboard.keyauth.namespace;
     4  option go_package = "github.com/infraboard/keyauth/apps/namespace";
     5  
     6  import "apps/department/pb/department.proto";
     7  
     8  enum Visible {
     9      // 默认空间是私有的
    10      PRIVATE = 0;
    11  	// PUBLIC  公开的空间
    12  	PUBLIC = 1;
    13  }
    14  
    15  // Namespace tenant resource container
    16  message Namespace {
    17      // 项目唯一ID
    18      // @gotags: bson:"_id" json:"id"
    19      string id = 1;
    20      // 所属域ID
    21      // @gotags: bson:"domain" json:"domain"
    22      string domain = 2;
    23      // 创建人
    24      // @gotags: bson:"create_by" json:"create_by"
    25      string create_by = 3;
    26      // 创建时间
    27      // @gotags: bson:"create_at" json:"create_at"
    28      int64 create_at = 4;
    29      // 项目修改时间
    30      // @gotags: bson:"update_at" json:"update_at"
    31      int64 update_at = 5;
    32      // 禁用项目, 该项目所有人暂时都无法访问
    33      // @gotags: bson:"enabled" json:"enabled"
    34      bool enabled = 6;
    35      // 所属部门
    36      // @gotags: bson:"department_id" json:"department_id"
    37      string department_id = 7;
    38      // 项目名称
    39      // @gotags: bson:"name" json:"name"'
    40      string name = 8;
    41      // 项目描述图片
    42      // @gotags: bson:"picture" json:"picture"
    43      string picture =9;
    44      // 项目所有者, PMO
    45      // @gotags: bson:"owner" json:"owner"
    46      string owner = 10;
    47      // 项目描述
    48      // @gotags: bson:"description" json:"description"
    49      string description = 11;
    50      // 补充的部门
    51      // @gotags: bson:"-" json:"department,omitempty"
    52      department.Department department = 12;
    53      // 空间可见性, 默认是私有空间
    54      // @gotags: bson:"-" bson:"visible" json:"visible"
    55      Visible visible = 13;
    56  }
    57  
    58  
    59  message Set {
    60      // @gotags: bson:"total" json:"total"
    61      int64 total = 1;
    62      // @gotags: bson:"items" json:"items"
    63      repeated Namespace items = 2;
    64  }