|
@@ -14,6 +14,7 @@ using GxPress.Entity;
|
|
using GxPress.EnumConst;
|
|
using GxPress.EnumConst;
|
|
using GxPress.Repository.Interface;
|
|
using GxPress.Repository.Interface;
|
|
using GxPress.Repository.Interface.Friends;
|
|
using GxPress.Repository.Interface.Friends;
|
|
|
|
+using GxPress.Request;
|
|
using GxPress.Request.App.User;
|
|
using GxPress.Request.App.User;
|
|
using GxPress.Request.User;
|
|
using GxPress.Request.User;
|
|
using GxPress.Request.UserMiddle;
|
|
using GxPress.Request.UserMiddle;
|
|
@@ -434,9 +435,9 @@ namespace GxPress.Api.AppControllers
|
|
/// </summary>
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
[HttpDelete("friends")]
|
|
[HttpDelete("friends")]
|
|
- public async Task<bool> DeleteAsync(IEnumerable<int> friendsIds)
|
|
|
|
|
|
+ public async Task<bool> DeleteAsync(FriendsDeleteRequest request)
|
|
{
|
|
{
|
|
- return await friendsRepository.DeleteAsync(friendsIds, _loginContext.AccountId);
|
|
|
|
|
|
+ return await friendsRepository.DeleteAsync(request.UserIds, _loginContext.AccountId);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|