39 lines
906 B
C#
39 lines
906 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace AyaNova.Api.ControllerHelpers
|
|
{
|
|
|
|
public sealed class ListOptions
|
|
{
|
|
public const int MaxPageSize = 1000;
|
|
public const int DefaultOffset = 0;
|
|
public const int DefaultLimit = 25;
|
|
|
|
[FromBody]
|
|
public int? Offset { get; set; }
|
|
|
|
[FromBody]
|
|
public int? Limit { get; set; }
|
|
|
|
// //Data filter id to use with this list query
|
|
// //0 or less means no filter
|
|
// [FromBody]
|
|
// public long DataFilterId { get; set; }
|
|
|
|
|
|
public bool? Mini { get; set; }
|
|
|
|
[FromBody, Required]
|
|
public string DataListKey { get; set; }
|
|
|
|
[FromBody]
|
|
public string FilterJson { get; set; }
|
|
|
|
[FromBody]
|
|
public string SortJson { get; set; }
|
|
|
|
|
|
}
|
|
|
|
} |