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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        v3.19.1
     5  // source: apps/verifycode/pb/request.proto
     6  
     7  package verifycode
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  // IssueCodeRequest 验证码申请请求
    24  type IssueCodeRequest struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	// @gotags: json:"issue_type"
    30  	IssueType IssueType `protobuf:"varint,1,opt,name=issue_type,json=issueType,proto3,enum=infraboard.keyauth.verifycode.IssueType" json:"issue_type"`
    31  	// @gotags: json:"username"
    32  	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username"`
    33  	// @gotags: json:"password"
    34  	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password"`
    35  	// @gotags: json:"access_token"
    36  	AccessToken string `protobuf:"bytes,6,opt,name=access_token,json=accessToken,proto3" json:"access_token"`
    37  	// @gotags: json:"client_id" validate:"required"
    38  	ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id" validate:"required"`
    39  	// @gotags: json:"client_secret" validate:"required"
    40  	ClientSecret string `protobuf:"bytes,5,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret" validate:"required"`
    41  }
    42  
    43  func (x *IssueCodeRequest) Reset() {
    44  	*x = IssueCodeRequest{}
    45  	if protoimpl.UnsafeEnabled {
    46  		mi := &file_apps_verifycode_pb_request_proto_msgTypes[0]
    47  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    48  		ms.StoreMessageInfo(mi)
    49  	}
    50  }
    51  
    52  func (x *IssueCodeRequest) String() string {
    53  	return protoimpl.X.MessageStringOf(x)
    54  }
    55  
    56  func (*IssueCodeRequest) ProtoMessage() {}
    57  
    58  func (x *IssueCodeRequest) ProtoReflect() protoreflect.Message {
    59  	mi := &file_apps_verifycode_pb_request_proto_msgTypes[0]
    60  	if protoimpl.UnsafeEnabled && x != nil {
    61  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    62  		if ms.LoadMessageInfo() == nil {
    63  			ms.StoreMessageInfo(mi)
    64  		}
    65  		return ms
    66  	}
    67  	return mi.MessageOf(x)
    68  }
    69  
    70  // Deprecated: Use IssueCodeRequest.ProtoReflect.Descriptor instead.
    71  func (*IssueCodeRequest) Descriptor() ([]byte, []int) {
    72  	return file_apps_verifycode_pb_request_proto_rawDescGZIP(), []int{0}
    73  }
    74  
    75  func (x *IssueCodeRequest) GetIssueType() IssueType {
    76  	if x != nil {
    77  		return x.IssueType
    78  	}
    79  	return IssueType_PASS
    80  }
    81  
    82  func (x *IssueCodeRequest) GetUsername() string {
    83  	if x != nil {
    84  		return x.Username
    85  	}
    86  	return ""
    87  }
    88  
    89  func (x *IssueCodeRequest) GetPassword() string {
    90  	if x != nil {
    91  		return x.Password
    92  	}
    93  	return ""
    94  }
    95  
    96  func (x *IssueCodeRequest) GetAccessToken() string {
    97  	if x != nil {
    98  		return x.AccessToken
    99  	}
   100  	return ""
   101  }
   102  
   103  func (x *IssueCodeRequest) GetClientId() string {
   104  	if x != nil {
   105  		return x.ClientId
   106  	}
   107  	return ""
   108  }
   109  
   110  func (x *IssueCodeRequest) GetClientSecret() string {
   111  	if x != nil {
   112  		return x.ClientSecret
   113  	}
   114  	return ""
   115  }
   116  
   117  // IssueCodeResponse todo
   118  type IssueCodeResponse struct {
   119  	state         protoimpl.MessageState
   120  	sizeCache     protoimpl.SizeCache
   121  	unknownFields protoimpl.UnknownFields
   122  
   123  	// @gotags: json:"message"
   124  	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message"`
   125  }
   126  
   127  func (x *IssueCodeResponse) Reset() {
   128  	*x = IssueCodeResponse{}
   129  	if protoimpl.UnsafeEnabled {
   130  		mi := &file_apps_verifycode_pb_request_proto_msgTypes[1]
   131  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   132  		ms.StoreMessageInfo(mi)
   133  	}
   134  }
   135  
   136  func (x *IssueCodeResponse) String() string {
   137  	return protoimpl.X.MessageStringOf(x)
   138  }
   139  
   140  func (*IssueCodeResponse) ProtoMessage() {}
   141  
   142  func (x *IssueCodeResponse) ProtoReflect() protoreflect.Message {
   143  	mi := &file_apps_verifycode_pb_request_proto_msgTypes[1]
   144  	if protoimpl.UnsafeEnabled && x != nil {
   145  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   146  		if ms.LoadMessageInfo() == nil {
   147  			ms.StoreMessageInfo(mi)
   148  		}
   149  		return ms
   150  	}
   151  	return mi.MessageOf(x)
   152  }
   153  
   154  // Deprecated: Use IssueCodeResponse.ProtoReflect.Descriptor instead.
   155  func (*IssueCodeResponse) Descriptor() ([]byte, []int) {
   156  	return file_apps_verifycode_pb_request_proto_rawDescGZIP(), []int{1}
   157  }
   158  
   159  func (x *IssueCodeResponse) GetMessage() string {
   160  	if x != nil {
   161  		return x.Message
   162  	}
   163  	return ""
   164  }
   165  
   166  // CheckCodeRequest 验证码校验请求
   167  type CheckCodeRequest struct {
   168  	state         protoimpl.MessageState
   169  	sizeCache     protoimpl.SizeCache
   170  	unknownFields protoimpl.UnknownFields
   171  
   172  	// @gotags: json:"username" validate:"required"
   173  	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username" validate:"required"`
   174  	// @gotags: json:"number" validate:"required"
   175  	Number string `protobuf:"bytes,2,opt,name=number,proto3" json:"number" validate:"required"`
   176  }
   177  
   178  func (x *CheckCodeRequest) Reset() {
   179  	*x = CheckCodeRequest{}
   180  	if protoimpl.UnsafeEnabled {
   181  		mi := &file_apps_verifycode_pb_request_proto_msgTypes[2]
   182  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   183  		ms.StoreMessageInfo(mi)
   184  	}
   185  }
   186  
   187  func (x *CheckCodeRequest) String() string {
   188  	return protoimpl.X.MessageStringOf(x)
   189  }
   190  
   191  func (*CheckCodeRequest) ProtoMessage() {}
   192  
   193  func (x *CheckCodeRequest) ProtoReflect() protoreflect.Message {
   194  	mi := &file_apps_verifycode_pb_request_proto_msgTypes[2]
   195  	if protoimpl.UnsafeEnabled && x != nil {
   196  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   197  		if ms.LoadMessageInfo() == nil {
   198  			ms.StoreMessageInfo(mi)
   199  		}
   200  		return ms
   201  	}
   202  	return mi.MessageOf(x)
   203  }
   204  
   205  // Deprecated: Use CheckCodeRequest.ProtoReflect.Descriptor instead.
   206  func (*CheckCodeRequest) Descriptor() ([]byte, []int) {
   207  	return file_apps_verifycode_pb_request_proto_rawDescGZIP(), []int{2}
   208  }
   209  
   210  func (x *CheckCodeRequest) GetUsername() string {
   211  	if x != nil {
   212  		return x.Username
   213  	}
   214  	return ""
   215  }
   216  
   217  func (x *CheckCodeRequest) GetNumber() string {
   218  	if x != nil {
   219  		return x.Number
   220  	}
   221  	return ""
   222  }
   223  
   224  // CheckCodeResponse todo
   225  type CheckCodeResponse struct {
   226  	state         protoimpl.MessageState
   227  	sizeCache     protoimpl.SizeCache
   228  	unknownFields protoimpl.UnknownFields
   229  
   230  	// @gotags: json:"message"
   231  	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message"`
   232  }
   233  
   234  func (x *CheckCodeResponse) Reset() {
   235  	*x = CheckCodeResponse{}
   236  	if protoimpl.UnsafeEnabled {
   237  		mi := &file_apps_verifycode_pb_request_proto_msgTypes[3]
   238  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   239  		ms.StoreMessageInfo(mi)
   240  	}
   241  }
   242  
   243  func (x *CheckCodeResponse) String() string {
   244  	return protoimpl.X.MessageStringOf(x)
   245  }
   246  
   247  func (*CheckCodeResponse) ProtoMessage() {}
   248  
   249  func (x *CheckCodeResponse) ProtoReflect() protoreflect.Message {
   250  	mi := &file_apps_verifycode_pb_request_proto_msgTypes[3]
   251  	if protoimpl.UnsafeEnabled && x != nil {
   252  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   253  		if ms.LoadMessageInfo() == nil {
   254  			ms.StoreMessageInfo(mi)
   255  		}
   256  		return ms
   257  	}
   258  	return mi.MessageOf(x)
   259  }
   260  
   261  // Deprecated: Use CheckCodeResponse.ProtoReflect.Descriptor instead.
   262  func (*CheckCodeResponse) Descriptor() ([]byte, []int) {
   263  	return file_apps_verifycode_pb_request_proto_rawDescGZIP(), []int{3}
   264  }
   265  
   266  func (x *CheckCodeResponse) GetMessage() string {
   267  	if x != nil {
   268  		return x.Message
   269  	}
   270  	return ""
   271  }
   272  
   273  var File_apps_verifycode_pb_request_proto protoreflect.FileDescriptor
   274  
   275  var file_apps_verifycode_pb_request_proto_rawDesc = []byte{
   276  	0x0a, 0x20, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x63, 0x6f, 0x64,
   277  	0x65, 0x2f, 0x70, 0x62, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f,
   278  	0x74, 0x6f, 0x12, 0x1d, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b,
   279  	0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x63, 0x6f, 0x64,
   280  	0x65, 0x1a, 0x1d, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x63, 0x6f,
   281  	0x64, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   282  	0x22, 0xf8, 0x01, 0x0a, 0x10, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65,
   283  	0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x74,
   284  	0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x69, 0x6e, 0x66, 0x72,
   285  	0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76,
   286  	0x65, 0x72, 0x69, 0x66, 0x79, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x54,
   287  	0x79, 0x70, 0x65, 0x52, 0x09, 0x69, 0x73, 0x73, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a,
   288  	0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
   289  	0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61,
   290  	0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61,
   291  	0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
   292  	0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63,
   293  	0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69,
   294  	0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c,
   295  	0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
   296  	0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63,
   297  	0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x2d, 0x0a, 0x11, 0x49,
   298  	0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
   299  	0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
   300  	0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x46, 0x0a, 0x10, 0x43, 0x68,
   301  	0x65, 0x63, 0x6b, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a,
   302  	0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   303  	0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75,
   304  	0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62,
   305  	0x65, 0x72, 0x22, 0x2d, 0x0a, 0x11, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x64, 0x65, 0x52,
   306  	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
   307  	0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
   308  	0x65, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
   309  	0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6b, 0x65, 0x79, 0x61, 0x75,
   310  	0x74, 0x68, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x63, 0x6f,
   311  	0x64, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   312  }
   313  
   314  var (
   315  	file_apps_verifycode_pb_request_proto_rawDescOnce sync.Once
   316  	file_apps_verifycode_pb_request_proto_rawDescData = file_apps_verifycode_pb_request_proto_rawDesc
   317  )
   318  
   319  func file_apps_verifycode_pb_request_proto_rawDescGZIP() []byte {
   320  	file_apps_verifycode_pb_request_proto_rawDescOnce.Do(func() {
   321  		file_apps_verifycode_pb_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_verifycode_pb_request_proto_rawDescData)
   322  	})
   323  	return file_apps_verifycode_pb_request_proto_rawDescData
   324  }
   325  
   326  var file_apps_verifycode_pb_request_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   327  var file_apps_verifycode_pb_request_proto_goTypes = []interface{}{
   328  	(*IssueCodeRequest)(nil),  // 0: infraboard.keyauth.verifycode.IssueCodeRequest
   329  	(*IssueCodeResponse)(nil), // 1: infraboard.keyauth.verifycode.IssueCodeResponse
   330  	(*CheckCodeRequest)(nil),  // 2: infraboard.keyauth.verifycode.CheckCodeRequest
   331  	(*CheckCodeResponse)(nil), // 3: infraboard.keyauth.verifycode.CheckCodeResponse
   332  	(IssueType)(0),            // 4: infraboard.keyauth.verifycode.IssueType
   333  }
   334  var file_apps_verifycode_pb_request_proto_depIdxs = []int32{
   335  	4, // 0: infraboard.keyauth.verifycode.IssueCodeRequest.issue_type:type_name -> infraboard.keyauth.verifycode.IssueType
   336  	1, // [1:1] is the sub-list for method output_type
   337  	1, // [1:1] is the sub-list for method input_type
   338  	1, // [1:1] is the sub-list for extension type_name
   339  	1, // [1:1] is the sub-list for extension extendee
   340  	0, // [0:1] is the sub-list for field type_name
   341  }
   342  
   343  func init() { file_apps_verifycode_pb_request_proto_init() }
   344  func file_apps_verifycode_pb_request_proto_init() {
   345  	if File_apps_verifycode_pb_request_proto != nil {
   346  		return
   347  	}
   348  	file_apps_verifycode_pb_enum_proto_init()
   349  	if !protoimpl.UnsafeEnabled {
   350  		file_apps_verifycode_pb_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   351  			switch v := v.(*IssueCodeRequest); i {
   352  			case 0:
   353  				return &v.state
   354  			case 1:
   355  				return &v.sizeCache
   356  			case 2:
   357  				return &v.unknownFields
   358  			default:
   359  				return nil
   360  			}
   361  		}
   362  		file_apps_verifycode_pb_request_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   363  			switch v := v.(*IssueCodeResponse); i {
   364  			case 0:
   365  				return &v.state
   366  			case 1:
   367  				return &v.sizeCache
   368  			case 2:
   369  				return &v.unknownFields
   370  			default:
   371  				return nil
   372  			}
   373  		}
   374  		file_apps_verifycode_pb_request_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   375  			switch v := v.(*CheckCodeRequest); i {
   376  			case 0:
   377  				return &v.state
   378  			case 1:
   379  				return &v.sizeCache
   380  			case 2:
   381  				return &v.unknownFields
   382  			default:
   383  				return nil
   384  			}
   385  		}
   386  		file_apps_verifycode_pb_request_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   387  			switch v := v.(*CheckCodeResponse); i {
   388  			case 0:
   389  				return &v.state
   390  			case 1:
   391  				return &v.sizeCache
   392  			case 2:
   393  				return &v.unknownFields
   394  			default:
   395  				return nil
   396  			}
   397  		}
   398  	}
   399  	type x struct{}
   400  	out := protoimpl.TypeBuilder{
   401  		File: protoimpl.DescBuilder{
   402  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   403  			RawDescriptor: file_apps_verifycode_pb_request_proto_rawDesc,
   404  			NumEnums:      0,
   405  			NumMessages:   4,
   406  			NumExtensions: 0,
   407  			NumServices:   0,
   408  		},
   409  		GoTypes:           file_apps_verifycode_pb_request_proto_goTypes,
   410  		DependencyIndexes: file_apps_verifycode_pb_request_proto_depIdxs,
   411  		MessageInfos:      file_apps_verifycode_pb_request_proto_msgTypes,
   412  	}.Build()
   413  	File_apps_verifycode_pb_request_proto = out.File
   414  	file_apps_verifycode_pb_request_proto_rawDesc = nil
   415  	file_apps_verifycode_pb_request_proto_goTypes = nil
   416  	file_apps_verifycode_pb_request_proto_depIdxs = nil
   417  }