wfz 3 年之前
父節點
當前提交
4766e8920b

+ 290 - 28
api/base/base.pb.go

@@ -7,11 +7,8 @@
 package base
 
 import (
-	_ "google.golang.org/genproto/googleapis/api/annotations"
 	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
-	_ "google.golang.org/protobuf/types/known/emptypb"
-	_ "google.golang.org/protobuf/types/known/structpb"
 	reflect "reflect"
 	sync "sync"
 )
@@ -172,30 +169,243 @@ func (x *DebugLoginRequest) GetCode() string {
 	return ""
 }
 
+type UserAndPartnerIdParam struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	PartnerId string `protobuf:"bytes,1,opt,name=partnerId,proto3" json:"partnerId"`
+	UserId    string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId"`
+}
+
+func (x *UserAndPartnerIdParam) Reset() {
+	*x = UserAndPartnerIdParam{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_base_proto_msgTypes[3]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *UserAndPartnerIdParam) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UserAndPartnerIdParam) ProtoMessage() {}
+
+func (x *UserAndPartnerIdParam) ProtoReflect() protoreflect.Message {
+	mi := &file_base_proto_msgTypes[3]
+	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 UserAndPartnerIdParam.ProtoReflect.Descriptor instead.
+func (*UserAndPartnerIdParam) Descriptor() ([]byte, []int) {
+	return file_base_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *UserAndPartnerIdParam) GetPartnerId() string {
+	if x != nil {
+		return x.PartnerId
+	}
+	return ""
+}
+
+func (x *UserAndPartnerIdParam) GetUserId() string {
+	if x != nil {
+		return x.UserId
+	}
+	return ""
+}
+
+type User1AndUser2IdParam struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	User1 string `protobuf:"bytes,1,opt,name=user1,proto3" json:"user1"`
+	User2 string `protobuf:"bytes,2,opt,name=user2,proto3" json:"user2"`
+}
+
+func (x *User1AndUser2IdParam) Reset() {
+	*x = User1AndUser2IdParam{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_base_proto_msgTypes[4]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *User1AndUser2IdParam) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*User1AndUser2IdParam) ProtoMessage() {}
+
+func (x *User1AndUser2IdParam) ProtoReflect() protoreflect.Message {
+	mi := &file_base_proto_msgTypes[4]
+	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 User1AndUser2IdParam.ProtoReflect.Descriptor instead.
+func (*User1AndUser2IdParam) Descriptor() ([]byte, []int) {
+	return file_base_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *User1AndUser2IdParam) GetUser1() string {
+	if x != nil {
+		return x.User1
+	}
+	return ""
+}
+
+func (x *User1AndUser2IdParam) GetUser2() string {
+	if x != nil {
+		return x.User2
+	}
+	return ""
+}
+
+type PartnerIDParam struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	PartnerID string `protobuf:"bytes,1,opt,name=partnerID,proto3" json:"partnerID"`
+}
+
+func (x *PartnerIDParam) Reset() {
+	*x = PartnerIDParam{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_base_proto_msgTypes[5]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *PartnerIDParam) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PartnerIDParam) ProtoMessage() {}
+
+func (x *PartnerIDParam) ProtoReflect() protoreflect.Message {
+	mi := &file_base_proto_msgTypes[5]
+	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 PartnerIDParam.ProtoReflect.Descriptor instead.
+func (*PartnerIDParam) Descriptor() ([]byte, []int) {
+	return file_base_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *PartnerIDParam) GetPartnerID() string {
+	if x != nil {
+		return x.PartnerID
+	}
+	return ""
+}
+
+type UserIDParam struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId"`
+}
+
+func (x *UserIDParam) Reset() {
+	*x = UserIDParam{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_base_proto_msgTypes[6]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *UserIDParam) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UserIDParam) ProtoMessage() {}
+
+func (x *UserIDParam) ProtoReflect() protoreflect.Message {
+	mi := &file_base_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 UserIDParam.ProtoReflect.Descriptor instead.
+func (*UserIDParam) Descriptor() ([]byte, []int) {
+	return file_base_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *UserIDParam) GetUserId() string {
+	if x != nil {
+		return x.UserId
+	}
+	return ""
+}
+
 var File_base_proto protoreflect.FileDescriptor
 
 var file_base_proto_rawDesc = []byte{
 	0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x61, 0x70,
-	0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
-	0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
-	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
-	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f,
-	0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
-	0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x22, 0x37, 0x0a, 0x11, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69,
-	0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
-	0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
-	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x42, 0x3d, 0x0a, 0x08,
-	0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e,
-	0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65,
-	0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70,
-	0x69, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x3b, 0x62, 0x61, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f,
-	0x74, 0x6f, 0x33,
+	0x69, 0x2e, 0x62, 0x61, 0x73, 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, 0x22, 0x37, 0x0a, 0x11, 0x44, 0x65,
+	0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
+	0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
+	0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63,
+	0x6f, 0x64, 0x65, 0x22, 0x4d, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x50, 0x61,
+	0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x1c, 0x0a, 0x09,
+	0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x09, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73,
+	0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72,
+	0x49, 0x64, 0x22, 0x42, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x31, 0x41, 0x6e, 0x64, 0x55, 0x73,
+	0x65, 0x72, 0x32, 0x49, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x73,
+	0x65, 0x72, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x31,
+	0x12, 0x14, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x05, 0x75, 0x73, 0x65, 0x72, 0x32, 0x22, 0x2e, 0x0a, 0x0e, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65,
+	0x72, 0x49, 0x44, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74,
+	0x6e, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72,
+	0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x22, 0x25, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44,
+	0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18,
+	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x42, 0x3d, 0x0a,
+	0x08, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74,
+	0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76,
+	0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61,
+	0x70, 0x69, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x3b, 0x62, 0x61, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72,
+	0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -210,11 +420,15 @@ func file_base_proto_rawDescGZIP() []byte {
 	return file_base_proto_rawDescData
 }
 
-var file_base_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
+var file_base_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
 var file_base_proto_goTypes = []interface{}{
-	(*AuthorizationRequest)(nil), // 0: api.base.AuthorizationRequest
-	(*TokenReply)(nil),           // 1: api.base.TokenReply
-	(*DebugLoginRequest)(nil),    // 2: api.base.DebugLoginRequest
+	(*AuthorizationRequest)(nil),  // 0: api.base.AuthorizationRequest
+	(*TokenReply)(nil),            // 1: api.base.TokenReply
+	(*DebugLoginRequest)(nil),     // 2: api.base.DebugLoginRequest
+	(*UserAndPartnerIdParam)(nil), // 3: api.base.UserAndPartnerIdParam
+	(*User1AndUser2IdParam)(nil),  // 4: api.base.User1AndUser2IdParam
+	(*PartnerIDParam)(nil),        // 5: api.base.PartnerIDParam
+	(*UserIDParam)(nil),           // 6: api.base.UserIDParam
 }
 var file_base_proto_depIdxs = []int32{
 	0, // [0:0] is the sub-list for method output_type
@@ -266,6 +480,54 @@ func file_base_proto_init() {
 				return nil
 			}
 		}
+		file_base_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*UserAndPartnerIdParam); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_base_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*User1AndUser2IdParam); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_base_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*PartnerIDParam); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_base_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*UserIDParam); 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{
@@ -273,7 +535,7 @@ func file_base_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_base_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   3,
+			NumMessages:   7,
 			NumExtensions: 0,
 			NumServices:   0,
 		},

+ 18 - 0
api/base/base.proto

