using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace YBEE.EQM.Core { /// /// 通用输入扩展参数(带权限) /// public interface IXnInputBase { /// /// 授权菜单 /// public List GrantMenuIdList { get; set; } /// /// 授权角色 /// public List GrantRoleIdList { get; set; } /// /// 授权数据 /// public List GrantOrgIdList { get; set; } } /// /// 通用分页输入参数 /// public class PageInputBase { /// /// 当前页码 /// [Required(ErrorMessage = "当前页码不能为空")] public virtual int PageIndex { get; set; } = 1; /// /// 每页大小 /// [Required(ErrorMessage = "每页大小不能为空")] public virtual int PageSize { get; set; } = 20; /// /// 搜索值 /// public virtual string SearchValue { get; set; } /// /// 搜索开始时间 /// public virtual string SearchBeginTime { get; set; } /// /// 搜索结束时间 /// public virtual string SearchEndTime { get; set; } /// /// 排序字段 /// public virtual string SortField { get; set; } /// /// 排序方法,默认升序,否则降序(配合antd前端,约定参数为 Ascend,Dscend) /// public virtual string SortOrder { get; set; } /// /// 降序排序(不要问我为什么是descend不是desc,前端约定参数就是这样) /// public virtual string DescStr { get; set; } = "descend"; /// /// 复杂查询条件 /// public virtual List SearchParameters { get; set; } = new(); } }