@ -25,7 +25,7 @@ type User struct {
sizeCache protoimpl . SizeCache
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
unknownFields protoimpl . UnknownFields
PhoneNum string ` protobuf:"bytes,1,opt,name=phone Num,proto3" json:"phoneN um,omitempty"`
PhoneNum string ` protobuf:"bytes,1,opt,name=phone _num,json=phoneNum,proto3" json:"phone_n um,omitempty"`
}
}
func ( x * User ) Reset ( ) {
func ( x * User ) Reset ( ) {
@ -72,8 +72,8 @@ type UserVerify struct {
sizeCache protoimpl . SizeCache
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
unknownFields protoimpl . UnknownFields
PhoneNum string ` protobuf:"bytes,1,opt,name=phone Num,proto3" json:"phoneN um,omitempty"`
PhoneNum string ` protobuf:"bytes,1,opt,name=phone _num,json=phoneNum,proto3" json:"phone_n um,omitempty"`
VerificationCode string ` protobuf:"bytes,2,opt,name= VerificationCode,proto3" json:"VerificationC ode,omitempty"`
VerificationCode string ` protobuf:"bytes,2,opt,name= verification_code,json=verificationCode,proto3" json:"verification_c ode,omitempty"`
}
}
func ( x * UserVerify ) Reset ( ) {
func ( x * UserVerify ) Reset ( ) {
@ -127,8 +127,8 @@ type LoginReply struct {
sizeCache protoimpl . SizeCache
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
unknownFields protoimpl . UnknownFields
Statu Code int32 ` protobuf:"varint,1,opt,name=statu Code,proto3" json:"statuC ode,omitempty"`
Statu s Code int32 ` protobuf:"varint,1,opt,name=statu s_code,json=statusCode,proto3" json:"status_c ode,omitempty"`
Token string ` protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty" `
Token string ` protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty" `
}
}
func ( x * LoginReply ) Reset ( ) {
func ( x * LoginReply ) Reset ( ) {
@ -163,9 +163,9 @@ func (*LoginReply) Descriptor() ([]byte, []int) {
return file_core_v1_auth_proto_rawDescGZIP ( ) , [ ] int { 2 }
return file_core_v1_auth_proto_rawDescGZIP ( ) , [ ] int { 2 }
}
}
func ( x * LoginReply ) GetStatu Code( ) int32 {
func ( x * LoginReply ) GetStatu s Code( ) int32 {
if x != nil {
if x != nil {
return x . Statu Code
return x . Statu s Code
}
}
return 0
return 0
}
}
@ -182,7 +182,7 @@ type ActionReply struct {
sizeCache protoimpl . SizeCache
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
unknownFields protoimpl . UnknownFields
StatusCode int32 ` protobuf:"varint,1,opt,name=status Code,proto3" json:"statusC ode,omitempty"`
StatusCode int32 ` protobuf:"varint,1,opt,name=status _code,json=statusCode,proto3" json:"status_c ode,omitempty"`
}
}
func ( x * ActionReply ) Reset ( ) {
func ( x * ActionReply ) Reset ( ) {
@ -228,41 +228,42 @@ var File_core_v1_auth_proto protoreflect.FileDescriptor
var file_core_v1_auth_proto_rawDesc = [ ] byte {
var file_core_v1_auth_proto_rawDesc = [ ] byte {
0x0a , 0x12 , 0x63 , 0x6f , 0x72 , 0x65 , 0x2f , 0x76 , 0x31 , 0x2f , 0x61 , 0x75 , 0x74 , 0x68 , 0x2e , 0x70 ,
0x0a , 0x12 , 0x63 , 0x6f , 0x72 , 0x65 , 0x2f , 0x76 , 0x31 , 0x2f , 0x61 , 0x75 , 0x74 , 0x68 , 0x2e , 0x70 ,
0x72 , 0x6f , 0x74 , 0x6f , 0x12 , 0x07 , 0x63 , 0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x22 , 0x22 , 0x0a ,
0x72 , 0x6f , 0x74 , 0x6f , 0x12 , 0x07 , 0x63 , 0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x22 , 0x23 , 0x0a ,
0x04 , 0x55 , 0x73 , 0x65 , 0x72 , 0x12 , 0x1a , 0x0a , 0x08 , 0x70 , 0x68 , 0x6f , 0x6e , 0x65 , 0x4e , 0x75 ,
0x04 , 0x55 , 0x73 , 0x65 , 0x72 , 0x12 , 0x1b , 0x0a , 0x09 , 0x70 , 0x68 , 0x6f , 0x6e , 0x65 , 0x5f , 0x6e ,
0x6d , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x08 , 0x70 , 0x68 , 0x6f , 0x6e , 0x65 , 0x4e , 0x75 ,
0x75 , 0x6d , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x08 , 0x70 , 0x68 , 0x6f , 0x6e , 0x65 , 0x4e ,
0x6d , 0x22 , 0x54 , 0x0a , 0x0a , 0x55 , 0x73 , 0x65 , 0x72 , 0x56 , 0x65 , 0x72 , 0x69 , 0x66 , 0x79 , 0x12 ,
0x75 , 0x6d , 0x22 , 0x56 , 0x0a , 0x0a , 0x55 , 0x73 , 0x65 , 0x72 , 0x56 , 0x65 , 0x72 , 0x69 , 0x66 , 0x79 ,
0x1a , 0x0a , 0x08 , 0x70 , 0x68 , 0x6f , 0x6e , 0x65 , 0x4e , 0x75 , 0x6d , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 ,
0x12 , 0x1b , 0x0a , 0x09 , 0x70 , 0x68 , 0x6f , 0x6e , 0x65 , 0x5f , 0x6e , 0x75 , 0x6d , 0x18 , 0x01 , 0x20 ,
0x09 , 0x52 , 0x08 , 0x70 , 0x68 , 0x6f , 0x6e , 0x65 , 0x4e , 0x75 , 0x6d , 0x12 , 0x2a , 0x0a , 0x10 , 0x56 ,
0x01 , 0x28 , 0x09 , 0x52 , 0x08 , 0x70 , 0x68 , 0x6f , 0x6e , 0x65 , 0x4e , 0x75 , 0x6d , 0x12 , 0x2b , 0x0a ,
0x65 , 0x72 , 0x69 , 0x66 , 0x69 , 0x63 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x43 , 0x6f , 0x64 , 0x65 , 0x18 ,
0x11 , 0x76 , 0x65 , 0x72 , 0x69 , 0x66 , 0x69 , 0x63 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x5f , 0x63 , 0x6f ,
0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x10 , 0x56 , 0x65 , 0x72 , 0x69 , 0x66 , 0x69 , 0x63 , 0x61 , 0x74 ,
0x64 , 0x65 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x10 , 0x76 , 0x65 , 0x72 , 0x69 , 0x66 , 0x69 ,
0x69 , 0x6f , 0x6e , 0x43 , 0x6f , 0x64 , 0x65 , 0x22 , 0x40 , 0x0a , 0x0a , 0x4c , 0x6f , 0x67 , 0x69 , 0x6e ,
0x63 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x43 , 0x6f , 0x64 , 0x65 , 0x22 , 0x43 , 0x0a , 0x0a , 0x4c , 0x6f ,
0x52 , 0x65 , 0x70 , 0x6c , 0x79 , 0x12 , 0x1c , 0x0a , 0x09 , 0x73 , 0x74 , 0x61 , 0x74 , 0x75 , 0x43 , 0x6f ,
0x67 , 0x69 , 0x6e , 0x52 , 0x65 , 0x70 , 0x6c , 0x79 , 0x12 , 0x1f , 0x0a , 0x0b , 0x73 , 0x74 , 0x61 , 0x74 ,
0x64 , 0x65 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 , 0x09 , 0x73 , 0x74 , 0x61 , 0x74 , 0x75 , 0x43 ,
0x75 , 0x73 , 0x5f , 0x63 , 0x6f , 0x64 , 0x65 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 , 0x0a , 0x73 ,
0x6f , 0x64 , 0x65 , 0x12 , 0x14 , 0x0a , 0x05 , 0x74 , 0x6f , 0x6b , 0x65 , 0x6e , 0x18 , 0x02 , 0x20 , 0x01 ,
0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x43 , 0x6f , 0x64 , 0x65 , 0x12 , 0x14 , 0x0a , 0x05 , 0x74 , 0x6f , 0x6b ,
0x28 , 0x09 , 0x52 , 0x05 , 0x74 , 0x6f , 0x6b , 0x65 , 0x6e , 0x22 , 0x2d , 0x0a , 0x0b , 0x41 , 0x63 , 0x74 ,
0x65 , 0x6e , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x05 , 0x74 , 0x6f , 0x6b , 0x65 , 0x6e , 0x22 ,
0x69 , 0x6f , 0x6e , 0x52 , 0x65 , 0x70 , 0x6c , 0x79 , 0x12 , 0x1e , 0x0a , 0x0a , 0x73 , 0x74 , 0x61 , 0x74 ,
0x2e , 0x0a , 0x0b , 0x41 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x52 , 0x65 , 0x70 , 0x6c , 0x79 , 0x12 , 0x1f ,
0x75 , 0x73 , 0x43 , 0x6f , 0x64 , 0x65 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 , 0x0a , 0x73 , 0x74 ,
0x0a , 0x0b , 0x73 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x5f , 0x63 , 0x6f , 0x64 , 0x65 , 0x18 , 0x01 , 0x20 ,
0x61 , 0x74 , 0x75 , 0x73 , 0x43 , 0x6f , 0x64 , 0x65 , 0x32 , 0x9b , 0x01 , 0x0a , 0x0c , 0x41 , 0x75 , 0x74 ,
0x01 , 0x28 , 0x05 , 0x52 , 0x0a , 0x73 , 0x74 , 0x61 , 0x74 , 0x75 , 0x73 , 0x43 , 0x6f , 0x64 , 0x65 , 0x32 ,
0x68 , 0x65 , 0x6e , 0x74 , 0x69 , 0x63 , 0x61 , 0x74 , 0x65 , 0x12 , 0x2f , 0x0a , 0x08 , 0x70 , 0x72 , 0x65 ,
0xa2 , 0x01 , 0x0a , 0x13 , 0x41 , 0x75 , 0x74 , 0x68 , 0x65 , 0x6e , 0x74 , 0x69 , 0x63 , 0x61 , 0x74 , 0x65 ,
0x4c , 0x6f , 0x67 , 0x69 , 0x6e , 0x12 , 0x0d , 0x2e , 0x63 , 0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x2e ,
0x53 , 0x65 , 0x72 , 0x76 , 0x69 , 0x63 , 0x65 , 0x12 , 0x2f , 0x0a , 0x08 , 0x70 , 0x72 , 0x65 , 0x4c , 0x6f ,
0x55 , 0x73 , 0x65 , 0x72 , 0x1a , 0x14 , 0x2e , 0x63 , 0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x2e , 0x41 ,
0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x52 , 0x65 , 0x70 , 0x6c , 0x79 , 0x12 , 0x2b , 0x0a , 0x05 , 0x6c , 0x6f ,
0x67 , 0x69 , 0x6e , 0x12 , 0x0d , 0x2e , 0x63 , 0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x2e , 0x55 , 0x73 ,
0x67 , 0x69 , 0x6e , 0x12 , 0x0d , 0x2e , 0x63 , 0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x2e , 0x55 , 0x73 ,
0x65 , 0x72 , 0x1a , 0x13 , 0x2e , 0x63 , 0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x2e , 0x4c , 0x6f , 0x67 ,
0x65 , 0x72 , 0x1a , 0x14 , 0x2e , 0x63 , 0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x2e , 0x41 , 0x63 , 0x74 ,
0x69 , 0x6e , 0x52 , 0x65 , 0x70 , 0x6c , 0x79 , 0x12 , 0x2d , 0x0a , 0x06 , 0x6c , 0x6f , 0x67 , 0x6f , 0x75 ,
0x69 , 0x6f , 0x6e , 0x52 , 0x65 , 0x70 , 0x6c , 0x79 , 0x12 , 0x2b , 0x0a , 0x05 , 0x6c , 0x6f , 0x67 , 0x69 ,
0x74 , 0x12 , 0x0d , 0x2e , 0x63 , 0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x2e , 0x55 , 0x73 , 0x65 , 0x72 ,
0x6e , 0x12 , 0x0d , 0x2e , 0x63 , 0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x2e , 0x55 , 0x73 , 0x65 , 0x72 ,
0x1a , 0x14 , 0x2e , 0x63 , 0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x2e , 0x41 , 0x63 , 0x74 , 0x69 , 0x6f ,
0x1a , 0x13 , 0x2e , 0x63 , 0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x2e , 0x4c , 0x6f , 0x67 , 0x69 , 0x6e ,
0x6e , 0x52 , 0x65 , 0x70 , 0x6c , 0x79 , 0x42 , 0x8f , 0x01 , 0x0a , 0x0b , 0x63 , 0x6f , 0x6d , 0x2e , 0x63 ,
0x52 , 0x65 , 0x70 , 0x6c , 0x79 , 0x12 , 0x2d , 0x0a , 0x06 , 0x6c , 0x6f , 0x67 , 0x6f , 0x75 , 0x74 , 0x12 ,
0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x42 , 0x09 , 0x41 , 0x75 , 0x74 , 0x68 , 0x50 , 0x72 , 0x6f , 0x74 ,
0x0d , 0x2e , 0x63 , 0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x2e , 0x55 , 0x73 , 0x65 , 0x72 , 0x1a , 0x14 ,
0x6f , 0x50 , 0x01 , 0x5a , 0x38 , 0x67 , 0x69 , 0x74 , 0x68 , 0x75 , 0x62 , 0x2e , 0x63 , 0x6f , 0x6d , 0x2f ,
0x2e , 0x63 , 0x6f , 0x72 , 0x65 , 0x2e , 0x76 , 0x31 , 0x2e , 0x41 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x52 ,
0x72 , 0x6f , 0x63 , 0x62 , 0x6f , 0x73 , 0x73 , 0x2f , 0x70 , 0x61 , 0x6f , 0x70 , 0x61 , 0x6f , 0x2d , 0x63 ,
0x65 , 0x70 , 0x6c , 0x79 , 0x42 , 0x8b , 0x01 , 0x0a , 0x0b , 0x63 , 0x6f , 0x6d , 0x2e , 0x63 , 0x6f , 0x72 ,
0x65 , 0x2f , 0x61 , 0x75 , 0x74 , 0x6f , 0x2f , 0x63 , 0x6f , 0x6e , 0x6e , 0x65 , 0x63 , 0x74 , 0x2f , 0x63 ,
0x65 , 0x2e , 0x76 , 0x31 , 0x42 , 0x09 , 0x41 , 0x75 , 0x74 , 0x68 , 0x50 , 0x72 , 0x6f , 0x74 , 0x6f , 0x50 ,
0x6f , 0x72 , 0x65 , 0x2f , 0x76 , 0x31 , 0x3b , 0x63 , 0x6f , 0x72 , 0x65 , 0x76 , 0x31 , 0xa2 , 0x02 , 0x03 ,
0x01 , 0x5a , 0x34 , 0x67 , 0x69 , 0x74 , 0x68 , 0x75 , 0x62 , 0x2e , 0x63 , 0x6f , 0x6d , 0x2f , 0x72 , 0x6f ,
0x43 , 0x58 , 0x58 , 0xaa , 0x02 , 0x07 , 0x43 , 0x6f , 0x72 , 0x65 , 0x2e , 0x56 , 0x31 , 0xca , 0x02 , 0x07 ,
0x63 , 0x62 , 0x6f , 0x73 , 0x73 , 0x2f , 0x70 , 0x61 , 0x6f , 0x70 , 0x61 , 0x6f , 0x2d , 0x63 , 0x65 , 0x2f ,
0x43 , 0x6f , 0x72 , 0x65 , 0x5c , 0x56 , 0x31 , 0xe2 , 0x02 , 0x13 , 0x43 , 0x6f , 0x72 , 0x65 , 0x5c , 0x56 ,
0x61 , 0x75 , 0x74 , 0x6f , 0x2f , 0x72 , 0x70 , 0x63 , 0x2f , 0x63 , 0x6f , 0x72 , 0x65 , 0x2f , 0x76 , 0x31 ,
0x31 , 0x5c , 0x47 , 0x50 , 0x42 , 0x4d , 0x65 , 0x74 , 0x61 , 0x64 , 0x61 , 0x74 , 0x61 , 0xea , 0x02 , 0x08 ,
0x3b , 0x63 , 0x6f , 0x72 , 0x65 , 0x76 , 0x31 , 0xa2 , 0x02 , 0x03 , 0x43 , 0x58 , 0x58 , 0xaa , 0x02 , 0x07 ,
0x43 , 0x6f , 0x72 , 0x65 , 0x3a , 0x3a , 0x56 , 0x31 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
0x43 , 0x6f , 0x72 , 0x65 , 0x2e , 0x56 , 0x31 , 0xca , 0x02 , 0x07 , 0x43 , 0x6f , 0x72 , 0x65 , 0x5c , 0x56 ,
0x31 , 0xe2 , 0x02 , 0x13 , 0x43 , 0x6f , 0x72 , 0x65 , 0x5c , 0x56 , 0x31 , 0x5c , 0x47 , 0x50 , 0x42 , 0x4d ,
0x65 , 0x74 , 0x61 , 0x64 , 0x61 , 0x74 , 0x61 , 0xea , 0x02 , 0x08 , 0x43 , 0x6f , 0x72 , 0x65 , 0x3a , 0x3a ,
0x56 , 0x31 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
}
}
var (
var (
@ -285,12 +286,12 @@ var file_core_v1_auth_proto_goTypes = []interface{}{
( * ActionReply ) ( nil ) , // 3: core.v1.ActionReply
( * ActionReply ) ( nil ) , // 3: core.v1.ActionReply
}
}
var file_core_v1_auth_proto_depIdxs = [ ] int32 {
var file_core_v1_auth_proto_depIdxs = [ ] int32 {
0 , // 0: core.v1.Authenticate .preLogin:input_type -> core.v1.User
0 , // 0: core.v1.Authenticate Service .preLogin:input_type -> core.v1.User
0 , // 1: core.v1.Authenticate .login:input_type -> core.v1.User
0 , // 1: core.v1.Authenticate Service .login:input_type -> core.v1.User
0 , // 2: core.v1.Authenticate .logout:input_type -> core.v1.User
0 , // 2: core.v1.Authenticate Service .logout:input_type -> core.v1.User
3 , // 3: core.v1.Authenticate .preLogin:output_type -> core.v1.ActionReply
3 , // 3: core.v1.Authenticate Service .preLogin:output_type -> core.v1.ActionReply
2 , // 4: core.v1.Authenticate .login:output_type -> core.v1.LoginReply
2 , // 4: core.v1.Authenticate Service .login:output_type -> core.v1.LoginReply
3 , // 5: core.v1.Authenticate .logout:output_type -> core.v1.ActionReply
3 , // 5: core.v1.Authenticate Service .logout:output_type -> core.v1.ActionReply
3 , // [3:6] is the sub-list for method output_type
3 , // [3:6] is the sub-list for method output_type
0 , // [0:3] is the sub-list for method input_type
0 , // [0:3] is the sub-list for method input_type
0 , // [0:0] is the sub-list for extension type_name
0 , // [0:0] is the sub-list for extension type_name