|
|
@@ -85,7 +85,7 @@ type IsFriendsResp struct { |
|
|
|
unknownFields protoimpl.UnknownFields |
|
|
|
|
|
|
|
IsFriend int64 `protobuf:"varint,1,opt,name=is_friend,json=isFriend,proto3" json:"is_friend,omitempty"` |
|
|
|
IsCanAdd int64 `protobuf:"varint,2,opt,name=is_can_add,json=isCanAdd,proto3" json:"is_can_add,omitempty"` |
|
|
|
User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // 用户信息 |
|
|
|
} |
|
|
|
|
|
|
|
func (x *IsFriendsResp) Reset() { |
|
|
@@ -127,11 +127,11 @@ func (x *IsFriendsResp) GetIsFriend() int64 { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
|
|
|
|
func (x *IsFriendsResp) GetIsCanAdd() int64 { |
|
|
|
func (x *IsFriendsResp) GetUser() *User { |
|
|
|
if x != nil { |
|
|
|
return x.IsCanAdd |
|
|
|
return x.User |
|
|
|
} |
|
|
|
return 0 |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
type Emoticon struct { |
|
|
@@ -935,9 +935,9 @@ var file_business_ext_proto_rawDesc = []byte{ |
|
|
|
0x0b, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x22, 0x4a, 0x0a, 0x0d, |
|
|
|
0x49, 0x73, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, |
|
|
|
0x09, 0x69, 0x73, 0x5f, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, |
|
|
|
0x52, 0x08, 0x69, 0x73, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x69, 0x73, |
|
|
|
0x5f, 0x63, 0x61, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, |
|
|
|
0x69, 0x73, 0x43, 0x61, 0x6e, 0x41, 0x64, 0x64, 0x22, 0x5f, 0x0a, 0x08, 0x45, 0x6d, 0x6f, 0x74, |
|
|
|
0x52, 0x08, 0x69, 0x73, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, |
|
|
|
0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, |
|
|
|
0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x5f, 0x0a, 0x08, 0x45, 0x6d, 0x6f, 0x74, |
|
|
|
0x69, 0x63, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, |
|
|
|
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x6d, 0x67, 0x5f, |
|
|
|
0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x6d, 0x67, 0x55, 0x72, |
|
|
@@ -1015,7 +1015,7 @@ var file_business_ext_proto_rawDesc = []byte{ |
|
|
|
0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x30, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, |
|
|
|
0x63, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x05, 0x75, 0x73, |
|
|
|
0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, |
|
|
|
0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x32, 0xed, 0x02, 0x0a, 0x0b, 0x42, |
|
|
|
0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x32, 0xea, 0x02, 0x0a, 0x0b, 0x42, |
|
|
|
0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x45, 0x78, 0x74, 0x12, 0x27, 0x0a, 0x06, 0x53, 0x69, |
|
|
|
0x67, 0x6e, 0x49, 0x6e, 0x12, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, |
|
|
|
0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, |
|
|
@@ -1035,12 +1035,11 @@ var file_business_ext_proto_rawDesc = []byte{ |
|
|
|
0x52, 0x65, 0x73, 0x70, 0x12, 0x2f, 0x0a, 0x0c, 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, |
|
|
|
0x4c, 0x69, 0x73, 0x74, 0x12, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, |
|
|
|
0x14, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, 0x6f, 0x6e, 0x4c, 0x69, 0x73, |
|
|
|
0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x33, 0x0a, 0x09, 0x49, 0x73, 0x46, 0x72, 0x69, 0x65, 0x6e, |
|
|
|
0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x09, 0x49, 0x73, 0x46, 0x72, 0x69, 0x65, 0x6e, |
|
|
|
0x64, 0x73, 0x12, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x73, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, |
|
|
|
0x73, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x6f, 0x74, 0x69, 0x63, |
|
|
|
0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0d, 0x5a, 0x0b, 0x67, 0x69, |
|
|
|
0x6d, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
|
|
|
0x33, |
|
|
|
0x73, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x73, 0x46, 0x72, 0x69, 0x65, |
|
|
|
0x6e, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0d, 0x5a, 0x0b, 0x67, 0x69, 0x6d, 0x2f, 0x70, |
|
|
|
0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
|
|
|
} |
|
|
|
|
|
|
|
var ( |
|
|
@@ -1074,28 +1073,29 @@ var file_business_ext_proto_goTypes = []interface{}{ |
|
|
|
(*Empty)(nil), // 14: pb.Empty |
|
|
|
} |
|
|
|
var file_business_ext_proto_depIdxs = []int32{ |
|
|
|
2, // 0: pb.EmoticonListResp.emoticons:type_name -> pb.Emoticon |
|
|
|
8, // 1: pb.GetUserResp.user:type_name -> pb.User |
|
|
|
8, // 2: pb.SearchUserResp.users:type_name -> pb.User |
|
|
|
4, // 3: pb.BusinessExt.SignIn:input_type -> pb.SignInReq |
|
|
|
9, // 4: pb.BusinessExt.GetUser:input_type -> pb.GetUserReq |
|
|
|
11, // 5: pb.BusinessExt.UpdateUser:input_type -> pb.UpdateUserReq |
|
|
|
12, // 6: pb.BusinessExt.SearchUser:input_type -> pb.SearchUserReq |
|
|
|
6, // 7: pb.BusinessExt.CloudUploadFile:input_type -> pb.CloudUploadFileReq |
|
|
|
14, // 8: pb.BusinessExt.EmoticonList:input_type -> pb.Empty |
|
|
|
0, // 9: pb.BusinessExt.IsFriends:input_type -> pb.IsFriendsReq |
|
|
|
5, // 10: pb.BusinessExt.SignIn:output_type -> pb.SignInResp |
|
|
|
10, // 11: pb.BusinessExt.GetUser:output_type -> pb.GetUserResp |
|
|
|
14, // 12: pb.BusinessExt.UpdateUser:output_type -> pb.Empty |
|
|
|
13, // 13: pb.BusinessExt.SearchUser:output_type -> pb.SearchUserResp |
|
|
|
7, // 14: pb.BusinessExt.CloudUploadFile:output_type -> pb.CloudUploadFileResp |
|
|
|
3, // 15: pb.BusinessExt.EmoticonList:output_type -> pb.EmoticonListResp |
|
|
|
3, // 16: pb.BusinessExt.IsFriends:output_type -> pb.EmoticonListResp |
|
|
|
10, // [10:17] is the sub-list for method output_type |
|
|
|
3, // [3:10] is the sub-list for method input_type |
|
|
|
3, // [3:3] is the sub-list for extension type_name |
|
|
|
3, // [3:3] is the sub-list for extension extendee |
|
|
|
0, // [0:3] is the sub-list for field type_name |
|
|
|
8, // 0: pb.IsFriendsResp.user:type_name -> pb.User |
|
|
|
2, // 1: pb.EmoticonListResp.emoticons:type_name -> pb.Emoticon |
|
|
|
8, // 2: pb.GetUserResp.user:type_name -> pb.User |
|
|
|
8, // 3: pb.SearchUserResp.users:type_name -> pb.User |
|
|
|
4, // 4: pb.BusinessExt.SignIn:input_type -> pb.SignInReq |
|
|
|
9, // 5: pb.BusinessExt.GetUser:input_type -> pb.GetUserReq |
|
|
|
11, // 6: pb.BusinessExt.UpdateUser:input_type -> pb.UpdateUserReq |
|
|
|
12, // 7: pb.BusinessExt.SearchUser:input_type -> pb.SearchUserReq |
|
|
|
6, // 8: pb.BusinessExt.CloudUploadFile:input_type -> pb.CloudUploadFileReq |
|
|
|
14, // 9: pb.BusinessExt.EmoticonList:input_type -> pb.Empty |
|
|
|
0, // 10: pb.BusinessExt.IsFriends:input_type -> pb.IsFriendsReq |
|
|
|
5, // 11: pb.BusinessExt.SignIn:output_type -> pb.SignInResp |
|
|
|
10, // 12: pb.BusinessExt.GetUser:output_type -> pb.GetUserResp |
|
|
|
14, // 13: pb.BusinessExt.UpdateUser:output_type -> pb.Empty |
|
|
|
13, // 14: pb.BusinessExt.SearchUser:output_type -> pb.SearchUserResp |
|
|
|
7, // 15: pb.BusinessExt.CloudUploadFile:output_type -> pb.CloudUploadFileResp |
|
|
|
3, // 16: pb.BusinessExt.EmoticonList:output_type -> pb.EmoticonListResp |
|
|
|
1, // 17: pb.BusinessExt.IsFriends:output_type -> pb.IsFriendsResp |
|
|
|
11, // [11:18] is the sub-list for method output_type |
|
|
|
4, // [4:11] is the sub-list for method input_type |
|
|
|
4, // [4:4] is the sub-list for extension type_name |
|
|
|
4, // [4:4] is the sub-list for extension extendee |
|
|
|
0, // [0:4] is the sub-list for field type_name |
|
|
|
} |
|
|
|
|
|
|
|
func init() { file_business_ext_proto_init() } |
|
|
@@ -1316,7 +1316,7 @@ type BusinessExtClient interface { |
|
|
|
// 获取表情 |
|
|
|
EmoticonList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*EmoticonListResp, error) |
|
|
|
// 判断是否为好友关系 |
|
|
|
IsFriends(ctx context.Context, in *IsFriendsReq, opts ...grpc.CallOption) (*EmoticonListResp, error) |
|
|
|
IsFriends(ctx context.Context, in *IsFriendsReq, opts ...grpc.CallOption) (*IsFriendsResp, error) |
|
|
|
} |
|
|
|
|
|
|
|
type businessExtClient struct { |
|
|
@@ -1381,8 +1381,8 @@ func (c *businessExtClient) EmoticonList(ctx context.Context, in *Empty, opts .. |
|
|
|
return out, nil |
|
|
|
} |
|
|
|
|
|
|
|
func (c *businessExtClient) IsFriends(ctx context.Context, in *IsFriendsReq, opts ...grpc.CallOption) (*EmoticonListResp, error) { |
|
|
|
out := new(EmoticonListResp) |
|
|
|
func (c *businessExtClient) IsFriends(ctx context.Context, in *IsFriendsReq, opts ...grpc.CallOption) (*IsFriendsResp, error) { |
|
|
|
out := new(IsFriendsResp) |
|
|
|
err := c.cc.Invoke(ctx, "/pb.BusinessExt/IsFriends", in, out, opts...) |
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
@@ -1407,7 +1407,7 @@ type BusinessExtServer interface { |
|
|
|
// 获取表情 |
|
|
|
EmoticonList(context.Context, *Empty) (*EmoticonListResp, error) |
|
|
|
// 判断是否为好友关系 |
|
|
|
IsFriends(context.Context, *IsFriendsReq) (*EmoticonListResp, error) |
|
|
|
IsFriends(context.Context, *IsFriendsReq) (*IsFriendsResp, error) |
|
|
|
} |
|
|
|
|
|
|
|
// UnimplementedBusinessExtServer must be embedded to have forward compatible implementations. |
|
|
@@ -1432,7 +1432,7 @@ func (UnimplementedBusinessExtServer) CloudUploadFile(context.Context, *CloudUpl |
|
|
|
func (UnimplementedBusinessExtServer) EmoticonList(context.Context, *Empty) (*EmoticonListResp, error) { |
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method EmoticonList not implemented") |
|
|
|
} |
|
|
|
func (UnimplementedBusinessExtServer) IsFriends(context.Context, *IsFriendsReq) (*EmoticonListResp, error) { |
|
|
|
func (UnimplementedBusinessExtServer) IsFriends(context.Context, *IsFriendsReq) (*IsFriendsResp, error) { |
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method IsFriends not implemented") |
|
|
|
} |
|
|
|
|
|
|
|