@@ -21,4 +21,22 @@ message TokenReply {
 message DebugLoginRequest {
   string id = 1;
   string code = 2;
+}
+
+message UserAndPartnerIdParam {
+  string partnerId = 1;
+  string userId = 2;
+}
+
+message User1AndUser2IdParam {
+  string user1 = 1;
+  string user2 = 2;
+}
+
+message PartnerIDParam {
+  string partnerID = 1;
+}
+
+message UserIDParam {
+  string userId = 1;
 }

+ 69 - 67
api/chat/chat.pb.go

@@ -7,6 +7,7 @@
 package chat
 
 import (
+	base "git.ikuban.com/server/pw-protobuf/api/base"
 	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 	reflect "reflect"
@@ -20,17 +21,17 @@ const (
 	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 )
 
-type CheckUserPartnerIsRelationshipRequest struct {
+type CheckUserPartnerIsRelationshipReply struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	PartnerID string `protobuf:"bytes,1,opt,name=partnerID,proto3" json:"partnerID"`
-	UserID    string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID"`
+	IsBuildRelationship bool  `protobuf:"varint,1,opt,name=isBuildRelationship,proto3" json:"isBuildRelationship"`
+	RoomId              int64 `protobuf:"varint,2,opt,name=roomId,proto3" json:"roomId"`
 }
 
-func (x *CheckUserPartnerIsRelationshipRequest) Reset() {
-	*x = CheckUserPartnerIsRelationshipRequest{}
+func (x *CheckUserPartnerIsRelationshipReply) Reset() {
+	*x = CheckUserPartnerIsRelationshipReply{}
 	if protoimpl.UnsafeEnabled {
 		mi := &file_chat_proto_msgTypes[0]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -38,13 +39,13 @@ func (x *CheckUserPartnerIsRelationshipRequest) Reset() {
 	}
 }
 
-func (x *CheckUserPartnerIsRelationshipRequest) String() string {
+func (x *CheckUserPartnerIsRelationshipReply) String() string {
 	return protoimpl.X.MessageStringOf(x)
 }
 
-func (*CheckUserPartnerIsRelationshipRequest) ProtoMessage() {}
+func (*CheckUserPartnerIsRelationshipReply) ProtoMessage() {}
 
-func (x *CheckUserPartnerIsRelationshipRequest) ProtoReflect() protoreflect.Message {
+func (x *CheckUserPartnerIsRelationshipReply) ProtoReflect() protoreflect.Message {
 	mi := &file_chat_proto_msgTypes[0]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -56,36 +57,35 @@ func (x *CheckUserPartnerIsRelationshipRequest) ProtoReflect() protoreflect.Mess
 	return mi.MessageOf(x)
 }
 
-// Deprecated: Use CheckUserPartnerIsRelationshipRequest.ProtoReflect.Descriptor instead.
-func (*CheckUserPartnerIsRelationshipRequest) Descriptor() ([]byte, []int) {
+// Deprecated: Use CheckUserPartnerIsRelationshipReply.ProtoReflect.Descriptor instead.
+func (*CheckUserPartnerIsRelationshipReply) Descriptor() ([]byte, []int) {
 	return file_chat_proto_rawDescGZIP(), []int{0}
 }
 
-func (x *CheckUserPartnerIsRelationshipRequest) GetPartnerID() string {
+func (x *CheckUserPartnerIsRelationshipReply) GetIsBuildRelationship() bool {
 	if x != nil {
-		return x.PartnerID
+		return x.IsBuildRelationship
 	}
-	return ""
+	return false
 }
 
-func (x *CheckUserPartnerIsRelationshipRequest) GetUserID() string {
+func (x *CheckUserPartnerIsRelationshipReply) GetRoomId() int64 {
 	if x != nil {
-		return x.UserID
+		return x.RoomId
 	}
-	return ""
+	return 0
 }
 
-type CheckUserPartnerIsRelationshipReply struct {
+type CreateUserPartnerIsRelationshipReply struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	IsBuildRelationship bool  `protobuf:"varint,1,opt,name=isBuildRelationship,proto3" json:"isBuildRelationship"`
-	RoomId              int64 `protobuf:"varint,2,opt,name=roomId,proto3" json:"roomId"`
+	RoomId int64 `protobuf:"varint,1,opt,name=roomId,proto3" json:"roomId"`
 }
 
-func (x *CheckUserPartnerIsRelationshipReply) Reset() {
-	*x = CheckUserPartnerIsRelationshipReply{}
+func (x *CreateUserPartnerIsRelationshipReply) Reset() {
+	*x = CreateUserPartnerIsRelationshipReply{}
 	if protoimpl.UnsafeEnabled {
 		mi := &file_chat_proto_msgTypes[1]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -93,13 +93,13 @@ func (x *CheckUserPartnerIsRelationshipReply) Reset() {
 	}
 }
 
-func (x *CheckUserPartnerIsRelationshipReply) String() string {
+func (x *CreateUserPartnerIsRelationshipReply) String() string {
 	return protoimpl.X.MessageStringOf(x)
 }
 
-func (*CheckUserPartnerIsRelationshipReply) ProtoMessage() {}
+func (*CreateUserPartnerIsRelationshipReply) ProtoMessage() {}
 
-func (x *CheckUserPartnerIsRelationshipReply) ProtoReflect() protoreflect.Message {
+func (x *CreateUserPartnerIsRelationshipReply) ProtoReflect() protoreflect.Message {
 	mi := &file_chat_proto_msgTypes[1]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -111,19 +111,12 @@ func (x *CheckUserPartnerIsRelationshipReply) ProtoReflect() protoreflect.Messag
 	return mi.MessageOf(x)
 }
 
-// Deprecated: Use CheckUserPartnerIsRelationshipReply.ProtoReflect.Descriptor instead.
-func (*CheckUserPartnerIsRelationshipReply) Descriptor() ([]byte, []int) {
+// Deprecated: Use CreateUserPartnerIsRelationshipReply.ProtoReflect.Descriptor instead.
+func (*CreateUserPartnerIsRelationshipReply) Descriptor() ([]byte, []int) {
 	return file_chat_proto_rawDescGZIP(), []int{1}
 }
 
-func (x *CheckUserPartnerIsRelationshipReply) GetIsBuildRelationship() bool {
-	if x != nil {
-		return x.IsBuildRelationship
-	}
-	return false
-}
-
-func (x *CheckUserPartnerIsRelationshipReply) GetRoomId() int64 {
+func (x *CreateUserPartnerIsRelationshipReply) GetRoomId() int64 {
 	if x != nil {
 		return x.RoomId
 	}
@@ -134,33 +127,39 @@ var File_chat_proto protoreflect.FileDescriptor
 
 var file_chat_proto_rawDesc = []byte{
 	0x0a, 0x0a, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x61, 0x70,
-	0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x22, 0x5d, 0x0a, 0x25, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55,
-	0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61,
-	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
-	0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01,
-	0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x12, 0x16, 0x0a,
-	0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75,
-	0x73, 0x65, 0x72, 0x49, 0x44, 0x22, 0x6f, 0x0a, 0x23, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73,
-	0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74,
-	0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x30, 0x0a, 0x13,
-	0x69, 0x73, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
-	0x68, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x69, 0x73, 0x42, 0x75, 0x69,
-	0x6c, 0x64, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x16,
-	0x0a, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
-	0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x32, 0x89, 0x01, 0x0a, 0x04, 0x43, 0x68, 0x61, 0x74, 0x12,
-	0x80, 0x01, 0x0a, 0x1e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72,
-	0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68,
-	0x69, 0x70, 0x12, 0x2f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x43, 0x68,
-	0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73,
-	0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75,
-	0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x43,
+	0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x1a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x62, 0x61, 0x73, 0x65,
+	0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6f, 0x0a, 0x23, 0x43,
 	0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49,
 	0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x70,
-	0x6c, 0x79, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x50, 0x01,
-	0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d,
-	0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f,
-	0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x3b, 0x63, 0x68, 0x61,
-	0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x6c, 0x79, 0x12, 0x30, 0x0a, 0x13, 0x69, 0x73, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x6c,
+	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52,
+	0x13, 0x69, 0x73, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+	0x73, 0x68, 0x69, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x18, 0x02,
+	0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x22, 0x3e, 0x0a, 0x24,
+	0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65,
+	0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52,
+	0x65, 0x70, 0x6c, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x18, 0x01,
+	0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x32, 0xec, 0x01, 0x0a,
+	0x04, 0x43, 0x68, 0x61, 0x74, 0x12, 0x70, 0x0a, 0x1e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73,
+	0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74,
+	0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61,
+	0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65,
+	0x72, 0x49, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x2d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63,
+	0x68, 0x61, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72,
+	0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68,
+	0x69, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x72, 0x0a, 0x1f, 0x43, 0x72, 0x65, 0x61, 0x74,
+	0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65,
+	0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x69,
+	0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x50, 0x61, 0x72,
+	0x74, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x2e, 0x2e, 0x61, 0x70,
+	0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65,
+	0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69,
+	0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x42, 0x3d, 0x0a, 0x08, 0x61,
+	0x70, 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e, 0x69,
+	0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
+	0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69,
+	0x2f, 0x63, 0x68, 0x61, 0x74, 0x3b, 0x63, 0x68, 0x61, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
+	0x6f, 0x33,
 }
 
 var (
@@ -177,14 +176,17 @@ func file_chat_proto_rawDescGZIP() []byte {
 
 var file_chat_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
 var file_chat_proto_goTypes = []interface{}{
-	(*CheckUserPartnerIsRelationshipRequest)(nil), // 0: api.chat.CheckUserPartnerIsRelationshipRequest
-	(*CheckUserPartnerIsRelationshipReply)(nil),   // 1: api.chat.CheckUserPartnerIsRelationshipReply
+	(*CheckUserPartnerIsRelationshipReply)(nil),  // 0: api.chat.CheckUserPartnerIsRelationshipReply
+	(*CreateUserPartnerIsRelationshipReply)(nil), // 1: api.chat.CreateUserPartnerIsRelationshipReply
+	(*base.UserAndPartnerIdParam)(nil),           // 2: api.base.UserAndPartnerIdParam
 }
 var file_chat_proto_depIdxs = []int32{
-	0, // 0: api.chat.Chat.CheckUserPartnerIsRelationship:input_type -> api.chat.CheckUserPartnerIsRelationshipRequest
-	1, // 1: api.chat.Chat.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
-	1, // [1:2] is the sub-list for method output_type
-	0, // [0:1] is the sub-list for method input_type
+	2, // 0: api.chat.Chat.CheckUserPartnerIsRelationship:input_type -> api.base.UserAndPartnerIdParam
+	2, // 1: api.chat.Chat.CreateUserPartnerIsRelationship:input_type -> api.base.UserAndPartnerIdParam
+	0, // 2: api.chat.Chat.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
+	1, // 3: api.chat.Chat.CreateUserPartnerIsRelationship:output_type -> api.chat.CreateUserPartnerIsRelationshipReply
+	2, // [2:4] is the sub-list for method output_type
+	0, // [0:2] 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
@@ -197,7 +199,7 @@ func file_chat_proto_init() {
 	}
 	if !protoimpl.UnsafeEnabled {
 		file_chat_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*CheckUserPartnerIsRelationshipRequest); i {
+			switch v := v.(*CheckUserPartnerIsRelationshipReply); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -209,7 +211,7 @@ func file_chat_proto_init() {
 			}
 		}
 		file_chat_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*CheckUserPartnerIsRelationshipReply); i {
+			switch v := v.(*CreateUserPartnerIsRelationshipReply); i {
 			case 0:
 				return &v.state
 			case 1:

+ 7 - 6
api/chat/chat.proto

@@ -5,21 +5,22 @@ package api.chat;
 //import "google/api/annotations.proto";
 //import "google/protobuf/struct.proto";
 //import "google/protobuf/empty.proto";
+import "api/base/base.proto";
 
 option go_package = "git.ikuban.com/server/pw-protobuf/api/chat;chat";
 option java_multiple_files = true;
 option java_package = "api.chat";
 
 service Chat {
-  rpc CheckUserPartnerIsRelationship (CheckUserPartnerIsRelationshipRequest) returns (CheckUserPartnerIsRelationshipReply);
-}
-
-message CheckUserPartnerIsRelationshipRequest{
-  string partnerID = 1;
-  string userID = 2;
+  rpc CheckUserPartnerIsRelationship (base.UserAndPartnerIdParam) returns (CheckUserPartnerIsRelationshipReply);
+  rpc CreateUserPartnerIsRelationship (base.UserAndPartnerIdParam) returns (CreateUserPartnerIsRelationshipReply);
 }
 
 message CheckUserPartnerIsRelationshipReply{
   bool isBuildRelationship = 1;
   int64 roomId = 2;
+}
+
+message CreateUserPartnerIsRelationshipReply{
+  int64 roomId = 1;
 }

+ 43 - 6
api/chat/chat_grpc.pb.go

@@ -4,6 +4,7 @@ package chat
 
 import (
 	context "context"
+	base "git.ikuban.com/server/pw-protobuf/api/base"
 	grpc "google.golang.org/grpc"
 	codes "google.golang.org/grpc/codes"
 	status "google.golang.org/grpc/status"
@@ -18,7 +19,8 @@ const _ = grpc.SupportPackageIsVersion7
 //
 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
 type ChatClient interface {
-	CheckUserPartnerIsRelationship(ctx context.Context, in *CheckUserPartnerIsRelationshipRequest, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error)
+	CheckUserPartnerIsRelationship(ctx context.Context, in *base.UserAndPartnerIdParam, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error)
+	CreateUserPartnerIsRelationship(ctx context.Context, in *base.UserAndPartnerIdParam, opts ...grpc.CallOption) (*CreateUserPartnerIsRelationshipReply, error)
 }
 
 type chatClient struct {
@@ -29,7 +31,7 @@ func NewChatClient(cc grpc.ClientConnInterface) ChatClient {
 	return &chatClient{cc}
 }
 
-func (c *chatClient) CheckUserPartnerIsRelationship(ctx context.Context, in *CheckUserPartnerIsRelationshipRequest, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error) {
+func (c *chatClient) CheckUserPartnerIsRelationship(ctx context.Context, in *base.UserAndPartnerIdParam, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error) {
 	out := new(CheckUserPartnerIsRelationshipReply)
 	err := c.cc.Invoke(ctx, "/api.chat.Chat/CheckUserPartnerIsRelationship", in, out, opts...)
 	if err != nil {
@@ -38,11 +40,21 @@ func (c *chatClient) CheckUserPartnerIsRelationship(ctx context.Context, in *Che
 	return out, nil
 }
 
+func (c *chatClient) CreateUserPartnerIsRelationship(ctx context.Context, in *base.UserAndPartnerIdParam, opts ...grpc.CallOption) (*CreateUserPartnerIsRelationshipReply, error) {
+	out := new(CreateUserPartnerIsRelationshipReply)
+	err := c.cc.Invoke(ctx, "/api.chat.Chat/CreateUserPartnerIsRelationship", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // ChatServer is the server API for Chat service.
 // All implementations must embed UnimplementedChatServer
 // for forward compatibility
 type ChatServer interface {
-	CheckUserPartnerIsRelationship(context.Context, *CheckUserPartnerIsRelationshipRequest) (*CheckUserPartnerIsRelationshipReply, error)
+	CheckUserPartnerIsRelationship(context.Context, *base.UserAndPartnerIdParam) (*CheckUserPartnerIsRelationshipReply, error)
+	CreateUserPartnerIsRelationship(context.Context, *base.UserAndPartnerIdParam) (*CreateUserPartnerIsRelationshipReply, error)
 	mustEmbedUnimplementedChatServer()
 }
 
@@ -50,9 +62,12 @@ type ChatServer interface {
 type UnimplementedChatServer struct {
 }
 
-func (UnimplementedChatServer) CheckUserPartnerIsRelationship(context.Context, *CheckUserPartnerIsRelationshipRequest) (*CheckUserPartnerIsRelationshipReply, error) {
+func (UnimplementedChatServer) CheckUserPartnerIsRelationship(context.Context, *base.UserAndPartnerIdParam) (*CheckUserPartnerIsRelationshipReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")
 }
+func (UnimplementedChatServer) CreateUserPartnerIsRelationship(context.Context, *base.UserAndPartnerIdParam) (*CreateUserPartnerIsRelationshipReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method CreateUserPartnerIsRelationship not implemented")
+}
 func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {}
 
 // UnsafeChatServer may be embedded to opt out of forward compatibility for this service.
@@ -67,7 +82,7 @@ func RegisterChatServer(s grpc.ServiceRegistrar, srv ChatServer) {
 }
 
 func _Chat_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(CheckUserPartnerIsRelationshipRequest)
+	in := new(base.UserAndPartnerIdParam)
 	if err := dec(in); err != nil {
 		return nil, err
 	}
@@ -79,7 +94,25 @@ func _Chat_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.C
 		FullMethod: "/api.chat.Chat/CheckUserPartnerIsRelationship",
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, req.(*CheckUserPartnerIsRelationshipRequest))
+		return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, req.(*base.UserAndPartnerIdParam))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Chat_CreateUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(base.UserAndPartnerIdParam)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(ChatServer).CreateUserPartnerIsRelationship(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.chat.Chat/CreateUserPartnerIsRelationship",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(ChatServer).CreateUserPartnerIsRelationship(ctx, req.(*base.UserAndPartnerIdParam))
 	}
 	return interceptor(ctx, in, info, handler)
 }
@@ -95,6 +128,10 @@ var Chat_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "CheckUserPartnerIsRelationship",
 			Handler:    _Chat_CheckUserPartnerIsRelationship_Handler,
 		},
+		{
+			MethodName: "CreateUserPartnerIsRelationship",
+			Handler:    _Chat_CreateUserPartnerIsRelationship_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "chat.proto",

+ 73 - 137
api/partner/partner.pb.go

@@ -23,53 +23,6 @@ const (
 	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 )
 
-type GetPartnerCircleInfoReq struct {
-	state         protoimpl.MessageState
-	sizeCache     protoimpl.SizeCache
-	unknownFields protoimpl.UnknownFields
-
-	PartnerId string `protobuf:"bytes,1,opt,name=partnerId,proto3" json:"partnerId"`
-}
-
-func (x *GetPartnerCircleInfoReq) Reset() {
-	*x = GetPartnerCircleInfoReq{}
-	if protoimpl.UnsafeEnabled {
-		mi := &file_partner_proto_msgTypes[0]
-		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
-		ms.StoreMessageInfo(mi)
-	}
-}
-
-func (x *GetPartnerCircleInfoReq) String() string {
-	return protoimpl.X.MessageStringOf(x)
-}
-
-func (*GetPartnerCircleInfoReq) ProtoMessage() {}
-
-func (x *GetPartnerCircleInfoReq) ProtoReflect() protoreflect.Message {
-	mi := &file_partner_proto_msgTypes[0]
-	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 GetPartnerCircleInfoReq.ProtoReflect.Descriptor instead.
-func (*GetPartnerCircleInfoReq) Descriptor() ([]byte, []int) {
-	return file_partner_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *GetPartnerCircleInfoReq) GetPartnerId() string {
-	if x != nil {
-		return x.PartnerId
-	}
-	return ""
-}
-
 type PartnerCircleInfo struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -86,7 +39,7 @@ type PartnerCircleInfo struct {
 func (x *PartnerCircleInfo) Reset() {
 	*x = PartnerCircleInfo{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_partner_proto_msgTypes[1]
+		mi := &file_partner_proto_msgTypes[0]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -99,7 +52,7 @@ func (x *PartnerCircleInfo) String() string {
 func (*PartnerCircleInfo) ProtoMessage() {}
 
 func (x *PartnerCircleInfo) ProtoReflect() protoreflect.Message {
-	mi := &file_partner_proto_msgTypes[1]
+	mi := &file_partner_proto_msgTypes[0]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -112,7 +65,7 @@ func (x *PartnerCircleInfo) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use PartnerCircleInfo.ProtoReflect.Descriptor instead.
 func (*PartnerCircleInfo) Descriptor() ([]byte, []int) {
-	return file_partner_proto_rawDescGZIP(), []int{1}
+	return file_partner_proto_rawDescGZIP(), []int{0}
 }
 
 func (x *PartnerCircleInfo) GetId() string {
@@ -173,7 +126,7 @@ type PartnerInfo struct {
 func (x *PartnerInfo) Reset() {
 	*x = PartnerInfo{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_partner_proto_msgTypes[2]
+		mi := &file_partner_proto_msgTypes[1]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -186,7 +139,7 @@ func (x *PartnerInfo) String() string {
 func (*PartnerInfo) ProtoMessage() {}
 
 func (x *PartnerInfo) ProtoReflect() protoreflect.Message {
-	mi := &file_partner_proto_msgTypes[2]
+	mi := &file_partner_proto_msgTypes[1]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -199,7 +152,7 @@ func (x *PartnerInfo) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use PartnerInfo.ProtoReflect.Descriptor instead.
 func (*PartnerInfo) Descriptor() ([]byte, []int) {
-	return file_partner_proto_rawDescGZIP(), []int{2}
+	return file_partner_proto_rawDescGZIP(), []int{1}
 }
 
 func (x *PartnerInfo) GetId() string {
@@ -253,64 +206,59 @@ var file_partner_proto_rawDesc = []byte{
 	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67,
 	0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74,
 	0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x62, 0x61, 0x73,
-	0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x37, 0x0a, 0x17,
-	0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65,
-	0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x6e,
-	0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74,
-	0x6e, 0x65, 0x72, 0x49, 0x64, 0x22, 0x9d, 0x01, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65,
-	0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69,
-	0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e,
-	0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e,
-	0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61,
-	0x72, 0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74,
-	0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04,
-	0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73,
-	0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x16, 0x0a,
-	0x06, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63,
-	0x72, 0x65, 0x64, 0x69, 0x74, 0x22, 0x97, 0x01, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65,
-	0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
-	0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d,
-	0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d,
-	0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x18, 0x03,
-	0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12,
-	0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
-	0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01,
-	0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x72, 0x65, 0x64, 0x69,
-	0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x32,
-	0xc0, 0x03, 0x0a, 0x07, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x12, 0x6c, 0x0a, 0x0d, 0x41,
-	0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x2e, 0x61,
-	0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 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, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70,
-	0x6c, 0x79, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1a, 0x2f, 0x61, 0x70, 0x69,
-	0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
-	0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x61, 0x0a, 0x0a, 0x44, 0x65, 0x62,
-	0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61,
-	0x73, 0x65, 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, 0x62, 0x61, 0x73, 0x65, 0x2e,
-	0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93,
-	0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x6c, 0x6f,
-	0x67, 0x69, 0x6e, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x3a, 0x01, 0x2a, 0x12, 0x60, 0x0a, 0x0e,
-	0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16,
-	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
-	0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72,
-	0x74, 0x6e, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
-	0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22, 0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70,
-	0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x3a, 0x01, 0x2a, 0x12, 0x81,
-	0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72,
-	0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61,
-	0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72,
-	0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x1e, 0x2e,
+	0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a,
+	0x11, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e,
+	0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
+	0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c,
+	0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,
+	0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05,
+	0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f,
+	0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
+	0x03, 0x73, 0x65, 0x78, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x18, 0x06,
+	0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x22, 0x97, 0x01, 0x0a,
+	0x0b, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02,
+	0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08,
+	0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
+	0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74,
+	0x61, 0x72, 0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61,
+	0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18,
+	0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03,
+	0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x16,
+	0x0a, 0x06, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
+	0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x32, 0xb3, 0x03, 0x0a, 0x07, 0x50, 0x61, 0x72, 0x74, 0x6e,
+	0x65, 0x72, 0x12, 0x6c, 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74,
+	0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 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, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x54,
+	0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+	0x1f, 0x22, 0x1a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f,
+	0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a,
+	0x12, 0x61, 0x0a, 0x0a, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1b,
+	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 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, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c,
+	0x79, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f,
+	0x75, 0x73, 0x65, 0x72, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67,
+	0x3a, 0x01, 0x2a, 0x12, 0x60, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65,
+	0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
+	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x18, 0x2e,
 	0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x72, 0x74,
-	0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x23, 0x82,
-	0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74,
-	0x6e, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x3a,
-	0x01, 0x2a, 0x42, 0x46, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65,
-	0x72, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e,
-	0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72,
-	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e,
-	0x65, 0x72, 0x3b, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
-	0x6f, 0x33,
+	0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22,
+	0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x69, 0x6e,
+	0x66, 0x6f, 0x3a, 0x01, 0x2a, 0x12, 0x75, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74,
+	0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x2e,
+	0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72,
+	0x49, 0x44, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61,
+	0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72,
+	0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22,
+	0x18, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x69, 0x6e,
+	0x66, 0x6f, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x3a, 0x01, 0x2a, 0x42, 0x46, 0x0a, 0x0b,
+	0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x35, 0x67,
+	0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65,
+	0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
+	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x3b, 0x70, 0x61, 0x72,
+	0x74, 0x6e, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -325,25 +273,25 @@ func file_partner_proto_rawDescGZIP() []byte {
 	return file_partner_proto_rawDescData
 }
 
-var file_partner_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
+var file_partner_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
 var file_partner_proto_goTypes = []interface{}{
-	(*GetPartnerCircleInfoReq)(nil),   // 0: api.partner.GetPartnerCircleInfoReq
-	(*PartnerCircleInfo)(nil),         // 1: api.partner.PartnerCircleInfo
-	(*PartnerInfo)(nil),               // 2: api.partner.PartnerInfo
-	(*base.AuthorizationRequest)(nil), // 3: api.base.AuthorizationRequest
-	(*base.DebugLoginRequest)(nil),    // 4: api.base.DebugLoginRequest
-	(*emptypb.Empty)(nil),             // 5: google.protobuf.Empty
+	(*PartnerCircleInfo)(nil),         // 0: api.partner.PartnerCircleInfo
+	(*PartnerInfo)(nil),               // 1: api.partner.PartnerInfo
+	(*base.AuthorizationRequest)(nil), // 2: api.base.AuthorizationRequest
+	(*base.DebugLoginRequest)(nil),    // 3: api.base.DebugLoginRequest
+	(*emptypb.Empty)(nil),             // 4: google.protobuf.Empty
+	(*base.PartnerIDParam)(nil),       // 5: api.base.PartnerIDParam
 	(*base.TokenReply)(nil),           // 6: api.base.TokenReply
 }
 var file_partner_proto_depIdxs = []int32{
-	3, // 0: api.partner.Partner.Authorization:input_type -> api.base.AuthorizationRequest
-	4, // 1: api.partner.Partner.DebugLogin:input_type -> api.base.DebugLoginRequest
-	5, // 2: api.partner.Partner.GetPartnerInfo:input_type -> google.protobuf.Empty
-	0, // 3: api.partner.Partner.GetPartnerCircleInfo:input_type -> api.partner.GetPartnerCircleInfoReq
+	2, // 0: api.partner.Partner.Authorization:input_type -> api.base.AuthorizationRequest
+	3, // 1: api.partner.Partner.DebugLogin:input_type -> api.base.DebugLoginRequest
+	4, // 2: api.partner.Partner.GetPartnerInfo:input_type -> google.protobuf.Empty
+	5, // 3: api.partner.Partner.GetPartnerCircleInfo:input_type -> api.base.PartnerIDParam
 	6, // 4: api.partner.Partner.Authorization:output_type -> api.base.TokenReply
 	6, // 5: api.partner.Partner.DebugLogin:output_type -> api.base.TokenReply
-	2, // 6: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
-	1, // 7: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.partner.PartnerCircleInfo
+	1, // 6: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
+	0, // 7: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.partner.PartnerCircleInfo
 	4, // [4:8] is the sub-list for method output_type
 	0, // [0:4] is the sub-list for method input_type
 	0, // [0:0] is the sub-list for extension type_name
@@ -358,18 +306,6 @@ func file_partner_proto_init() {
 	}
 	if !protoimpl.UnsafeEnabled {
 		file_partner_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*GetPartnerCircleInfoReq); i {
-			case 0:
-				return &v.state
-			case 1:
-				return &v.sizeCache
-			case 2:
-				return &v.unknownFields
-			default:
-				return nil
-			}
-		}
-		file_partner_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*PartnerCircleInfo); i {
 			case 0:
 				return &v.state
@@ -381,7 +317,7 @@ func file_partner_proto_init() {
 				return nil
 			}
 		}
-		file_partner_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+		file_partner_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*PartnerInfo); i {
 			case 0:
 				return &v.state
@@ -400,7 +336,7 @@ func file_partner_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_partner_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   3,
+			NumMessages:   2,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 1 - 5
api/partner/partner.proto

@@ -30,7 +30,7 @@ service Partner {
       body:"*"
     };
   };
-  rpc GetPartnerCircleInfo (GetPartnerCircleInfoReq) returns (PartnerCircleInfo){
+  rpc GetPartnerCircleInfo (base.PartnerIDParam) returns (PartnerCircleInfo){
     option (google.api.http) = {
       post: "/api/partner/info/circle",
       body:"*"
@@ -38,10 +38,6 @@ service Partner {
   };
 }
 
-message GetPartnerCircleInfoReq{
-  string partnerId = 1;
-}
-
 message PartnerCircleInfo{
   string id = 1; // id
   string nickname = 2;// 昵称

+ 6 - 6
api/partner/partner_grpc.pb.go

@@ -23,7 +23,7 @@ type PartnerClient interface {
 	Authorization(ctx context.Context, in *base.AuthorizationRequest, opts ...grpc.CallOption) (*base.TokenReply, error)
 	DebugLogin(ctx context.Context, in *base.DebugLoginRequest, opts ...grpc.CallOption) (*base.TokenReply, error)
 	GetPartnerInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PartnerInfo, error)
-	GetPartnerCircleInfo(ctx context.Context, in *GetPartnerCircleInfoReq, opts ...grpc.CallOption) (*PartnerCircleInfo, error)
+	GetPartnerCircleInfo(ctx context.Context, in *base.PartnerIDParam, opts ...grpc.CallOption) (*PartnerCircleInfo, error)
 }
 
 type partnerClient struct {
@@ -61,7 +61,7 @@ func (c *partnerClient) GetPartnerInfo(ctx context.Context, in *emptypb.Empty, o
 	return out, nil
 }
 
-func (c *partnerClient) GetPartnerCircleInfo(ctx context.Context, in *GetPartnerCircleInfoReq, opts ...grpc.CallOption) (*PartnerCircleInfo, error) {
+func (c *partnerClient) GetPartnerCircleInfo(ctx context.Context, in *base.PartnerIDParam, opts ...grpc.CallOption) (*PartnerCircleInfo, error) {
 	out := new(PartnerCircleInfo)
 	err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerCircleInfo", in, out, opts...)
 	if err != nil {
@@ -77,7 +77,7 @@ type PartnerServer interface {
 	Authorization(context.Context, *base.AuthorizationRequest) (*base.TokenReply, error)
 	DebugLogin(context.Context, *base.DebugLoginRequest) (*base.TokenReply, error)
 	GetPartnerInfo(context.Context, *emptypb.Empty) (*PartnerInfo, error)
-	GetPartnerCircleInfo(context.Context, *GetPartnerCircleInfoReq) (*PartnerCircleInfo, error)
+	GetPartnerCircleInfo(context.Context, *base.PartnerIDParam) (*PartnerCircleInfo, error)
 	mustEmbedUnimplementedPartnerServer()
 }
 
@@ -94,7 +94,7 @@ func (UnimplementedPartnerServer) DebugLogin(context.Context, *base.DebugLoginRe
 func (UnimplementedPartnerServer) GetPartnerInfo(context.Context, *emptypb.Empty) (*PartnerInfo, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerInfo not implemented")
 }
-func (UnimplementedPartnerServer) GetPartnerCircleInfo(context.Context, *GetPartnerCircleInfoReq) (*PartnerCircleInfo, error) {
+func (UnimplementedPartnerServer) GetPartnerCircleInfo(context.Context, *base.PartnerIDParam) (*PartnerCircleInfo, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerCircleInfo not implemented")
 }
 func (UnimplementedPartnerServer) mustEmbedUnimplementedPartnerServer() {}
@@ -165,7 +165,7 @@ func _Partner_GetPartnerInfo_Handler(srv interface{}, ctx context.Context, dec f
 }
 
 func _Partner_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(GetPartnerCircleInfoReq)
+	in := new(base.PartnerIDParam)
 	if err := dec(in); err != nil {
 		return nil, err
 	}
@@ -177,7 +177,7 @@ func _Partner_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context,
 		FullMethod: "/api.partner.Partner/GetPartnerCircleInfo",
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(PartnerServer).GetPartnerCircleInfo(ctx, req.(*GetPartnerCircleInfoReq))
+		return srv.(PartnerServer).GetPartnerCircleInfo(ctx, req.(*base.PartnerIDParam))
 	}
 	return interceptor(ctx, in, info, handler)
 }

+ 5 - 5
api/partner/partner_http.pb.go

@@ -30,7 +30,7 @@ const _ = http.SupportPackageIsVersion1
 type PartnerHTTPServer interface {
 	Authorization(context.Context, *base1.AuthorizationRequest) (*base1.TokenReply, error)
 	DebugLogin(context.Context, *base1.DebugLoginRequest) (*base1.TokenReply, error)
-	GetPartnerCircleInfo(context.Context, *GetPartnerCircleInfoReq) (*PartnerCircleInfo, error)
+	GetPartnerCircleInfo(context.Context, *base1.PartnerIDParam) (*PartnerCircleInfo, error)
 	GetPartnerInfo(context.Context, *emptypb.Empty) (*PartnerInfo, error)
 }
 
@@ -125,7 +125,7 @@ func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.
 
 func _Partner_GetPartnerCircleInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
 	return func(ctx http.Context) error {
-		var in GetPartnerCircleInfoReq
+		var in base1.PartnerIDParam
 		if err := ctx.Bind(&in); err != nil {
 			return err
 		}
@@ -134,7 +134,7 @@ func _Partner_GetPartnerCircleInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx
 		}
 		http.SetOperation(ctx, "/api.partner.Partner/GetPartnerCircleInfo")
 		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
-			return srv.GetPartnerCircleInfo(ctx, req.(*GetPartnerCircleInfoReq))
+			return srv.GetPartnerCircleInfo(ctx, req.(*base1.PartnerIDParam))
 		})
 		out, err := h(ctx, &in)
 		if err != nil {
@@ -153,7 +153,7 @@ func _Partner_GetPartnerCircleInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx
 type PartnerHTTPClient interface {
 	Authorization(ctx context.Context, req *base1.AuthorizationRequest, opts ...http.CallOption) (rsp *base1.TokenReply, err error)
 	DebugLogin(ctx context.Context, req *base1.DebugLoginRequest, opts ...http.CallOption) (rsp *base1.TokenReply, err error)
-	GetPartnerCircleInfo(ctx context.Context, req *GetPartnerCircleInfoReq, opts ...http.CallOption) (rsp *PartnerCircleInfo, err error)
+	GetPartnerCircleInfo(ctx context.Context, req *base1.PartnerIDParam, opts ...http.CallOption) (rsp *PartnerCircleInfo, err error)
 	GetPartnerInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerInfo, err error)
 }
 
@@ -191,7 +191,7 @@ func (c *PartnerHTTPClientImpl) DebugLogin(ctx context.Context, in *base1.DebugL
 	return &out, err
 }
 
-func (c *PartnerHTTPClientImpl) GetPartnerCircleInfo(ctx context.Context, in *GetPartnerCircleInfoReq, opts ...http.CallOption) (*PartnerCircleInfo, error) {
+func (c *PartnerHTTPClientImpl) GetPartnerCircleInfo(ctx context.Context, in *base1.PartnerIDParam, opts ...http.CallOption) (*PartnerCircleInfo, error) {
 	var out PartnerCircleInfo
 	pattern := "/api/partner/info/circle"
 	path := binding.EncodeURL(pattern, in, false)

+ 143 - 197
api/user/user.pb.go

@@ -25,53 +25,6 @@ const (
 	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 )
 
-type CheckUserPartnerIsRelationshipRequest struct {
-	state         protoimpl.MessageState
-	sizeCache     protoimpl.SizeCache
-	unknownFields protoimpl.UnknownFields
-
-	PartnerID string `protobuf:"bytes,1,opt,name=partnerID,proto3" json:"partnerID"`
-}
-
-func (x *CheckUserPartnerIsRelationshipRequest) Reset() {
-	*x = CheckUserPartnerIsRelationshipRequest{}
-	if protoimpl.UnsafeEnabled {
-		mi := &file_user_proto_msgTypes[0]
-		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
-		ms.StoreMessageInfo(mi)
-	}
-}
-
-func (x *CheckUserPartnerIsRelationshipRequest) String() string {
-	return protoimpl.X.MessageStringOf(x)
-}
-
-func (*CheckUserPartnerIsRelationshipRequest) ProtoMessage() {}
-
-func (x *CheckUserPartnerIsRelationshipRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_user_proto_msgTypes[0]
-	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 CheckUserPartnerIsRelationshipRequest.ProtoReflect.Descriptor instead.
-func (*CheckUserPartnerIsRelationshipRequest) Descriptor() ([]byte, []int) {
-	return file_user_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *CheckUserPartnerIsRelationshipRequest) GetPartnerID() string {
-	if x != nil {
-		return x.PartnerID
-	}
-	return ""
-}
-
 type UserInfo struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -88,7 +41,7 @@ type UserInfo struct {
 func (x *UserInfo) Reset() {
 	*x = UserInfo{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_user_proto_msgTypes[1]
+		mi := &file_user_proto_msgTypes[0]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -101,7 +54,7 @@ func (x *UserInfo) String() string {
 func (*UserInfo) ProtoMessage() {}
 
 func (x *UserInfo) ProtoReflect() protoreflect.Message {
-	mi := &file_user_proto_msgTypes[1]
+	mi := &file_user_proto_msgTypes[0]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -114,7 +67,7 @@ func (x *UserInfo) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.
 func (*UserInfo) Descriptor() ([]byte, []int) {
-	return file_user_proto_rawDescGZIP(), []int{1}
+	return file_user_proto_rawDescGZIP(), []int{0}
 }
 
 func (x *UserInfo) GetId() string {
@@ -172,7 +125,7 @@ type UpdateUserInformationRequest struct {
 func (x *UpdateUserInformationRequest) Reset() {
 	*x = UpdateUserInformationRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_user_proto_msgTypes[2]
+		mi := &file_user_proto_msgTypes[1]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -185,7 +138,7 @@ func (x *UpdateUserInformationRequest) String() string {
 func (*UpdateUserInformationRequest) ProtoMessage() {}
 
 func (x *UpdateUserInformationRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_user_proto_msgTypes[2]
+	mi := &file_user_proto_msgTypes[1]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -198,7 +151,7 @@ func (x *UpdateUserInformationRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use UpdateUserInformationRequest.ProtoReflect.Descriptor instead.
 func (*UpdateUserInformationRequest) Descriptor() ([]byte, []int) {
-	return file_user_proto_rawDescGZIP(), []int{2}
+	return file_user_proto_rawDescGZIP(), []int{1}
 }
 
 func (x *UpdateUserInformationRequest) GetNickname() string {
@@ -233,7 +186,7 @@ type SendPhoneCodeRequest struct {
 func (x *SendPhoneCodeRequest) Reset() {
 	*x = SendPhoneCodeRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_user_proto_msgTypes[3]
+		mi := &file_user_proto_msgTypes[2]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -246,7 +199,7 @@ func (x *SendPhoneCodeRequest) String() string {
 func (*SendPhoneCodeRequest) ProtoMessage() {}
 
 func (x *SendPhoneCodeRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_user_proto_msgTypes[3]
+	mi := &file_user_proto_msgTypes[2]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -259,7 +212,7 @@ func (x *SendPhoneCodeRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use SendPhoneCodeRequest.ProtoReflect.Descriptor instead.
 func (*SendPhoneCodeRequest) Descriptor() ([]byte, []int) {
-	return file_user_proto_rawDescGZIP(), []int{3}
+	return file_user_proto_rawDescGZIP(), []int{2}
 }
 
 func (x *SendPhoneCodeRequest) GetPhone() string {
@@ -281,7 +234,7 @@ type CheckPhoneCodeRequest struct {
 func (x *CheckPhoneCodeRequest) Reset() {
 	*x = CheckPhoneCodeRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_user_proto_msgTypes[4]
+		mi := &file_user_proto_msgTypes[3]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -294,7 +247,7 @@ func (x *CheckPhoneCodeRequest) String() string {
 func (*CheckPhoneCodeRequest) ProtoMessage() {}
 
 func (x *CheckPhoneCodeRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_user_proto_msgTypes[4]
+	mi := &file_user_proto_msgTypes[3]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -307,7 +260,7 @@ func (x *CheckPhoneCodeRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use CheckPhoneCodeRequest.ProtoReflect.Descriptor instead.
 func (*CheckPhoneCodeRequest) Descriptor() ([]byte, []int) {
-	return file_user_proto_rawDescGZIP(), []int{4}
+	return file_user_proto_rawDescGZIP(), []int{3}
 }
 
 func (x *CheckPhoneCodeRequest) GetPhone() string {
@@ -336,98 +289,101 @@ var file_user_proto_rawDesc = []byte{
 	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74,
 	0x6e, 0x65, 0x72, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
 	0x6f, 0x1a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x62, 0x61, 0x73, 0x65,
-	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x45, 0x0a, 0x25, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55,
-	0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61,
-	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
-	0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01,
-	0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x22, 0x94, 0x01,
-	0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
-	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69,
-	0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69,
-	0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72,
-	0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61,
-	0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20,
-	0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65,
-	0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x16, 0x0a, 0x06,
-	0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x72,
-	0x65, 0x64, 0x69, 0x74, 0x22, 0x6a, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73,
-	0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71,
-	0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x4e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65,
-	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65,
-	0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x18, 0x02, 0x20,
-	0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x10,
-	0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78,
-	0x22, 0x2c, 0x0a, 0x14, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64,
-	0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e,
-	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x22, 0x41,
-	0x0a, 0x15, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65,
-	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65,
-	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x12, 0x0a,
-	0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64,
-	0x65, 0x32, 0xb2, 0x07, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x61, 0x0a, 0x0a, 0x44, 0x65,
-	0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62,
-	0x61, 0x73, 0x65, 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, 0x62, 0x61, 0x73, 0x65,
-	0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x20, 0x82, 0xd3, 0xe4,
-	0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x6c,
-	0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x3a, 0x01, 0x2a, 0x12, 0x69, 0x0a,
-	0x0d, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e,
-	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72,
-	0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14,
+	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x49,
+	0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18,
+	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12,
+	0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01,
+	0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a,
+	0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68,
+	0x6f, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
+	0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x18,
+	0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x22, 0x6a, 0x0a,
+	0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x72,
+	0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a,
+	0x08, 0x4e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x08, 0x4e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61,
+	0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76,
+	0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x03,
+	0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x22, 0x2c, 0x0a, 0x14, 0x53, 0x65, 0x6e,
+	0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+	0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x22, 0x41, 0x0a, 0x15, 0x43, 0x68, 0x65, 0x63, 0x6b,
+	0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+	0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x32, 0xa6, 0x08, 0x0a, 0x04, 0x55,
+	0x73, 0x65, 0x72, 0x12, 0x61, 0x0a, 0x0a, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69,
+	0x6e, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 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, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
-	0x65, 0x70, 0x6c, 0x79, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17, 0x2f, 0x61,
-	0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 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, 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, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
-	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
-	0x74, 0x79, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x61, 0x70, 0x69,
-	0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x69, 0x6e, 0x66,
-	0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x54, 0x0a, 0x0b, 0x47,
-	0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
-	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
-	0x74, 0x79, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73,
-	0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x22, 0x0e,
-	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x3a, 0x01,
-	0x2a, 0x12, 0x67, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f,
-	0x64, 0x65, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x53, 0x65,
-	0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
-	0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
-	0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93,
-	0x02, 0x18, 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x6f,
-	0x64, 0x65, 0x2f, 0x73, 0x65, 0x6e, 0x64, 0x3a, 0x01, 0x2a, 0x12, 0x6a, 0x0a, 0x0e, 0x43, 0x68,
-	0x65, 0x63, 0x6b, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1f, 0x2e, 0x61,
-	0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x68, 0x6f,
-	0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
-	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
-	0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, 0x14, 0x2f,
-	0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x63, 0x68,
-	0x65, 0x63, 0x6b, 0x3a, 0x01, 0x2a, 0x12, 0xa9, 0x01, 0x0a, 0x1e, 0x43, 0x68, 0x65, 0x63, 0x6b,
-	0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c,
-	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x2f, 0x2e, 0x61, 0x70, 0x69, 0x2e,
-	0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61,
-	0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
-	0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x70, 0x69,
-	0x2e, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50,
-	0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
-	0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02,
-	0x21, 0x22, 0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x68, 0x65,
-	0x63, 0x6b, 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x3a,
-	0x01, 0x2a, 0x12, 0x81, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65,
-	0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x2e, 0x61, 0x70,
-	0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72,
-	0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65,
-	0x71, 0x1a, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e,
-	0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66,
-	0x6f, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x61, 0x70, 0x69, 0x2f,
-	0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x63, 0x69, 0x72,
-	0x63, 0x6c, 0x65, 0x3a, 0x01, 0x2a, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73,
-	0x65, 0x72, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e,
-	0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70,
-	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72,
-	0x3b, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x65, 0x70, 0x6c, 0x79, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61,
+	0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x64, 0x65,
+	0x62, 0x75, 0x67, 0x3a, 0x01, 0x2a, 0x12, 0x69, 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72,
+	0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61,
+	0x73, 0x65, 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, 0x62, 0x61,
+	0x73, 0x65, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x22, 0x82,
+	0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72,
+	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, 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, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,
+	0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
+	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x27, 0x82, 0xd3, 0xe4,
+	0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75,
+	0x70, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f,
+	0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x54, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49,
+	0x6e, 0x66, 0x6f, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
+	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x61, 0x70,
+	0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22,
+	0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x22, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73,
+	0x65, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x3a, 0x01, 0x2a, 0x12, 0x67, 0x0a, 0x0d, 0x53, 0x65,
+	0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x2e, 0x61, 0x70,
+	0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65,
+	0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
+	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
+	0x70, 0x74, 0x79, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x22, 0x13, 0x2f, 0x61, 0x70,
+	0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x73, 0x65, 0x6e, 0x64,
+	0x3a, 0x01, 0x2a, 0x12, 0x6a, 0x0a, 0x0e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x68, 0x6f, 0x6e,
+	0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72,
+	0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52,
+	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
+	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1f,
+	0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65,
+	0x72, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x3a, 0x01, 0x2a, 0x12,
+	0x92, 0x01, 0x0a, 0x1e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72,
+	0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68,
+	0x69, 0x70, 0x12, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x50, 0x61,
+	0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x2d, 0x2e, 0x61,
+	0x70, 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65,
+	0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69,
+	0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x27, 0x82, 0xd3, 0xe4,
+	0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63,
+	0x68, 0x65, 0x63, 0x6b, 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69,
+	0x70, 0x3a, 0x01, 0x2a, 0x12, 0x95, 0x01, 0x0a, 0x1f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55,
+	0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61,
+	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62,
+	0x61, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x50, 0x61, 0x72,
+	0x61, 0x6d, 0x1a, 0x2e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x43, 0x72,
+	0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49,
+	0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x70,
+	0x6c, 0x79, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, 0x1d, 0x2f, 0x61, 0x70, 0x69,
+	0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x2f, 0x72, 0x65, 0x6c,
+	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x3a, 0x01, 0x2a, 0x12, 0x75, 0x0a, 0x14,
+	0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65,
+	0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e,
+	0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x1e,
+	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x72,
+	0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x23,
+	0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72,
+	0x74, 0x6e, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65,
+	0x3a, 0x01, 0x2a, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x50,
+	0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f,
+	0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74,
+	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x3b, 0x75, 0x73,
+	0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -442,40 +398,42 @@ func file_user_proto_rawDescGZIP() []byte {
 	return file_user_proto_rawDescData
 }
 
-var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
+var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
 var file_user_proto_goTypes = []interface{}{
-	(*CheckUserPartnerIsRelationshipRequest)(nil), // 0: api.user.CheckUserPartnerIsRelationshipRequest
-	(*UserInfo)(nil),                                 // 1: api.user.UserInfo
-	(*UpdateUserInformationRequest)(nil),             // 2: api.user.UpdateUserInformationRequest
-	(*SendPhoneCodeRequest)(nil),                     // 3: api.user.SendPhoneCodeRequest
-	(*CheckPhoneCodeRequest)(nil),                    // 4: api.user.CheckPhoneCodeRequest
-	(*base.DebugLoginRequest)(nil),                   // 5: api.base.DebugLoginRequest
-	(*base.AuthorizationRequest)(nil),                // 6: api.base.AuthorizationRequest
-	(*emptypb.Empty)(nil),                            // 7: google.protobuf.Empty
-	(*partner.GetPartnerCircleInfoReq)(nil),          // 8: api.partner.GetPartnerCircleInfoReq
-	(*base.TokenReply)(nil),                          // 9: api.base.TokenReply
-	(*chat.CheckUserPartnerIsRelationshipReply)(nil), // 10: api.chat.CheckUserPartnerIsRelationshipReply
-	(*partner.PartnerCircleInfo)(nil),                // 11: api.partner.PartnerCircleInfo
+	(*UserInfo)(nil),                                  // 0: api.user.UserInfo
+	(*UpdateUserInformationRequest)(nil),              // 1: api.user.UpdateUserInformationRequest
+	(*SendPhoneCodeRequest)(nil),                      // 2: api.user.SendPhoneCodeRequest
+	(*CheckPhoneCodeRequest)(nil),                     // 3: api.user.CheckPhoneCodeRequest
+	(*base.DebugLoginRequest)(nil),                    // 4: api.base.DebugLoginRequest
+	(*base.AuthorizationRequest)(nil),                 // 5: api.base.AuthorizationRequest
+	(*emptypb.Empty)(nil),                             // 6: google.protobuf.Empty
+	(*base.PartnerIDParam)(nil),                       // 7: api.base.PartnerIDParam
+	(*base.TokenReply)(nil),                           // 8: api.base.TokenReply
+	(*chat.CheckUserPartnerIsRelationshipReply)(nil),  // 9: api.chat.CheckUserPartnerIsRelationshipReply
+	(*chat.CreateUserPartnerIsRelationshipReply)(nil), // 10: api.chat.CreateUserPartnerIsRelationshipReply
+	(*partner.PartnerCircleInfo)(nil),                 // 11: api.partner.PartnerCircleInfo
 }
 var file_user_proto_depIdxs = []int32{
-	5,  // 0: api.user.User.DebugLogin:input_type -> api.base.DebugLoginRequest
-	6,  // 1: api.user.User.Authorization:input_type -> api.base.AuthorizationRequest
-	2,  // 2: api.user.User.UpdateUserInformation:input_type -> api.user.UpdateUserInformationRequest
-	7,  // 3: api.user.User.GetUserInfo:input_type -> google.protobuf.Empty
-	3,  // 4: api.user.User.SendPhoneCode:input_type -> api.user.SendPhoneCodeRequest
-	4,  // 5: api.user.User.CheckPhoneCode:input_type -> api.user.CheckPhoneCodeRequest
-	0,  // 6: api.user.User.CheckUserPartnerIsRelationship:input_type -> api.user.CheckUserPartnerIsRelationshipRequest
-	8,  // 7: api.user.User.GetPartnerCircleInfo:input_type -> api.partner.GetPartnerCircleInfoReq
-	9,  // 8: api.user.User.DebugLogin:output_type -> api.base.TokenReply
-	9,  // 9: api.user.User.Authorization:output_type -> api.base.TokenReply
-	7,  // 10: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
-	1,  // 11: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
-	7,  // 12: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
-	7,  // 13: api.user.User.CheckPhoneCode:output_type -> google.protobuf.Empty
-	10, // 14: api.user.User.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
-	11, // 15: api.user.User.GetPartnerCircleInfo:output_type -> api.partner.PartnerCircleInfo
-	8,  // [8:16] is the sub-list for method output_type
-	0,  // [0:8] is the sub-list for method input_type
+	4,  // 0: api.user.User.DebugLogin:input_type -> api.base.DebugLoginRequest
+	5,  // 1: api.user.User.Authorization:input_type -> api.base.AuthorizationRequest
+	1,  // 2: api.user.User.UpdateUserInformation:input_type -> api.user.UpdateUserInformationRequest
+	6,  // 3: api.user.User.GetUserInfo:input_type -> google.protobuf.Empty
+	2,  // 4: api.user.User.SendPhoneCode:input_type -> api.user.SendPhoneCodeRequest
+	3,  // 5: api.user.User.CheckPhoneCode:input_type -> api.user.CheckPhoneCodeRequest
+	7,  // 6: api.user.User.CheckUserPartnerIsRelationship:input_type -> api.base.PartnerIDParam
+	7,  // 7: api.user.User.CreateUserPartnerIsRelationship:input_type -> api.base.PartnerIDParam
+	7,  // 8: api.user.User.GetPartnerCircleInfo:input_type -> api.base.PartnerIDParam
+	8,  // 9: api.user.User.DebugLogin:output_type -> api.base.TokenReply
+	8,  // 10: api.user.User.Authorization:output_type -> api.base.TokenReply
+	6,  // 11: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
+	0,  // 12: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
+	6,  // 13: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
+	6,  // 14: api.user.User.CheckPhoneCode:output_type -> google.protobuf.Empty
+	9,  // 15: api.user.User.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
+	10, // 16: api.user.User.CreateUserPartnerIsRelationship:output_type -> api.chat.CreateUserPartnerIsRelationshipReply
+	11, // 17: api.user.User.GetPartnerCircleInfo:output_type -> api.partner.PartnerCircleInfo
+	9,  // [9:18] is the sub-list for method output_type
+	0,  // [0:9] 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
@@ -488,18 +446,6 @@ func file_user_proto_init() {
 	}
 	if !protoimpl.UnsafeEnabled {
 		file_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*CheckUserPartnerIsRelationshipRequest); i {
-			case 0:
-				return &v.state
-			case 1:
-				return &v.sizeCache
-			case 2:
-				return &v.unknownFields
-			default:
-				return nil
-			}
-		}
-		file_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*UserInfo); i {
 			case 0:
 				return &v.state
@@ -511,7 +457,7 @@ func file_user_proto_init() {
 				return nil
 			}
 		}
-		file_user_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+		file_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*UpdateUserInformationRequest); i {
 			case 0:
 				return &v.state
@@ -523,7 +469,7 @@ func file_user_proto_init() {
 				return nil
 			}
 		}
-		file_user_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+		file_user_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*SendPhoneCodeRequest); i {
 			case 0:
 				return &v.state
@@ -535,7 +481,7 @@ func file_user_proto_init() {
 				return nil
 			}
 		}
-		file_user_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+		file_user_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*CheckPhoneCodeRequest); i {
 			case 0:
 				return &v.state
@@ -554,7 +500,7 @@ func file_user_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_user_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   5,
+			NumMessages:   4,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 8 - 6
api/user/user.proto

@@ -50,13 +50,19 @@ service User {
       body:"*"
     };
   };
-  rpc CheckUserPartnerIsRelationship (CheckUserPartnerIsRelationshipRequest) returns (chat.CheckUserPartnerIsRelationshipReply){
+  rpc CheckUserPartnerIsRelationship (base.PartnerIDParam) returns (chat.CheckUserPartnerIsRelationshipReply){
     option (google.api.http) = {
       post: "/api/user/check/relationship",
       body:"*"
     };
   };
-  rpc GetPartnerCircleInfo (partner.GetPartnerCircleInfoReq) returns (partner.PartnerCircleInfo){
+  rpc CreateUserPartnerIsRelationship (base.PartnerIDParam) returns (chat.CreateUserPartnerIsRelationshipReply){
+    option (google.api.http) = {
+      post: "/api/user/create/relationship",
+      body:"*"
+    };
+  };
+  rpc GetPartnerCircleInfo (base.PartnerIDParam) returns (partner.PartnerCircleInfo){
     option (google.api.http) = {
       post: "/api/partner/info/circle",
       body:"*"
@@ -64,10 +70,6 @@ service User {
   };
 }
 
-message CheckUserPartnerIsRelationshipRequest{
-  string partnerID = 1;
-}
-
 message UserInfo{
  string id = 1; // id
  string nickname = 2;// 昵称

+ 48 - 12
api/user/user_grpc.pb.go

@@ -28,8 +28,9 @@ type UserClient interface {
 	GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserInfo, error)
 	SendPhoneCode(ctx context.Context, in *SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	CheckPhoneCode(ctx context.Context, in *CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
-	CheckUserPartnerIsRelationship(ctx context.Context, in *CheckUserPartnerIsRelationshipRequest, opts ...grpc.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error)
-	GetPartnerCircleInfo(ctx context.Context, in *partner.GetPartnerCircleInfoReq, opts ...grpc.CallOption) (*partner.PartnerCircleInfo, error)
+	CheckUserPartnerIsRelationship(ctx context.Context, in *base.PartnerIDParam, opts ...grpc.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error)
+	CreateUserPartnerIsRelationship(ctx context.Context, in *base.PartnerIDParam, opts ...grpc.CallOption) (*chat.CreateUserPartnerIsRelationshipReply, error)
+	GetPartnerCircleInfo(ctx context.Context, in *base.PartnerIDParam, opts ...grpc.CallOption) (*partner.PartnerCircleInfo, error)
 }
 
 type userClient struct {
@@ -94,7 +95,7 @@ func (c *userClient) CheckPhoneCode(ctx context.Context, in *CheckPhoneCodeReque
 	return out, nil
 }
 
-func (c *userClient) CheckUserPartnerIsRelationship(ctx context.Context, in *CheckUserPartnerIsRelationshipRequest, opts ...grpc.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error) {
+func (c *userClient) CheckUserPartnerIsRelationship(ctx context.Context, in *base.PartnerIDParam, opts ...grpc.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error) {
 	out := new(chat.CheckUserPartnerIsRelationshipReply)
 	err := c.cc.Invoke(ctx, "/api.user.User/CheckUserPartnerIsRelationship", in, out, opts...)
 	if err != nil {
@@ -103,7 +104,16 @@ func (c *userClient) CheckUserPartnerIsRelationship(ctx context.Context, in *Che
 	return out, nil
 }
 
-func (c *userClient) GetPartnerCircleInfo(ctx context.Context, in *partner.GetPartnerCircleInfoReq, opts ...grpc.CallOption) (*partner.PartnerCircleInfo, error) {
+func (c *userClient) CreateUserPartnerIsRelationship(ctx context.Context, in *base.PartnerIDParam, opts ...grpc.CallOption) (*chat.CreateUserPartnerIsRelationshipReply, error) {
+	out := new(chat.CreateUserPartnerIsRelationshipReply)
+	err := c.cc.Invoke(ctx, "/api.user.User/CreateUserPartnerIsRelationship", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *userClient) GetPartnerCircleInfo(ctx context.Context, in *base.PartnerIDParam, opts ...grpc.CallOption) (*partner.PartnerCircleInfo, error) {
 	out := new(partner.PartnerCircleInfo)
 	err := c.cc.Invoke(ctx, "/api.user.User/GetPartnerCircleInfo", in, out, opts...)
 	if err != nil {
@@ -122,8 +132,9 @@ type UserServer interface {
 	GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
 	SendPhoneCode(context.Context, *SendPhoneCodeRequest) (*emptypb.Empty, error)
 	CheckPhoneCode(context.Context, *CheckPhoneCodeRequest) (*emptypb.Empty, error)
-	CheckUserPartnerIsRelationship(context.Context, *CheckUserPartnerIsRelationshipRequest) (*chat.CheckUserPartnerIsRelationshipReply, error)
-	GetPartnerCircleInfo(context.Context, *partner.GetPartnerCircleInfoReq) (*partner.PartnerCircleInfo, error)
+	CheckUserPartnerIsRelationship(context.Context, *base.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error)
+	CreateUserPartnerIsRelationship(context.Context, *base.PartnerIDParam) (*chat.CreateUserPartnerIsRelationshipReply, error)
+	GetPartnerCircleInfo(context.Context, *base.PartnerIDParam) (*partner.PartnerCircleInfo, error)
 	mustEmbedUnimplementedUserServer()
 }
 
@@ -149,10 +160,13 @@ func (UnimplementedUserServer) SendPhoneCode(context.Context, *SendPhoneCodeRequ
 func (UnimplementedUserServer) CheckPhoneCode(context.Context, *CheckPhoneCodeRequest) (*emptypb.Empty, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method CheckPhoneCode not implemented")
 }
-func (UnimplementedUserServer) CheckUserPartnerIsRelationship(context.Context, *CheckUserPartnerIsRelationshipRequest) (*chat.CheckUserPartnerIsRelationshipReply, error) {
+func (UnimplementedUserServer) CheckUserPartnerIsRelationship(context.Context, *base.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")
 }
-func (UnimplementedUserServer) GetPartnerCircleInfo(context.Context, *partner.GetPartnerCircleInfoReq) (*partner.PartnerCircleInfo, error) {
+func (UnimplementedUserServer) CreateUserPartnerIsRelationship(context.Context, *base.PartnerIDParam) (*chat.CreateUserPartnerIsRelationshipReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method CreateUserPartnerIsRelationship not implemented")
+}
+func (UnimplementedUserServer) GetPartnerCircleInfo(context.Context, *base.PartnerIDParam) (*partner.PartnerCircleInfo, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerCircleInfo not implemented")
 }
 func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
@@ -277,7 +291,7 @@ func _User_CheckPhoneCode_Handler(srv interface{}, ctx context.Context, dec func
 }
 
 func _User_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(CheckUserPartnerIsRelationshipRequest)
+	in := new(base.PartnerIDParam)
 	if err := dec(in); err != nil {
 		return nil, err
 	}
@@ -289,13 +303,31 @@ func _User_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.C
 		FullMethod: "/api.user.User/CheckUserPartnerIsRelationship",
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(UserServer).CheckUserPartnerIsRelationship(ctx, req.(*CheckUserPartnerIsRelationshipRequest))
+		return srv.(UserServer).CheckUserPartnerIsRelationship(ctx, req.(*base.PartnerIDParam))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _User_CreateUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(base.PartnerIDParam)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UserServer).CreateUserPartnerIsRelationship(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.user.User/CreateUserPartnerIsRelationship",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UserServer).CreateUserPartnerIsRelationship(ctx, req.(*base.PartnerIDParam))
 	}
 	return interceptor(ctx, in, info, handler)
 }
 
 func _User_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(partner.GetPartnerCircleInfoReq)
+	in := new(base.PartnerIDParam)
 	if err := dec(in); err != nil {
 		return nil, err
 	}
@@ -307,7 +339,7 @@ func _User_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context, de
 		FullMethod: "/api.user.User/GetPartnerCircleInfo",
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(UserServer).GetPartnerCircleInfo(ctx, req.(*partner.GetPartnerCircleInfoReq))
+		return srv.(UserServer).GetPartnerCircleInfo(ctx, req.(*base.PartnerIDParam))
 	}
 	return interceptor(ctx, in, info, handler)
 }
@@ -347,6 +379,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "CheckUserPartnerIsRelationship",
 			Handler:    _User_CheckUserPartnerIsRelationship_Handler,
 		},
+		{
+			MethodName: "CreateUserPartnerIsRelationship",
+			Handler:    _User_CreateUserPartnerIsRelationship_Handler,
+		},
 		{
 			MethodName: "GetPartnerCircleInfo",
 			Handler:    _User_GetPartnerCircleInfo_Handler,

+ 53 - 10
api/user/user_http.pb.go

@@ -32,9 +32,10 @@ const _ = http.SupportPackageIsVersion1
 type UserHTTPServer interface {
 	Authorization(context.Context, *base1.AuthorizationRequest) (*base1.TokenReply, error)
 	CheckPhoneCode(context.Context, *CheckPhoneCodeRequest) (*emptypb.Empty, error)
-	CheckUserPartnerIsRelationship(context.Context, *CheckUserPartnerIsRelationshipRequest) (*chat.CheckUserPartnerIsRelationshipReply, error)
+	CheckUserPartnerIsRelationship(context.Context, *base1.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error)
+	CreateUserPartnerIsRelationship(context.Context, *base1.PartnerIDParam) (*chat.CreateUserPartnerIsRelationshipReply, error)
 	DebugLogin(context.Context, *base1.DebugLoginRequest) (*base1.TokenReply, error)
-	GetPartnerCircleInfo(context.Context, *partner.GetPartnerCircleInfoReq) (*partner.PartnerCircleInfo, error)
+	GetPartnerCircleInfo(context.Context, *base1.PartnerIDParam) (*partner.PartnerCircleInfo, error)
 	GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
 	SendPhoneCode(context.Context, *SendPhoneCodeRequest) (*emptypb.Empty, error)
 	UpdateUserInformation(context.Context, *UpdateUserInformationRequest) (*emptypb.Empty, error)
@@ -49,6 +50,7 @@ func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
 	r.POST("/api/user/code/send", _User_SendPhoneCode0_HTTP_Handler(srv))
 	r.POST("/api/user/code/check", _User_CheckPhoneCode0_HTTP_Handler(srv))
 	r.POST("/api/user/check/relationship", _User_CheckUserPartnerIsRelationship0_HTTP_Handler(srv))
+	r.POST("/api/user/create/relationship", _User_CreateUserPartnerIsRelationship0_HTTP_Handler(srv))
 	r.POST("/api/partner/info/circle", _User_GetPartnerCircleInfo0_HTTP_Handler(srv))
 }
 
@@ -216,7 +218,7 @@ func _User_CheckPhoneCode0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Contex
 
 func _User_CheckUserPartnerIsRelationship0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
 	return func(ctx http.Context) error {
-		var in CheckUserPartnerIsRelationshipRequest
+		var in base1.PartnerIDParam
 		if err := ctx.Bind(&in); err != nil {
 			return err
 		}
@@ -225,7 +227,34 @@ func _User_CheckUserPartnerIsRelationship0_HTTP_Handler(srv UserHTTPServer) func
 		}
 		http.SetOperation(ctx, "/api.user.User/CheckUserPartnerIsRelationship")
 		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
-			return srv.CheckUserPartnerIsRelationship(ctx, req.(*CheckUserPartnerIsRelationshipRequest))
+			return srv.CheckUserPartnerIsRelationship(ctx, req.(*base1.PartnerIDParam))
+		})
+		out, err := h(ctx, &in)
+		if err != nil {
+			return err
+		}
+		success := &reply.SuccessReply{
+			Code: 0,
+		}
+		if out != nil {
+			success.Data = out
+		}
+		return ctx.Result(200, success)
+	}
+}
+
+func _User_CreateUserPartnerIsRelationship0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in base1.PartnerIDParam
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.user.User/CreateUserPartnerIsRelationship")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.CreateUserPartnerIsRelationship(ctx, req.(*base1.PartnerIDParam))
 		})
 		out, err := h(ctx, &in)
 		if err != nil {
@@ -243,7 +272,7 @@ func _User_CheckUserPartnerIsRelationship0_HTTP_Handler(srv UserHTTPServer) func
 
 func _User_GetPartnerCircleInfo0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
 	return func(ctx http.Context) error {
-		var in partner.GetPartnerCircleInfoReq
+		var in base1.PartnerIDParam
 		if err := ctx.Bind(&in); err != nil {
 			return err
 		}
@@ -252,7 +281,7 @@ func _User_GetPartnerCircleInfo0_HTTP_Handler(srv UserHTTPServer) func(ctx http.
 		}
 		http.SetOperation(ctx, "/api.user.User/GetPartnerCircleInfo")
 		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
-			return srv.GetPartnerCircleInfo(ctx, req.(*partner.GetPartnerCircleInfoReq))
+			return srv.GetPartnerCircleInfo(ctx, req.(*base1.PartnerIDParam))
 		})
 		out, err := h(ctx, &in)
 		if err != nil {
@@ -271,9 +300,10 @@ func _User_GetPartnerCircleInfo0_HTTP_Handler(srv UserHTTPServer) func(ctx http.
 type UserHTTPClient interface {
 	Authorization(ctx context.Context, req *base1.AuthorizationRequest, opts ...http.CallOption) (rsp *base1.TokenReply, err error)
 	CheckPhoneCode(ctx context.Context, req *CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
-	CheckUserPartnerIsRelationship(ctx context.Context, req *CheckUserPartnerIsRelationshipRequest, opts ...http.CallOption) (rsp *chat.CheckUserPartnerIsRelationshipReply, err error)
+	CheckUserPartnerIsRelationship(ctx context.Context, req *base1.PartnerIDParam, opts ...http.CallOption) (rsp *chat.CheckUserPartnerIsRelationshipReply, err error)
+	CreateUserPartnerIsRelationship(ctx context.Context, req *base1.PartnerIDParam, opts ...http.CallOption) (rsp *chat.CreateUserPartnerIsRelationshipReply, err error)
 	DebugLogin(ctx context.Context, req *base1.DebugLoginRequest, opts ...http.CallOption) (rsp *base1.TokenReply, err error)
-	GetPartnerCircleInfo(ctx context.Context, req *partner.GetPartnerCircleInfoReq, opts ...http.CallOption) (rsp *partner.PartnerCircleInfo, err error)
+	GetPartnerCircleInfo(ctx context.Context, req *base1.PartnerIDParam, opts ...http.CallOption) (rsp *partner.PartnerCircleInfo, err error)
 	GetUserInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UserInfo, err error)
 	SendPhoneCode(ctx context.Context, req *SendPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	UpdateUserInformation(ctx context.Context, req *UpdateUserInformationRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
@@ -313,7 +343,7 @@ func (c *UserHTTPClientImpl) CheckPhoneCode(ctx context.Context, in *CheckPhoneC
 	return &out, err
 }
 
-func (c *UserHTTPClientImpl) CheckUserPartnerIsRelationship(ctx context.Context, in *CheckUserPartnerIsRelationshipRequest, opts ...http.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error) {
+func (c *UserHTTPClientImpl) CheckUserPartnerIsRelationship(ctx context.Context, in *base1.PartnerIDParam, opts ...http.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error) {
 	var out chat.CheckUserPartnerIsRelationshipReply
 	pattern := "/api/user/check/relationship"
 	path := binding.EncodeURL(pattern, in, false)
@@ -326,6 +356,19 @@ func (c *UserHTTPClientImpl) CheckUserPartnerIsRelationship(ctx context.Context,
 	return &out, err
 }
 
+func (c *UserHTTPClientImpl) CreateUserPartnerIsRelationship(ctx context.Context, in *base1.PartnerIDParam, opts ...http.CallOption) (*chat.CreateUserPartnerIsRelationshipReply, error) {
+	var out chat.CreateUserPartnerIsRelationshipReply
+	pattern := "/api/user/create/relationship"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.user.User/CreateUserPartnerIsRelationship"))
+	opts = append(opts, http.PathTemplate(pattern))
+	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return &out, err
+}
+
 func (c *UserHTTPClientImpl) DebugLogin(ctx context.Context, in *base1.DebugLoginRequest, opts ...http.CallOption) (*base1.TokenReply, error) {
 	var out base1.TokenReply
 	pattern := "/api/user/login/debug"
@@ -339,7 +382,7 @@ func (c *UserHTTPClientImpl) DebugLogin(ctx context.Context, in *base1.DebugLogi
 	return &out, err
 }
 
-func (c *UserHTTPClientImpl) GetPartnerCircleInfo(ctx context.Context, in *partner.GetPartnerCircleInfoReq, opts ...http.CallOption) (*partner.PartnerCircleInfo, error) {
+func (c *UserHTTPClientImpl) GetPartnerCircleInfo(ctx context.Context, in *base1.PartnerIDParam, opts ...http.CallOption) (*partner.PartnerCircleInfo, error) {
 	var out partner.PartnerCircleInfo
 	pattern := "/api/partner/info/circle"
 	path := binding.EncodeURL(pattern, in, false)

+ 14 - 0
js/api/base/base_pb.ts

@@ -8,4 +8,18 @@ export interface DebugLoginRequest{
     id?:string;
     code?:string;
 }
+export interface UserAndPartnerIdParam{
+    partnerId?:string;
+    userId?:string;
+}
+export interface User1AndUser2IdParam{
+    user1?:string;
+    user2?:string;
+}
+export interface PartnerIDParam{
+    partnerID?:string;
+}
+export interface UserIDParam{
+    userId?:string;
+}
 

+ 3 - 4
js/api/chat/chat_pb.ts

@@ -1,9 +1,8 @@
-export interface CheckUserPartnerIsRelationshipRequest{
-    partnerID?:string;
-    userID?:string;
-}
 export interface CheckUserPartnerIsRelationshipReply{
     isBuildRelationship?:boolean;
     roomId?:number;
 }
+export interface CreateUserPartnerIsRelationshipReply{
+    roomId?:number;
+}
 

+ 3 - 3
js/api/partner/partner_http_pb.ts

@@ -1,7 +1,7 @@
 // @ts-ignore
 import { request } from 'ice';
-import {AuthorizationRequest,TokenReply,DebugLoginRequest} from "../base/base_pb";
-import {PartnerInfo,GetPartnerCircleInfoReq,PartnerCircleInfo} from "./partner_pb";
+import {AuthorizationRequest,TokenReply,DebugLoginRequest,PartnerIDParam} from "../base/base_pb";
+import {PartnerInfo,PartnerCircleInfo} from "./partner_pb";
 
 const PartnerService = {
   Authorization: async (req?: AuthorizationRequest) => {
@@ -16,7 +16,7 @@ const PartnerService = {
 	const res = await request.post<{ data: PartnerInfo, code: string, message: string }>('/api/partner/info', req);
     return res.data;
   },
-  GetPartnerCircleInfo: async (req?: GetPartnerCircleInfoReq) => {
+  GetPartnerCircleInfo: async (req?: PartnerIDParam) => {
 	const res = await request.post<{ data: PartnerCircleInfo, code: string, message: string }>('/api/partner/info/circle', req);
     return res.data;
   },

+ 0 - 3
js/api/partner/partner_pb.ts

@@ -1,6 +1,3 @@
-export interface GetPartnerCircleInfoReq{
-    partnerId?:string;
-}
 export interface PartnerCircleInfo{
     /**  id */
     id?:string;

+ 10 - 6
js/api/user/user_http_pb.ts

@@ -1,9 +1,9 @@
 // @ts-ignore
 import { request } from 'ice';
-import {DebugLoginRequest,TokenReply,AuthorizationRequest} from "../base/base_pb";
-import {UpdateUserInformationRequest,UserInfo,SendPhoneCodeRequest,CheckPhoneCodeRequest,CheckUserPartnerIsRelationshipRequest} from "./user_pb";
-import {CheckUserPartnerIsRelationshipReply} from "../chat/chat_pb";
-import {GetPartnerCircleInfoReq,PartnerCircleInfo} from "../partner/partner_pb";
+import {DebugLoginRequest,TokenReply,AuthorizationRequest,PartnerIDParam} from "../base/base_pb";
+import {UpdateUserInformationRequest,UserInfo,SendPhoneCodeRequest,CheckPhoneCodeRequest} from "./user_pb";
+import {CheckUserPartnerIsRelationshipReply,CreateUserPartnerIsRelationshipReply} from "../chat/chat_pb";
+import {PartnerCircleInfo} from "../partner/partner_pb";
 
 const UserService = {
   DebugLogin: async (req?: DebugLoginRequest) => {
@@ -30,11 +30,15 @@ const UserService = {
 	const res = await request.post('/api/user/code/check', req);
     return res.data;
   },
-  CheckUserPartnerIsRelationship: async (req?: CheckUserPartnerIsRelationshipRequest) => {
+  CheckUserPartnerIsRelationship: async (req?: PartnerIDParam) => {
 	const res = await request.post<{ data: CheckUserPartnerIsRelationshipReply, code: string, message: string }>('/api/user/check/relationship', req);
     return res.data;
   },
-  GetPartnerCircleInfo: async (req?: GetPartnerCircleInfoReq) => {
+  CreateUserPartnerIsRelationship: async (req?: PartnerIDParam) => {
+	const res = await request.post<{ data: CreateUserPartnerIsRelationshipReply, code: string, message: string }>('/api/user/create/relationship', req);
+    return res.data;
+  },
+  GetPartnerCircleInfo: async (req?: PartnerIDParam) => {
 	const res = await request.post<{ data: PartnerCircleInfo, code: string, message: string }>('/api/partner/info/circle', req);
     return res.data;
   },

+ 0 - 3
js/api/user/user_pb.ts

@@ -1,6 +1,3 @@
-export interface CheckUserPartnerIsRelationshipRequest{
-    partnerID?:string;
-}
 export interface UserInfo{
     /**  id */
     id?:string;