This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user