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

     1  syntax = "proto3";
     2  
     3  package infraboard.keyauth.namespace;
     4  option go_package = "github.com/infraboard/keyauth/apps/namespace";
     5  
     6  import "github.com/infraboard/mcube/pb/page/page.proto";
     7                                 
     8  // CreateNamespaceRequest 创建项目请求
     9  message CreateNamespaceRequest {
    10      // 所属部门
    11      // @gotags: json:"department_id" validate:"required,lte=80"
    12      string department_id = 1;
    13      // 项目名称
    14      // @gotags: json:"name" validate:"required,lte=80"
    15      string name = 2;
    16      // 项目描述图片
    17      // @gotags: json:"picture,omitempty"
    18      string picture =3;
    19      // 项目所有者, PMO
    20      // @gotags: json:"owner,omitempty"
    21      string owner = 5;
    22      // 项目描述
    23      // @gotags: json:"description,omitempty"
    24      string description = 6;
    25      // @gotags: json:"domain"
    26      string domain = 7;
    27      // 创建者
    28      // @gotags: json:"create_by"
    29      string create_by = 8;
    30  }
    31  
    32  // QueryNamespaceRequest 查询应用列表
    33  message QueryNamespaceRequest {
    34      // 分页请求
    35      // @gotags: json:"page"
    36     infraboard.mcube.page.PageRequest page = 1;
    37      // 空间的名称
    38      // @gotags: json:"name"
    39      string name = 5;
    40      // 该用户加入的空间
    41      // @gotags: json:"account"
    42      string account = 6;
    43      // 该部门下的空间
    44      // @gotags: json:"department_id"
    45      string department_id = 2;
    46      // 是否返回子部门的信息
    47      // @gotags: json:"with_sub_department"
    48      bool with_sub_department = 3;
    49      // 是否返回部门的信息
    50      // @gotags: json:"with_department"
    51      bool with_department = 4;
    52      // @gotags: json:"domain"
    53      string domain = 7;
    54  }
    55  
    56  // DescriptNamespaceRequest 查询应用详情
    57  message DescriptNamespaceRequest {
    58      // @gotags: json:"id"
    59      string id = 1;
    60      // @gotags: json:"with_department"
    61      bool with_department = 2;
    62  }
    63  
    64  // DeleteNamespaceRequest todo
    65  message DeleteNamespaceRequest {
    66      // @gotags: json:"id"
    67      string id = 1;
    68      // @gotags: json:"domain"
    69      string domain = 2;
    70  }