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

     1  syntax = "proto3";
     2  
     3  package infraboard.keyauth.domain;
     4  option go_package = "github.com/infraboard/keyauth/apps/domain";
     5  
     6  import "apps/domain/pb/request.proto";
     7  
     8  message Domain  {
     9      // 公司或者组织名称
    10      // @gotags: bson:"_id" json:"name"
    11      string name = 1;
    12      // 创建时间
    13      // @gotags: bson:"create_at" json:"create_at"
    14      int64 create_at = 2;
    15      // 更新时间
    16      // @gotags: bson:"update_at" json:"update_at"
    17      int64 update_at = 3;
    18      // 域拥有者
    19      // @gotags: bson:"owner" json:"owner"
    20      string owner = 4;
    21      // 域状态, 是否需要冻结该域, 冻结时, 该域下面所有用户禁止登录
    22      // @gotags: bson:"enabled" json:"enabled"
    23      bool enabled = 5;
    24      // CreateDomainRequest 具体属性
    25      // @gotags: bson:"profile" json:"profile"
    26      DomainProfile profile = 6;
    27      // SecuritySetting 域安全设置
    28      // @gotags: bson:"security_setting" json:"security_setting"
    29      SecuritySetting security_setting = 7;
    30  }
    31  
    32  message Set {
    33      // @gotags: bson:"total" json:"total"
    34      int64 total = 1;
    35      // @gotags: bson:"items" json:"items"
    36      repeated Domain items = 2;
    37  }