|
|
@@ -67,6 +67,9 @@ func (*friendService) DeleteFriend(ctx context.Context, userId, friendId int64) |
|
|
|
|
|
|
|
// AddFriend 添加好友 |
|
|
|
func (*friendService) AddFriend(ctx context.Context, userId, friendId int64, remarks, description string) error { |
|
|
|
if userId == friendId { |
|
|
|
return gerrors.ErrNotAllowAddSelf |
|
|
|
} |
|
|
|
masterId, _ := grpclib.GetCtxMasterId(ctx) |
|
|
|
isAutoAddFriends := svc.SysCfgGet(masterId, "is_auto_add_friends") |
|
|
|
|
|
|
|