You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PLT-PDA/Admin.Core.Service/Sys/SysLoginInfoService.cs

42 lines
883 B
C#

//----------SysLoginInfo开始----------
using System;
using System.Threading.Tasks;
using Admin.Core.IRepository;
using Admin.Core.IService.ISys;
using Admin.Core.Model.Sys;
namespace Admin.Core.Service.Sys
{
/// <summary>
/// Service
/// </summary>
public partial class SysLoginInfoService : BaseServices<SysLoginInfo>, ISysLoginInfoService
{
IBaseRepository<SysLoginInfo> dal;
public SysLoginInfoService(IBaseRepository<SysLoginInfo> dal)
{
this.dal = dal;
BaseDal = dal;
}
/// <summary>
/// 清空日志
/// </summary>
/// <returns></returns>
public async Task<bool> Clear()
{
var sql = "truncate table [SysLoginInfo]";
return await dal.ExecSqlAsync(sql) >= 0;
}
}
}
//----------SysLoginInfo结束----------