You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

58 lines
1.3 KiB

using learun.util;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace learun.iapplication
{
/// <summary>
/// 版 本 EasyCode EC管理后台
/// Copyright (c) 2019-present EC管理有限公司
/// 创建人:tobin
/// 日 期:2019.09.25
/// 描 述:系统日志
/// </summary>
public interface LogIBLL
{
#region 获取数据
/// <summary>
/// 日志列表
/// </summary>
/// <param name="pagination">分页</param>
/// <param name="queryJson">查询参数</param>
/// <param name="userId">用户主键</param>
/// <returns></returns>
Task<IEnumerable<LogEntity>> GetPageList(Pagination pagination, string queryJson, string userId);
#endregion 获取数据
#region 提交数据
/// <summary>
/// 清空日志
/// </summary>
/// <param name="categoryId">日志分类Id</param>
/// <param name="keepTime">保留时间段内</param>
Task Remove(int categoryId, string keepTime);
/// <summary>
/// 写日志
/// </summary>
/// <param name="logEntity">对象</param>
Task Write(LogEntity logEntity);
#endregion 提交数据
#region 扩展方法
/// <summary>
/// 生成异常信息
/// </summary>
/// <param name="ex">异常对象</param>
/// <returns></returns>
string ExceptionFormat(Exception ex);
#endregion 扩展方法
}
}