|
|
@@ -1,7 +1,7 @@
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
// versions:
|
|
|
-// protoc-gen-go v1.23.0
|
|
|
-// protoc v3.11.3
|
|
|
+// protoc-gen-go v1.25.0
|
|
|
+// protoc v3.14.0
|
|
|
// source: im.proto
|
|
|
|
|
|
package im
|
|
|
@@ -199,6 +199,53 @@ func (*DefaultReply) Descriptor() ([]byte, []int) {
|
|
|
return file_im_proto_rawDescGZIP(), []int{1}
|
|
|
}
|
|
|
|
|
|
+type SignUpReply struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SignUpReply) Reset() {
|
|
|
+ *x = SignUpReply{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_im_proto_msgTypes[2]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SignUpReply) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*SignUpReply) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *SignUpReply) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_im_proto_msgTypes[2]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+// Deprecated: Use SignUpReply.ProtoReflect.Descriptor instead.
|
|
|
+func (*SignUpReply) Descriptor() ([]byte, []int) {
|
|
|
+ return file_im_proto_rawDescGZIP(), []int{2}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SignUpReply) GetUserId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.UserId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
type SignInPasswordRequest struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
@@ -206,12 +253,14 @@ type SignInPasswordRequest struct {
|
|
|
|
|
|
Auth string `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"`
|
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
|
+ //session有效期,单位:秒
|
|
|
+ ExpirationSec int64 `protobuf:"varint,3,opt,name=expirationSec,proto3" json:"expirationSec,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (x *SignInPasswordRequest) Reset() {
|
|
|
*x = SignInPasswordRequest{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_im_proto_msgTypes[2]
|
|
|
+ mi := &file_im_proto_msgTypes[3]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
@@ -224,7 +273,7 @@ func (x *SignInPasswordRequest) String() string {
|
|
|
func (*SignInPasswordRequest) ProtoMessage() {}
|
|
|
|
|
|
func (x *SignInPasswordRequest) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_im_proto_msgTypes[2]
|
|
|
+ mi := &file_im_proto_msgTypes[3]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
@@ -237,7 +286,7 @@ func (x *SignInPasswordRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
// Deprecated: Use SignInPasswordRequest.ProtoReflect.Descriptor instead.
|
|
|
func (*SignInPasswordRequest) Descriptor() ([]byte, []int) {
|
|
|
- return file_im_proto_rawDescGZIP(), []int{2}
|
|
|
+ return file_im_proto_rawDescGZIP(), []int{3}
|
|
|
}
|
|
|
|
|
|
func (x *SignInPasswordRequest) GetAuth() string {
|
|
|
@@ -254,6 +303,13 @@ func (x *SignInPasswordRequest) GetPassword() string {
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
+func (x *SignInPasswordRequest) GetExpirationSec() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.ExpirationSec
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
type SignInReply struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
@@ -265,7 +321,7 @@ type SignInReply struct {
|
|
|
func (x *SignInReply) Reset() {
|
|
|
*x = SignInReply{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_im_proto_msgTypes[3]
|
|
|
+ mi := &file_im_proto_msgTypes[4]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
@@ -278,7 +334,7 @@ func (x *SignInReply) String() string {
|
|
|
func (*SignInReply) ProtoMessage() {}
|
|
|
|
|
|
func (x *SignInReply) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_im_proto_msgTypes[3]
|
|
|
+ mi := &file_im_proto_msgTypes[4]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
@@ -291,7 +347,7 @@ func (x *SignInReply) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
// Deprecated: Use SignInReply.ProtoReflect.Descriptor instead.
|
|
|
func (*SignInReply) Descriptor() ([]byte, []int) {
|
|
|
- return file_im_proto_rawDescGZIP(), []int{3}
|
|
|
+ return file_im_proto_rawDescGZIP(), []int{4}
|
|
|
}
|
|
|
|
|
|
func (x *SignInReply) GetToken() string {
|
|
|
@@ -321,7 +377,7 @@ type SignUpRequest struct {
|
|
|
func (x *SignUpRequest) Reset() {
|
|
|
*x = SignUpRequest{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_im_proto_msgTypes[4]
|
|
|
+ mi := &file_im_proto_msgTypes[5]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
@@ -334,7 +390,7 @@ func (x *SignUpRequest) String() string {
|
|
|
func (*SignUpRequest) ProtoMessage() {}
|
|
|
|
|
|
func (x *SignUpRequest) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_im_proto_msgTypes[4]
|
|
|
+ mi := &file_im_proto_msgTypes[5]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
@@ -347,7 +403,7 @@ func (x *SignUpRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
// Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.
|
|
|
func (*SignUpRequest) Descriptor() ([]byte, []int) {
|
|
|
- return file_im_proto_rawDescGZIP(), []int{4}
|
|
|
+ return file_im_proto_rawDescGZIP(), []int{5}
|
|
|
}
|
|
|
|
|
|
func (x *SignUpRequest) GetUserCode() string {
|
|
|
@@ -420,60 +476,169 @@ func (x *SignUpRequest) GetMemo() string {
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
+type SessionCheckRequest struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SessionCheckRequest) Reset() {
|
|
|
+ *x = SessionCheckRequest{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_im_proto_msgTypes[6]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SessionCheckRequest) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*SessionCheckRequest) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *SessionCheckRequest) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_im_proto_msgTypes[6]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+// Deprecated: Use SessionCheckRequest.ProtoReflect.Descriptor instead.
|
|
|
+func (*SessionCheckRequest) Descriptor() ([]byte, []int) {
|
|
|
+ return file_im_proto_rawDescGZIP(), []int{6}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SessionCheckRequest) GetToken() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Token
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type SessionCheckReply struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SessionCheckReply) Reset() {
|
|
|
+ *x = SessionCheckReply{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_im_proto_msgTypes[7]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SessionCheckReply) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*SessionCheckReply) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *SessionCheckReply) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_im_proto_msgTypes[7]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+// Deprecated: Use SessionCheckReply.ProtoReflect.Descriptor instead.
|
|
|
+func (*SessionCheckReply) Descriptor() ([]byte, []int) {
|
|
|
+ return file_im_proto_rawDescGZIP(), []int{7}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *SessionCheckReply) GetUserId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.UserId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
var File_im_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_im_proto_rawDesc = []byte{
|
|
|
0x0a, 0x08, 0x69, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x69, 0x6d, 0x22, 0x10,
|
|
|
0x0a, 0x0e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
0x22, 0x0e, 0x0a, 0x0c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79,
|
|
|
- 0x22, 0x47, 0x0a, 0x15, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
|
|
|
- 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x75, 0x74,
|
|
|
- 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x12, 0x1a, 0x0a,
|
|
|
- 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
- 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x23, 0x0a, 0x0b, 0x53, 0x69, 0x67,
|
|
|
- 0x6e, 0x49, 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, 0x22, 0xfb,
|
|
|
- 0x01, 0x0a, 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
- 0x12, 0x1a, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01,
|
|
|
- 0x28, 0x09, 0x52, 0x08, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04,
|
|
|
- 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65,
|
|
|
- 0x12, 0x14, 0x0a, 0x05, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
- 0x05, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x18,
|
|
|
- 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08,
|
|
|
- 0x57, 0x78, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
|
|
- 0x57, 0x78, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x51, 0x71, 0x18, 0x06,
|
|
|
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x51, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x73, 0x73,
|
|
|
- 0x77, 0x6f, 0x72, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x50, 0x61, 0x73, 0x73,
|
|
|
- 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
- 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
- 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,
|
|
|
- 0x52, 0x06, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x4d, 0x65, 0x6d, 0x6f,
|
|
|
- 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4d, 0x65, 0x6d, 0x6f, 0x2a, 0x2b, 0x0a, 0x09,
|
|
|
- 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10,
|
|
|
- 0x00, 0x12, 0x0a, 0x0a, 0x05, 0x50, 0x41, 0x52, 0x41, 0x4d, 0x10, 0xa1, 0x1f, 0x12, 0x0a, 0x0a,
|
|
|
- 0x05, 0x45, 0x78, 0x69, 0x73, 0x74, 0x10, 0xa2, 0x1f, 0x2a, 0x25, 0x0a, 0x06, 0x53, 0x74, 0x61,
|
|
|
- 0x74, 0x75, 0x73, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x61, 0x6e, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02,
|
|
|
- 0x4f, 0x6e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x10, 0x09,
|
|
|
- 0x32, 0xb0, 0x02, 0x0a, 0x03, 0x41, 0x70, 0x69, 0x12, 0x37, 0x0a, 0x0e, 0x53, 0x69, 0x67, 0x6e,
|
|
|
- 0x55, 0x70, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x11, 0x2e, 0x69, 0x6d, 0x2e,
|
|
|
- 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e,
|
|
|
- 0x69, 0x6d, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22,
|
|
|
- 0x00, 0x12, 0x34, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x50, 0x68, 0x6f, 0x6e, 0x65,
|
|
|
- 0x12, 0x11, 0x2e, 0x69, 0x6d, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75,
|
|
|
- 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x69, 0x6d, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
|
|
|
- 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x0e, 0x53, 0x69, 0x67, 0x6e, 0x49,
|
|
|
- 0x6e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x19, 0x2e, 0x69, 0x6d, 0x2e, 0x53,
|
|
|
- 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71,
|
|
|
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x69, 0x6d, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e,
|
|
|
- 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x17, 0x53, 0x69, 0x67, 0x6e, 0x49,
|
|
|
- 0x6e, 0x57, 0x69, 0x74, 0x68, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
|
|
|
- 0x72, 0x64, 0x12, 0x19, 0x2e, 0x69, 0x6d, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x50, 0x61,
|
|
|
- 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e,
|
|
|
- 0x69, 0x6d, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00,
|
|
|
- 0x12, 0x31, 0x0a, 0x07, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x75, 0x74, 0x12, 0x12, 0x2e, 0x69, 0x6d,
|
|
|
- 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
|
|
- 0x10, 0x2e, 0x69, 0x6d, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x70, 0x6c,
|
|
|
- 0x79, 0x22, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 0x22, 0x25, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12,
|
|
|
+ 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
+ 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x6d, 0x0a, 0x15, 0x53, 0x69, 0x67, 0x6e, 0x49,
|
|
|
+ 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
+ 0x12, 0x12, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
|
|
+ 0x61, 0x75, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
|
|
|
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
|
|
|
+ 0x12, 0x24, 0x0a, 0x0d, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65,
|
|
|
+ 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74,
|
|
|
+ 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x63, 0x22, 0x23, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x49, 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, 0x22, 0xfb, 0x01, 0x0a, 0x0d,
|
|
|
+ 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a,
|
|
|
+ 0x08, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
+ 0x08, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d,
|
|
|
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a,
|
|
|
+ 0x05, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x45, 0x6d,
|
|
|
+ 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01,
|
|
|
+ 0x28, 0x09, 0x52, 0x05, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x57, 0x78, 0x4f,
|
|
|
+ 0x70, 0x65, 0x6e, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x57, 0x78, 0x4f,
|
|
|
+ 0x70, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x51, 0x71, 0x18, 0x06, 0x20, 0x01, 0x28,
|
|
|
+ 0x09, 0x52, 0x02, 0x51, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
|
|
|
+ 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
|
|
|
+ 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20,
|
|
|
+ 0x01, 0x28, 0x09, 0x52, 0x08, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a,
|
|
|
+ 0x06, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x41,
|
|
|
+ 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x4d, 0x65, 0x6d, 0x6f, 0x18, 0x0a, 0x20,
|
|
|
+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x4d, 0x65, 0x6d, 0x6f, 0x22, 0x2b, 0x0a, 0x13, 0x53, 0x65, 0x73,
|
|
|
+ 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
+ 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
+ 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x2b, 0x0a, 0x11, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f,
|
|
|
+ 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x75,
|
|
|
+ 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65,
|
|
|
+ 0x72, 0x49, 0x64, 0x2a, 0x2b, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65,
|
|
|
+ 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x05, 0x50, 0x41, 0x52, 0x41,
|
|
|
+ 0x4d, 0x10, 0xa1, 0x1f, 0x12, 0x0a, 0x0a, 0x05, 0x45, 0x78, 0x69, 0x73, 0x74, 0x10, 0xa2, 0x1f,
|
|
|
+ 0x2a, 0x25, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x61,
|
|
|
+ 0x6e, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x6e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x44,
|
|
|
+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x10, 0x09, 0x32, 0xf0, 0x02, 0x0a, 0x03, 0x41, 0x70, 0x69, 0x12,
|
|
|
+ 0x36, 0x0a, 0x0e, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x64,
|
|
|
+ 0x65, 0x12, 0x11, 0x2e, 0x69, 0x6d, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70, 0x52, 0x65, 0x71,
|
|
|
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x69, 0x6d, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x55, 0x70,
|
|
|
+ 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x55,
|
|
|
+ 0x70, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x11, 0x2e, 0x69, 0x6d, 0x2e, 0x53, 0x69, 0x67, 0x6e,
|
|
|
+ 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x69, 0x6d, 0x2e, 0x53,
|
|
|
+ 0x69, 0x67, 0x6e, 0x55, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x0e,
|
|
|
+ 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x19,
|
|
|
+ 0x2e, 0x69, 0x6d, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
|
|
|
+ 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x69, 0x6d, 0x2e, 0x53,
|
|
|
+ 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x17,
|
|
|
+ 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x50,
|
|
|
+ 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x69, 0x6d, 0x2e, 0x53, 0x69, 0x67,
|
|
|
+ 0x6e, 0x49, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
+ 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x69, 0x6d, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65,
|
|
|
+ 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x0c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
|
|
|
+ 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x17, 0x2e, 0x69, 0x6d, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69,
|
|
|
+ 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15,
|
|
|
+ 0x2e, 0x69, 0x6d, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b,
|
|
|
+ 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x31, 0x0a, 0x07, 0x53, 0x69, 0x67, 0x6e, 0x4f,
|
|
|
+ 0x75, 0x74, 0x12, 0x12, 0x2e, 0x69, 0x6d, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52,
|
|
|
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x69, 0x6d, 0x2e, 0x44, 0x65, 0x66, 0x61,
|
|
|
+ 0x75, 0x6c, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
|
+ 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
|
@@ -489,29 +654,34 @@ func file_im_proto_rawDescGZIP() []byte {
|
|
|
}
|
|
|
|
|
|
var file_im_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
|
-var file_im_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
|
+var file_im_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
|
var file_im_proto_goTypes = []interface{}{
|
|
|
(ErrorCode)(0), // 0: im.ErrorCode
|
|
|
(Status)(0), // 1: im.Status
|
|
|
(*DefaultRequest)(nil), // 2: im.DefaultRequest
|
|
|
(*DefaultReply)(nil), // 3: im.DefaultReply
|
|
|
- (*SignInPasswordRequest)(nil), // 4: im.SignInPasswordRequest
|
|
|
- (*SignInReply)(nil), // 5: im.SignInReply
|
|
|
- (*SignUpRequest)(nil), // 6: im.SignUpRequest
|
|
|
+ (*SignUpReply)(nil), // 4: im.SignUpReply
|
|
|
+ (*SignInPasswordRequest)(nil), // 5: im.SignInPasswordRequest
|
|
|
+ (*SignInReply)(nil), // 6: im.SignInReply
|
|
|
+ (*SignUpRequest)(nil), // 7: im.SignUpRequest
|
|
|
+ (*SessionCheckRequest)(nil), // 8: im.SessionCheckRequest
|
|
|
+ (*SessionCheckReply)(nil), // 9: im.SessionCheckReply
|
|
|
}
|
|
|
var file_im_proto_depIdxs = []int32{
|
|
|
- 6, // 0: im.Api.SignUpUserCode:input_type -> im.SignUpRequest
|
|
|
- 6, // 1: im.Api.SignUpPhone:input_type -> im.SignUpRequest
|
|
|
- 4, // 2: im.Api.SignInUserCode:input_type -> im.SignInPasswordRequest
|
|
|
- 4, // 3: im.Api.SignInWithPhonePassword:input_type -> im.SignInPasswordRequest
|
|
|
- 2, // 4: im.Api.SignOut:input_type -> im.DefaultRequest
|
|
|
- 3, // 5: im.Api.SignUpUserCode:output_type -> im.DefaultReply
|
|
|
- 3, // 6: im.Api.SignUpPhone:output_type -> im.DefaultReply
|
|
|
- 5, // 7: im.Api.SignInUserCode:output_type -> im.SignInReply
|
|
|
- 5, // 8: im.Api.SignInWithPhonePassword:output_type -> im.SignInReply
|
|
|
- 3, // 9: im.Api.SignOut:output_type -> im.DefaultReply
|
|
|
- 5, // [5:10] is the sub-list for method output_type
|
|
|
- 0, // [0:5] is the sub-list for method input_type
|
|
|
+ 7, // 0: im.Api.SignUpUserCode:input_type -> im.SignUpRequest
|
|
|
+ 7, // 1: im.Api.SignUpPhone:input_type -> im.SignUpRequest
|
|
|
+ 5, // 2: im.Api.SignInUserCode:input_type -> im.SignInPasswordRequest
|
|
|
+ 5, // 3: im.Api.SignInWithPhonePassword:input_type -> im.SignInPasswordRequest
|
|
|
+ 8, // 4: im.Api.SessionCheck:input_type -> im.SessionCheckRequest
|
|
|
+ 2, // 5: im.Api.SignOut:input_type -> im.DefaultRequest
|
|
|
+ 4, // 6: im.Api.SignUpUserCode:output_type -> im.SignUpReply
|
|
|
+ 4, // 7: im.Api.SignUpPhone:output_type -> im.SignUpReply
|
|
|
+ 6, // 8: im.Api.SignInUserCode:output_type -> im.SignInReply
|
|
|
+ 6, // 9: im.Api.SignInWithPhonePassword:output_type -> im.SignInReply
|
|
|
+ 9, // 10: im.Api.SessionCheck:output_type -> im.SessionCheckReply
|
|
|
+ 3, // 11: im.Api.SignOut:output_type -> im.DefaultReply
|
|
|
+ 6, // [6:12] is the sub-list for method output_type
|
|
|
+ 0, // [0:6] 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 extendee
|
|
|
0, // [0:0] is the sub-list for field type_name
|
|
|
@@ -548,7 +718,7 @@ func file_im_proto_init() {
|
|
|
}
|
|
|
}
|
|
|
file_im_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*SignInPasswordRequest); i {
|
|
|
+ switch v := v.(*SignUpReply); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
@@ -560,7 +730,7 @@ func file_im_proto_init() {
|
|
|
}
|
|
|
}
|
|
|
file_im_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*SignInReply); i {
|
|
|
+ switch v := v.(*SignInPasswordRequest); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
|
@@ -572,6 +742,18 @@ func file_im_proto_init() {
|
|
|
}
|
|
|
}
|
|
|
file_im_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*SignInReply); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_im_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*SignUpRequest); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
@@ -583,6 +765,30 @@ func file_im_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
+ file_im_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*SessionCheckRequest); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_im_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*SessionCheckReply); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
type x struct{}
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
@@ -590,7 +796,7 @@ func file_im_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_im_proto_rawDesc,
|
|
|
NumEnums: 2,
|
|
|
- NumMessages: 5,
|
|
|
+ NumMessages: 8,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
|
},
|