init commit
This commit is contained in:
46
20220330_Vote/Ewide.RoadFlow/Data/Log/ILog.cs
Normal file
46
20220330_Vote/Ewide.RoadFlow/Data/Log/ILog.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RoadFlow.Data
|
||||
{
|
||||
public interface ILog:IRoadFlowRepository<RoadFlow.Model.rf_log>
|
||||
{
|
||||
/// <summary>
|
||||
/// 添加日志
|
||||
/// </summary>
|
||||
/// <param name="title"></param>
|
||||
/// <param name="contents"></param>
|
||||
/// <param name="type"></param>
|
||||
/// <param name="oldContents"></param>
|
||||
/// <param name="newContents"></param>
|
||||
/// <param name="others"></param>
|
||||
/// <param name="browseAgent"></param>
|
||||
/// <param name="ipAddress"></param>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="userId"></param>
|
||||
/// <param name="userName"></param>
|
||||
public void Add(string title, string CurrentUserId = "", string contents = "",
|
||||
LogType type = LogType.其他, string oldContents = "", string newContents = "", string others = "",
|
||||
string browseAgent = "", string ipAddress = "", string url = "", string userId = "", string userName = "");
|
||||
|
||||
/// <summary>
|
||||
/// 得到日志类型
|
||||
/// </summary>
|
||||
/// <param name="type">日志类型</param>
|
||||
/// <param name="language">语言</param>
|
||||
/// <returns></returns>
|
||||
public string GetLogType(string type, string language);
|
||||
|
||||
/// <summary>
|
||||
/// 添加异常日志
|
||||
/// </summary>
|
||||
/// <param name="err">异常类</param>
|
||||
/// <param name="title">标题 如果为空用err.Message</param>
|
||||
public void Add(Exception err, string title = "");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user