This commit is contained in:
2020-04-10 18:38:32 +00:00
parent 590558362c
commit b46b9dcf72
2 changed files with 19 additions and 18 deletions

View File

@@ -75,7 +75,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
/// <returns>Event log for user</returns>
[HttpGet("UserLog")]
public async Task<IActionResult> GetUserLog([FromQuery] EventLogOptions opt)
public async Task<IActionResult> GetUserLog([FromQuery] UserEventLogOptions opt)
{
if (serverState.IsClosed)
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
@@ -112,12 +112,21 @@ namespace AyaNova.Api.Controllers
[FromQuery]
public long AyId { get; set; }
[FromQuery]
public DateTime? StartDate { get; set; }
public int? Offset { get; set; }
[FromQuery]
public DateTime? EndDate { get; set; }
public int? Limit { get; set; }
}
public sealed class UserEventLogOptions
{
[FromQuery]
public long AyId { get; set; }
[FromQuery]
public int? Offset { get; set; }
[FromQuery]
public int? Limit { get; set; }
}
public sealed class ObjectEventLogItem
{