27 lines
722 B
C#
27 lines
722 B
C#
using Longbow.Data;
|
|
using Longbow.Web.Mvc;
|
|
using PetaPoco;
|
|
|
|
namespace Bootstrap.DataAccess
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static class LoginHelper
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="userName"></param>
|
|
/// <returns></returns>
|
|
public static bool Log(LoginUser user) => DbContextManager.Create<LoginUser>().Log(user);
|
|
|
|
/// <summary>
|
|
/// 查询所有登录日志
|
|
/// </summary>
|
|
/// <param name="po"></param>
|
|
/// <param name="ip"></param>
|
|
public static Page<LoginUser> Retrieves(PaginationOption po, string ip) => DbContextManager.Create<LoginUser>().Retrieves(po, ip);
|
|
}
|
|
}
|