|
@@ -329,7 +329,7 @@ func (x *DebugLoginRequest) GetCode() string {
|
|
|
return ""
|
|
return ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type LoginRequest struct {
|
|
|
|
|
|
|
+type AuthorizationRequest struct {
|
|
|
state protoimpl.MessageState
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
unknownFields protoimpl.UnknownFields
|
|
@@ -337,8 +337,8 @@ type LoginRequest struct {
|
|
|
JsCode string `protobuf:"bytes,1,opt,name=jsCode,proto3" json:"jsCode"`
|
|
JsCode string `protobuf:"bytes,1,opt,name=jsCode,proto3" json:"jsCode"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *LoginRequest) Reset() {
|
|
|
|
|
- *x = LoginRequest{}
|
|
|
|
|
|
|
+func (x *AuthorizationRequest) Reset() {
|
|
|
|
|
+ *x = AuthorizationRequest{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_user_proto_msgTypes[5]
|
|
mi := &file_user_proto_msgTypes[5]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -346,13 +346,13 @@ func (x *LoginRequest) Reset() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *LoginRequest) String() string {
|
|
|
|
|
|
|
+func (x *AuthorizationRequest) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (*LoginRequest) ProtoMessage() {}
|
|
|
|
|
|
|
+func (*AuthorizationRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
-func (x *LoginRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
+func (x *AuthorizationRequest) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_user_proto_msgTypes[5]
|
|
mi := &file_user_proto_msgTypes[5]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -364,19 +364,19 @@ func (x *LoginRequest) ProtoReflect() protoreflect.Message {
|
|
|
return mi.MessageOf(x)
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
-func (*LoginRequest) Descriptor() ([]byte, []int) {
|
|
|
|
|
|
|
+// Deprecated: Use AuthorizationRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*AuthorizationRequest) Descriptor() ([]byte, []int) {
|
|
|
return file_user_proto_rawDescGZIP(), []int{5}
|
|
return file_user_proto_rawDescGZIP(), []int{5}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *LoginRequest) GetJsCode() string {
|
|
|
|
|
|
|
+func (x *AuthorizationRequest) GetJsCode() string {
|
|
|
if x != nil {
|
|
if x != nil {
|
|
|
return x.JsCode
|
|
return x.JsCode
|
|
|
}
|
|
}
|
|
|
return ""
|
|
return ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type LoginReply struct {
|
|
|
|
|
|
|
+type TokenReply struct {
|
|
|
state protoimpl.MessageState
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
unknownFields protoimpl.UnknownFields
|
|
@@ -384,8 +384,8 @@ type LoginReply struct {
|
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *LoginReply) Reset() {
|
|
|
|
|
- *x = LoginReply{}
|
|
|
|
|
|
|
+func (x *TokenReply) Reset() {
|
|
|
|
|
+ *x = TokenReply{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_user_proto_msgTypes[6]
|
|
mi := &file_user_proto_msgTypes[6]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -393,13 +393,13 @@ func (x *LoginReply) Reset() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *LoginReply) String() string {
|
|
|
|
|
|
|
+func (x *TokenReply) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (*LoginReply) ProtoMessage() {}
|
|
|
|
|
|
|
+func (*TokenReply) ProtoMessage() {}
|
|
|
|
|
|
|
|
-func (x *LoginReply) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
+func (x *TokenReply) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_user_proto_msgTypes[6]
|
|
mi := &file_user_proto_msgTypes[6]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -411,12 +411,12 @@ func (x *LoginReply) ProtoReflect() protoreflect.Message {
|
|
|
return mi.MessageOf(x)
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
|
|
|
|
|
-func (*LoginReply) Descriptor() ([]byte, []int) {
|
|
|
|
|
|
|
+// Deprecated: Use TokenReply.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*TokenReply) Descriptor() ([]byte, []int) {
|
|
|
return file_user_proto_rawDescGZIP(), []int{6}
|
|
return file_user_proto_rawDescGZIP(), []int{6}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *LoginReply) GetToken() string {
|
|
|
|
|
|
|
+func (x *TokenReply) GetToken() string {
|
|
|
if x != nil {
|
|
if x != nil {
|
|
|
return x.Token
|
|
return x.Token
|
|
|
}
|
|
}
|
|
@@ -458,23 +458,25 @@ var file_user_proto_rawDesc = []byte{
|
|
|
0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73,
|
|
0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73,
|
|
|
0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72,
|
|
0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72,
|
|
|
0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
- 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x26, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52,
|
|
|
|
|
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65,
|
|
|
|
|
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x22,
|
|
|
|
|
- 0x0a, 0x0a, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x0a, 0x05,
|
|
|
|
|
- 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b,
|
|
|
|
|
- 0x65, 0x6e, 0x32, 0xe0, 0x04, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x5c, 0x0a, 0x0a, 0x44,
|
|
|
|
|
- 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e,
|
|
|
|
|
- 0x75, 0x73, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52,
|
|
|
|
|
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65,
|
|
|
|
|
- 0x72, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x1b, 0x82, 0xd3,
|
|
|
|
|
- 0xe4, 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e,
|
|
|
|
|
- 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x3a, 0x01, 0x2a, 0x12, 0x4c, 0x0a, 0x05, 0x4c, 0x6f, 0x67,
|
|
|
|
|
- 0x69, 0x6e, 0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x4c, 0x6f,
|
|
|
|
|
- 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69,
|
|
|
|
|
- 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79,
|
|
|
|
|
- 0x22, 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x22, 0x0a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c,
|
|
|
|
|
- 0x6f, 0x67, 0x69, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x80, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61,
|
|
|
|
|
|
|
+ 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x2e, 0x0a, 0x14, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72,
|
|
|
|
|
+ 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16,
|
|
|
|
|
+ 0x0a, 0x06, 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
|
|
|
|
|
+ 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
|
|
|
|
|
+ 0x65, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20,
|
|
|
|
|
+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xf8, 0x04, 0x0a, 0x04, 0x55,
|
|
|
|
|
+ 0x73, 0x65, 0x72, 0x12, 0x5c, 0x0a, 0x0a, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69,
|
|
|
|
|
+ 0x6e, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x62,
|
|
|
|
|
+ 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14,
|
|
|
|
|
+ 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
|
|
|
|
|
+ 0x65, 0x70, 0x6c, 0x79, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x61,
|
|
|
|
|
+ 0x70, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x3a, 0x01,
|
|
|
|
|
+ 0x2a, 0x12, 0x64, 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69,
|
|
|
|
|
+ 0x6f, 0x6e, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x41, 0x75,
|
|
|
|
|
+ 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
|
+ 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x54, 0x6f,
|
|
|
|
|
+ 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17,
|
|
|
|
|
+ 0x22, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61,
|
|
|
|
|
+ 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x80, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61,
|
|
|
0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f,
|
|
0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f,
|
|
|
0x6e, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64,
|
|
0x6e, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64,
|
|
|
0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69,
|
|
0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69,
|
|
@@ -527,19 +529,19 @@ var file_user_proto_goTypes = []interface{}{
|
|
|
(*SendPhoneCodeRequest)(nil), // 2: api.user.SendPhoneCodeRequest
|
|
(*SendPhoneCodeRequest)(nil), // 2: api.user.SendPhoneCodeRequest
|
|
|
(*CheckPhoneCodeRequest)(nil), // 3: api.user.CheckPhoneCodeRequest
|
|
(*CheckPhoneCodeRequest)(nil), // 3: api.user.CheckPhoneCodeRequest
|
|
|
(*DebugLoginRequest)(nil), // 4: api.user.DebugLoginRequest
|
|
(*DebugLoginRequest)(nil), // 4: api.user.DebugLoginRequest
|
|
|
- (*LoginRequest)(nil), // 5: api.user.LoginRequest
|
|
|
|
|
- (*LoginReply)(nil), // 6: api.user.LoginReply
|
|
|
|
|
|
|
+ (*AuthorizationRequest)(nil), // 5: api.user.AuthorizationRequest
|
|
|
|
|
+ (*TokenReply)(nil), // 6: api.user.TokenReply
|
|
|
(*emptypb.Empty)(nil), // 7: google.protobuf.Empty
|
|
(*emptypb.Empty)(nil), // 7: google.protobuf.Empty
|
|
|
}
|
|
}
|
|
|
var file_user_proto_depIdxs = []int32{
|
|
var file_user_proto_depIdxs = []int32{
|
|
|
4, // 0: api.user.User.DebugLogin:input_type -> api.user.DebugLoginRequest
|
|
4, // 0: api.user.User.DebugLogin:input_type -> api.user.DebugLoginRequest
|
|
|
- 5, // 1: api.user.User.Login:input_type -> api.user.LoginRequest
|
|
|
|
|
|
|
+ 5, // 1: api.user.User.Authorization:input_type -> api.user.AuthorizationRequest
|
|
|
1, // 2: api.user.User.UpdateUserInformation:input_type -> api.user.UpdateUserInformationRequest
|
|
1, // 2: api.user.User.UpdateUserInformation:input_type -> api.user.UpdateUserInformationRequest
|
|
|
7, // 3: api.user.User.GetUserInfo:input_type -> google.protobuf.Empty
|
|
7, // 3: api.user.User.GetUserInfo:input_type -> google.protobuf.Empty
|
|
|
2, // 4: api.user.User.SendPhoneCode:input_type -> api.user.SendPhoneCodeRequest
|
|
2, // 4: api.user.User.SendPhoneCode:input_type -> api.user.SendPhoneCodeRequest
|
|
|
3, // 5: api.user.User.CheckPhoneCode:input_type -> api.user.CheckPhoneCodeRequest
|
|
3, // 5: api.user.User.CheckPhoneCode:input_type -> api.user.CheckPhoneCodeRequest
|
|
|
- 6, // 6: api.user.User.DebugLogin:output_type -> api.user.LoginReply
|
|
|
|
|
- 6, // 7: api.user.User.Login:output_type -> api.user.LoginReply
|
|
|
|
|
|
|
+ 6, // 6: api.user.User.DebugLogin:output_type -> api.user.TokenReply
|
|
|
|
|
+ 6, // 7: api.user.User.Authorization:output_type -> api.user.TokenReply
|
|
|
7, // 8: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
|
|
7, // 8: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
|
|
|
0, // 9: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
|
|
0, // 9: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
|
|
|
7, // 10: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
|
|
7, // 10: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
|
|
@@ -618,7 +620,7 @@ func file_user_proto_init() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
file_user_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
file_user_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*LoginRequest); i {
|
|
|
|
|
|
|
+ switch v := v.(*AuthorizationRequest); i {
|
|
|
case 0:
|
|
case 0:
|
|
|
return &v.state
|
|
return &v.state
|
|
|
case 1:
|
|
case 1:
|
|
@@ -630,7 +632,7 @@ func file_user_proto_init() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
file_user_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
file_user_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*LoginReply); i {
|
|
|
|
|
|
|
+ switch v := v.(*TokenReply); i {
|
|
|
case 0:
|
|
case 0:
|
|
|
return &v.state
|
|
return &v.state
|
|
|
case 1:
|
|
case 1:
|