2019-05-01 12:07:00 +08:00
|
|
|
|
using Longbow.Data;
|
2019-05-01 16:46:24 +08:00
|
|
|
|
using Longbow.Web.Mvc;
|
|
|
|
|
using PetaPoco;
|
|
|
|
|
|
2019-03-04 01:27:04 +08:00
|
|
|
|
namespace Bootstrap.DataAccess
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class LoginHelper
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="userName"></param>
|
|
|
|
|
/// <returns></returns>
|
2019-05-01 12:07:00 +08:00
|
|
|
|
public static bool Log(LoginUser user) => DbContextManager.Create<LoginUser>().Log(user);
|
2019-03-04 13:21:04 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-05-01 12:07:00 +08:00
|
|
|
|
/// 查询所有登录日志
|
2019-03-04 13:21:04 +08:00
|
|
|
|
/// </summary>
|
2019-05-01 12:07:00 +08:00
|
|
|
|
/// <param name="po"></param>
|
2019-05-01 16:46:24 +08:00
|
|
|
|
public static Page<LoginUser> Retrieves(PaginationOption po) => DbContextManager.Create<LoginUser>().Retrieves(po);
|
2019-03-04 01:27:04 +08:00
|
|
|
|
}
|
|
|
|
|
}
|