This commit is contained in:
31
server/AyaNova/DataList/ListOptions.cs
Normal file
31
server/AyaNova/DataList/ListOptions.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
|
||||
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; }
|
||||
|
||||
|
||||
[FromBody, Required]
|
||||
public string DataListKey { get; set; }
|
||||
|
||||
[FromBody]
|
||||
public string ListView { get; set; }//optional, if null or empty will use default list view built into DataList
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user