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

     1  syntax = "proto3";
     2  
     3  package infraboard.keyauth.application;
     4  option go_package = "github.com/infraboard/keyauth/apps/application";
     5  
     6  import "github.com/infraboard/mcube/pb/page/page.proto";
     7  
     8  enum ClientType {
     9      CONFIDENTIAL = 0;
    10      PUBLIC = 1;
    11  }
    12  
    13  // CreateApplicatonRequest 创建应用请求
    14  message CreateApplicatonRequest {
    15      // 是否是内建应用
    16      // @gotags: json:"build_in"
    17      bool build_in =9;
    18      // 所处于域
    19      // @gotags: json:"domain" validate:"required"
    20      string domain =10;
    21      // 应用属于那个用户
    22      // @gotags: json:"create_by"
    23      string create_by = 11;
    24      // 应用名称
    25      // @gotags: json:"name" validate:"required"
    26      string name = 1;
    27      // 应用的网站地址
    28      // @gotags: json:"website"
    29      string website = 2;
    30      // 应用的LOGO
    31      // @gotags: json:"logo_image"
    32      string logo_image = 3;
    33      // 应用简单的描述
    34      // @gotags: json:"description"
    35      string description = 4;
    36      // 应用重定向URI, Oauht2时需要该参数
    37      // @gotags: json:"redirect_uri"
    38      string redirect_uri = 5;
    39      // 应用申请的token的过期时间
    40      // @gotags: json:"access_token_expire_second"
    41      int64 access_token_expire_second = 6;
    42      // 刷新token过期时间
    43      // @gotags: json:"refresh_token_expire_second"
    44      int64 refresh_token_expire_second = 7;
    45      // 客户端类型
    46      // @gotags: json:"client_type"
    47      ClientType client_type = 8;
    48  }
    49  
    50  // DescribeApplicationRequest 查询应用详情
    51  message DescribeApplicationRequest {
    52      // @gotags: json:"id"
    53      string id = 1;
    54      // @gotags: json:"client_id"
    55      string client_id = 2;
    56  }
    57  
    58  // DeleteApplicationRequest 查询应用详情
    59  message DeleteApplicationRequest {
    60      string id = 1;
    61  }
    62  
    63  // QueryApplicationRequest 查询应用列表
    64  message QueryApplicationRequest {
    65      infraboard.mcube.page.PageRequest page = 1 ;
    66      string account = 3;
    67  }
    68  
    69  // GetBuildInApplicationRequest 获取内建应用
    70  message GetBuildInApplicationRequest {
    71      string name = 1;
    72  }