23 lines
674 B
C#
23 lines
674 B
C#
namespace Application.Domain;
|
|
|
|
public interface IUnitUserRelationService
|
|
{
|
|
#region 好友关系
|
|
|
|
Task<int> GetUserFriendCount(string userId);
|
|
Task<List<RelationView>> GetUserFriend(string userId);
|
|
Task<bool> CheckIsFriend(string userId, string toId);
|
|
Task<bool> AddFriend(string userId, string toId);
|
|
Task<bool> DeleteFriend(string userId, string toId);
|
|
|
|
#endregion
|
|
|
|
#region 仇人
|
|
|
|
Task<List<RelationView>> GetUserEnemyData(string userId);
|
|
Task<bool> CheckUserEnemy(string userId, string eId);
|
|
Task<bool> AddUserEnemy(string userId, string eId);
|
|
Task<bool> DeleteUserEnemy(string userId, string eId);
|
|
|
|
#endregion
|
|
} |