好友申请 好友同意推送

This commit is contained in:
meixiongfeng 2023-08-21 19:20:35 +08:00
parent dddb7e6e49
commit 128b63826c
3 changed files with 20 additions and 20 deletions

View File

@ -60,7 +60,7 @@ func (this *apiComp) Agree(session comm.IUserSession, req *pb.FriendAgreeReq) (e
//把设置的助战英雄推送给好友
push := &pb.FriendAddAgreePush{
TargetUid: friendId,
Info: self,
Info: this.setDefaultFriendUserBaseInfo(friendId),
}
this.module.Debug("推送加好友成功",

View File

@ -141,7 +141,7 @@ func (this *apiComp) Apply(session comm.IUserSession, req *pb.FriendApplyReq) (e
// 申请推送
push := &pb.FriendAddApplyPush{
TargetUid: self.Uid,
Info: self,
Info: this.setDefaultFriendUserBaseInfo(self.Uid),
}
this.module.Debug("推送加好友成功",

View File

@ -2126,7 +2126,7 @@ type FriendAddAgreePush struct {
unknownFields protoimpl.UnknownFields
TargetUid string `protobuf:"bytes,1,opt,name=targetUid,proto3" json:"targetUid"` // 好友id
Info *DBFriend `protobuf:"bytes,2,opt,name=info,proto3" json:"info"`
Info *FriendBase `protobuf:"bytes,2,opt,name=info,proto3" json:"info"`
}
func (x *FriendAddAgreePush) Reset() {
@ -2168,7 +2168,7 @@ func (x *FriendAddAgreePush) GetTargetUid() string {
return ""
}
func (x *FriendAddAgreePush) GetInfo() *DBFriend {
func (x *FriendAddAgreePush) GetInfo() *FriendBase {
if x != nil {
return x.Info
}
@ -2181,7 +2181,7 @@ type FriendAddApplyPush struct {
unknownFields protoimpl.UnknownFields
TargetUid string `protobuf:"bytes,1,opt,name=targetUid,proto3" json:"targetUid"` // 好友id
Info *DBFriend `protobuf:"bytes,2,opt,name=info,proto3" json:"info"`
Info *FriendBase `protobuf:"bytes,2,opt,name=info,proto3" json:"info"`
}
func (x *FriendAddApplyPush) Reset() {
@ -2223,7 +2223,7 @@ func (x *FriendAddApplyPush) GetTargetUid() string {
return ""
}
func (x *FriendAddApplyPush) GetInfo() *DBFriend {
func (x *FriendAddApplyPush) GetInfo() *FriendBase {
if x != nil {
return x.Info
}
@ -2391,19 +2391,19 @@ var file_friend_friend_msg_proto_rawDesc = []byte{
0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
0x55, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20,
0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x51, 0x0a, 0x12, 0x46,
0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x53, 0x0a, 0x12, 0x46,
0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x41, 0x67, 0x72, 0x65, 0x65, 0x50, 0x75, 0x73,
0x68, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x69, 0x64, 0x12,
0x1d, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e,
0x44, 0x42, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x51,
0x0a, 0x12, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x79,
0x50, 0x75, 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x55,
0x69, 0x64, 0x12, 0x1d, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x09, 0x2e, 0x44, 0x42, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x52, 0x04, 0x69, 0x6e, 0x66,
0x6f, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
0x1f, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e,
0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x42, 0x61, 0x73, 0x65, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f,
0x22, 0x53, 0x0a, 0x12, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x41, 0x70, 0x70,
0x6c, 0x79, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
0x55, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65,
0x74, 0x55, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x42, 0x61, 0x73, 0x65, 0x52,
0x04, 0x69, 0x6e, 0x66, 0x6f, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@ -2479,8 +2479,8 @@ var file_friend_friend_msg_proto_depIdxs = []int32{
45, // 8: FriendAssistlistResp.record:type_name -> AssistRecord
0, // 9: FriendAssistHeroUpdatePush.friend:type_name -> FriendBase
0, // 10: FriendAssistHeroListResp.friends:type_name -> FriendBase
44, // 11: FriendAddAgreePush.info:type_name -> DBFriend
44, // 12: FriendAddApplyPush.info:type_name -> DBFriend
0, // 11: FriendAddAgreePush.info:type_name -> FriendBase
0, // 12: FriendAddApplyPush.info:type_name -> FriendBase
13, // [13:13] is the sub-list for method output_type
13, // [13:13] is the sub-list for method input_type
13, // [13:13] is the sub-list for extension type_name