25 lines
732 B
C#
25 lines
732 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" };
|
|
}
|
|
|