using System;
using System.ComponentModel.DataAnnotations;
using Util.Datas.Queries.Trees;
namespace Util.Samples.Service.Queries.Systems {
///
/// 角色查询参数
///
public class RoleQuery : TreeQueryParameter {
///
/// 角色编号
///
[Display( Name = "角色编号" )]
public Guid? RoleId { get; set; }
private string _code = string.Empty;
///
/// 角色编码
///
[Display( Name = "角色编码" )]
public string Code {
get => _code == null ? string.Empty : _code.Trim();
set => _code = value;
}
private string _name = string.Empty;
///
/// 角色名称
///
[Display( Name = "角色名称" )]
public string Name {
get => _name == null ? string.Empty : _name.Trim();
set => _name = value;
}
private string _type = string.Empty;
///
/// 角色类型
///
[Display( Name = "角色类型" )]
public string Type {
get => _type == null ? string.Empty : _type.Trim();
set => _type = value;
}
///
/// 管理员
///
[Display( Name = "管理员" )]
public bool? IsAdmin { get; set; }
private string _comment = string.Empty;
///
/// 备注
///
[Display( Name = "备注" )]
public string Comment {
get => _comment == null ? string.Empty : _comment.Trim();
set => _comment = value;
}
private string _pinYin = string.Empty;
///
/// 拼音简码
///
[Display( Name = "拼音简码" )]
public string PinYin {
get => _pinYin == null ? string.Empty : _pinYin.Trim();
set => _pinYin = value;
}
///
/// 起始创建时间
///
[Display( Name = "起始创建时间" )]
public DateTime? BeginCreationTime { get; set; }
///
/// 结束创建时间
///
[Display( Name = "结束创建时间" )]
public DateTime? EndCreationTime { get; set; }
///
/// 创建人编号
///
[Display( Name = "创建人编号" )]
public Guid? CreatorId { get; set; }
}
}