AutoDispatching/AutoDispathingWork/Dto/QueryRequest/UserQuery.cs
2023-11-19 17:06:38 +08:00

27 lines
797 B
C#

using System.Text.Json.Serialization;
namespace WorkerService1.Dto.QueryRequest;
public class UserQuery
{
// {"pageNo":1,"pageSize":20,"condition":{"roleIds":["a2e267c0-d88d-4ecb-a4b5-d904e85dfbb6"],"enabled":"null"}}
[JsonPropertyName("pageNo")]
public int PageNo { get; set; } = 1;
[JsonPropertyName("pageSize")]
public int PageSize { get; set; } = 20;
[JsonPropertyName("condition")]
public Condition Condition { get; set; } = new Condition();
[JsonPropertyName("enabled")]
public bool? Enabled { get; set; } = null;
}
public class Condition
{
[JsonPropertyName("roleIds")]
public string[] RoleIds { get; set; } = new string[] { "a2e267c0-d88d-4ecb-a4b5-d904e85dfbb6" };
[JsonPropertyName("id")]
public string? Id { get; set; }
}