招聘后台
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.
 
 

42 lines
1.6 KiB

using System.Threading.Tasks;
using Znyc.Recruitment.Admin.Commons.IServices;
using Znyc.Recruitment.Admin.Commons.Pages;
using Znyc.Recruitment.Admin.Security.Dtos;
using Znyc.Recruitment.Admin.Security.Entitys;
namespace Znyc.Recruitment.Admin.Security.IServices
{
/// <summary>
/// 日志记录
/// </summary>
public interface IOperationLogsService : IService<OperationLogsEntity, OperationLogsOutputDto, long>
{
/// <summary>
/// 根据相关信息,写入用户的操作日志记录
/// 主要用于写数据库日志
/// </summary>
/// <param name="tableName">操作表名称</param>
/// <param name="operationType">操作类型</param>
/// <param name="note">操作详细表述</param>
/// <returns></returns>
bool OnOperationLog(string tableName, string operationType, string note);
/// <summary>
/// 根据相关信息,写入用户的操作日志记录
/// 主要用于写操作模块日志
/// </summary>
/// <param name="module">操作模块名称</param>
/// <param name="operationType">操作类型</param>
/// <param name="note">操作详细表述</param>
/// <param name="AdminCurrentUser">操作用户</param>
/// <returns></returns>
bool OnOperationLog(string module, string operationType, string note, AdminCurrentUser AdminCurrentUser);
/// <summary>
/// 根据条件查询数据库,并返回对象集合(用于分页数据显示)
/// </summary>
/// <param name="search">查询的条件</param>
/// <returns>指定对象的集合</returns>
Task<PageResult<OperationLogsOutputDto>> FindWithPagerSearchAsync(SearchOperationLogsModel search);
}
}