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

     1  syntax = "proto3";
     2  
     3  package infraboard.keyauth.verifycode;
     4  option go_package = "github.com/infraboard/keyauth/apps/verifycode";
     5  
     6  import "apps/verifycode/pb/enum.proto";
     7  
     8  // IssueCodeRequest 验证码申请请求
     9  message IssueCodeRequest {
    10      // @gotags: json:"issue_type"
    11      IssueType issue_type = 1;
    12      // @gotags: json:"username"
    13      string username = 2;
    14      // @gotags: json:"password" 
    15      string password = 3;
    16      // @gotags: json:"access_token"
    17      string access_token = 6;
    18      // @gotags: json:"client_id" validate:"required"
    19      string client_id = 4;
    20      // @gotags: json:"client_secret" validate:"required"
    21      string client_secret = 5;
    22  }
    23  
    24  // IssueCodeResponse todo
    25  message IssueCodeResponse {
    26      // @gotags: json:"message"
    27      string message = 1;
    28  }
    29  
    30  // CheckCodeRequest 验证码校验请求
    31  message CheckCodeRequest {
    32      // @gotags: json:"username" validate:"required"
    33      string username = 1;
    34      // @gotags: json:"number" validate:"required"
    35      string number = 2;
    36  }
    37  
    38  // CheckCodeResponse todo
    39  message CheckCodeResponse {
    40      // @gotags: json:"message"
    41      string message = 1;
    42  }