using System.Threading.Tasks;
using GxPress.Request.App.IM;
using GxPress.Service.Interface.IM;
using Microsoft.AspNetCore.Mvc;
namespace GxPress.Api.AppControllers
{
[Route("api/app/im")]
[ApiController]
public class ImController : ControllerBase
{
private readonly IIMService _imService;
public ImController(IIMService imService)
{
_imService = imService;
}
///
/// 强制下线
///
///
///
[HttpPost("disconnect")]
public async Task Disconnect(DisconnectRequest request)
{
return await _imService.DisconnectAsync(request.ImId);
}
}
}