48 lines
1.5 KiB
C#
48 lines
1.5 KiB
C#
using Zxd.Domain.Dto.Resource;
|
|
|
|
namespace Zxd.WebApi.Controllers
|
|
{
|
|
[ApiSignatureFilterForbid]
|
|
public class ScreenRecordController : BaseController
|
|
{
|
|
private readonly IScreenRecordDomain _screenRecordDomain;
|
|
|
|
public ScreenRecordController(IScreenRecordDomain screenRecordDomain)
|
|
{
|
|
_screenRecordDomain = screenRecordDomain;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 创建录屏记录接口
|
|
/// </summary>
|
|
/// <param name="postData"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("Create")]
|
|
[ApiTimeSecurity]
|
|
public async Task<bool> ScreenRecord([FromBody] ScreenRecord postData)
|
|
=> await _screenRecordDomain.ScreenRecord(postData);
|
|
|
|
|
|
/// <summary>
|
|
/// 录屏文件接收接口
|
|
/// </summary>
|
|
/// <param name="postData"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("FileRecord")]
|
|
[ApiTimeSecurity]
|
|
public async Task<bool> FileRecord([FromBody] ScreenRecordFile postData)
|
|
=> await _screenRecordDomain.FileRecord(postData);
|
|
|
|
/// <summary>
|
|
/// 录屏数据列表接口
|
|
/// </summary>
|
|
/// <param name="postData"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("Page")]
|
|
public async Task<PageResult<ScreenRecordResponse>> GetScreenRecordList([FromQuery] ScreenRecordRequest postData)
|
|
{
|
|
return await _screenRecordDomain.GetScreenRecordList(postData);
|
|
}
|
|
}
|
|
}
|