Skip to content

Commit

Permalink
update conn
Browse files Browse the repository at this point in the history
  • Loading branch information
showurl committed Feb 24, 2023
1 parent 66d64d9 commit 0db8dde
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/conn/internal/server/route/relation.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,15 @@ func RegisterRelation(svcCtx *svc.ServiceContext) {
}
conngateway.AddRoute("/v1/relation/getFriendList", route)
}
// DeleteFriendReq DeleteFriendResp
{
route := conngateway.Route[*pb.DeleteFriendReq, *pb.DeleteFriendResp]{
NewRequest: func() *pb.DeleteFriendReq {
return &pb.DeleteFriendReq{}
},
Do: svcCtx.RelationService().DeleteFriend,
}
conngateway.AddRoute("/v1/relation/deleteFriend", route)
}
}
}
1 change: 1 addition & 0 deletions common/pb/conn.proto
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ message SetCxnParamsReq {
string appVersion = 6;
string language = 7;
string networkUsed = 8;
int64 clientTime = 9;
bytes ext = 11;
}

Expand Down

0 comments on commit 0db8dde

Please sign in to comment.