33 lines
998 B
C#
33 lines
998 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
|
|
|
|
#region 魅力相关
|
|
|
|
Task<game_charm_log> GetUserNewGift(string userId);
|
|
Task<List<GiftLogView>> GetUserGiftLog(string userId, int page, int limit, RefAsync<int> total);
|
|
|
|
Task<bool> AddCharm(string userId, string fromId, int goodsId, string name, string img, int charm,
|
|
int count);
|
|
|
|
#endregion
|
|
} |