github.com/infraboard/keyauth@v0.8.1/apps/domain/pb/request.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/setting.proto";
     7  import "common/types/types.proto";
     8  import "github.com/infraboard/mcube/pb/page/page.proto";
     9  
    10  message CreateDomainRequest  {
    11      // 公司或者组织名称
    12      // @gotags: bson:"name" json:"name"
    13      string name = 1;
    14      // Profile 需要修改内容
    15      // @gotags: bson:"profile" json:"profile"
    16      DomainProfile profile = 2;
    17      // 归属人
    18      // @gotags: bson:"owner" json:"owner"
    19      string owner = 3;
    20  }
    21  
    22  message DomainProfile {
    23      // 全称
    24      // @gotags: bson:"display_name" json:"display_name"
    25      string display_name = 5;
    26      // 公司LOGO图片的URL
    27      // @gotags: bson:"logo_path" json:"logo_path"
    28      string logo_path = 6;
    29      // 描述
    30      // @gotags: bson:"description" json:"description"
    31      string description = 7;
    32      // 电话
    33      // @gotags: bson:"phone" json:"phone"
    34      string phone = 9;
    35      // 规模: 50人以下, 50~100, ...
    36      // @gotags: bson:"size" json:"size"
    37      string size = 10;
    38      // 位置: 指城市, 比如 中国,四川,成都
    39      // @gotags: bson:"location" json:"location"
    40      string location = 11;
    41      // 地址: 比如环球中心 10F 1034
    42      // @gotags: bson:"address" json:"address"
    43      string address = 12;
    44      // 所属行业: 比如, 互联网
    45      // @gotags: bson:"industry" json:"industry"
    46      string industry = 13;
    47      // 传真
    48      // @gotags: bson:"fax" json:"fax"
    49      string fax = 14;
    50      // 联系人
    51      // @gotags: bson:"contack" json:"contack"
    52      Contact contack = 15;    
    53  }
    54  
    55  message UpdateDomainInfoRequest  {
    56      // 更新模式
    57      // @gotags: bson:"update_mode" json:"update_mode"
    58      infraboard.keyauth.types.UpdateMode update_mode = 1;
    59      // 公司或者组织名称
    60      // @gotags: bson:"name" json:"name"
    61      string name = 2;
    62      // CreateDomainRequest 需要修改内容
    63      // @gotags: bson:"profile" json:"profile"
    64      DomainProfile profile = 3;
    65      // 修改者
    66      // @gotags: bson:"account" json:"account"
    67      string account = 4;
    68  }
    69  
    70  // DescribeDomainRequest 查询domain详情请求
    71  message DescribeDomainRequest {
    72       // @gotags: bson:"name" json:"name"
    73      string name = 1;
    74  }
    75  
    76  // DeleteDomainRequest 删除域
    77  message DeleteDomainRequest {
    78      // @gotags: bson:"name" json:"name"
    79      string name = 1;
    80  }
    81  
    82  // QueryDomainRequest 请求
    83  message QueryDomainRequest {
    84      // @gotags: json:"page"
    85      infraboard.mcube.page.PageRequest page = 1;
    86      // @gotags: json:"name"
    87      string name = 2;
    88      // @gotags: json:"owner"
    89      string owner = 3;
    90  }
    91  
    92  // UpdateDomainSecurityRequest todo
    93  message UpdateDomainSecurityRequest {
    94      // 更新模式
    95      // @gotags: bson:"update_mode" json:"update_mode"
    96      infraboard.keyauth.types.UpdateMode update_mode = 1;
    97      // 名称
    98      // @gotags: bson:"name" json:"name"
    99      string name = 2;
   100      // SecuritySetting 域安全设置
   101      // @gotags: bson:"security_setting" json:"security_setting"
   102      SecuritySetting security_setting = 3;    
   103  }
   104  
   105  // SecuritySetting 安全策略
   106  message SecuritySetting {
   107      // 密码安全
   108      // @gotags: bson:"password_security" json:"password_security"
   109      PasswordSecurity password_security = 1;
   110      // 登录安全
   111      // @gotags: bson:"login_security" json:"login_security"
   112      LoginSecurity login_security = 2;      
   113  }
   114  
   115  // 联系人
   116  message Contact {
   117      // 姓名
   118      // @gotags: bson:"name" json:"name"
   119      string name = 1;
   120      // 职位
   121      // @gotags: bson:"title" json:"title"
   122      string title = 2;
   123      // 电话
   124      // @gotags: bson:"phone" json:"phone"
   125      string phone = 3;
   126      // 邮箱
   127       // @gotags: bson:"email" json:"email"
   128      string email = 4;
   129  }