using Bootstrap.DataAccess; using Longbow.Web.Mvc; using System; namespace Bootstrap.Admin.Query { /// /// 登录日志查询条件 /// public class QueryLoginOption : PaginationOption { /// /// /// public DateTime? StartTime { get; set; } /// /// /// public DateTime? EndTime { get; set; } /// /// 登录IP地址 /// public string LoginIP { get; set; } /// /// /// /// public QueryData RetrieveData() { if (string.IsNullOrEmpty(Order)) Order = "desc"; var data = LoginHelper.RetrievePages(this, StartTime, EndTime, LoginIP); return new QueryData { total = data.TotalItems, rows = data.Items }; } } }