//----------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
{
///
/// Service
///
public partial class SysLoginInfoService : BaseServices, ISysLoginInfoService
{
IBaseRepository dal;
public SysLoginInfoService(IBaseRepository dal)
{
this.dal = dal;
BaseDal = dal;
}
///
/// 清空日志
///
///
public async Task Clear()
{
var sql = "truncate table [SysLoginInfo]";
return await dal.ExecSqlAsync(sql) >= 0;
}
}
}
//----------SysLoginInfo结束----------