使用说明
使用说明
反审扩展写在 [表Service.cs] 中。
反审
/// <summary>
/// 反审
/// </summary>
/// <param name="antiData"></param>
/// <returns></returns>
public override WebResponseContent AntiAudit(AntiData antiData)
{
WebResponseContent webResponse = new WebResponseContent();
//反审前方法
AntiAuditOnExecuting = (当前表 data) =>
{
return webResponse.OK();
};
//反审后方法
AntiAuditOnExecuted = (当前表 data) =>
{
return webResponse.OK();
};
return base.AntiAudit(antiData);
}
反审(异步 async)
/// <summary>
/// 反审异步
/// </summary>
/// <param name="antiData"></param>
/// <returns></returns>
public override async Task<WebResponseContent> AntiAuditAsync(AntiData antiData)
{
WebResponseContent webResponse = new WebResponseContent();
//反审前方法
AntiAuditOnExecuting = (当前表 data) =>
{
return webResponse.OK();
};
AntiAuditOnExecutingAsync = async (当前表 data) =>
{
await Task.CompletedTask;
return webResponse.OK();
};
//反审后方法
AntiAuditOnExecuted = (当前表 data) =>
{
return webResponse.OK();
};
AntiAuditOnExecutedAsync = async (当前表 data) =>
{
await Task.CompletedTask;
return webResponse.OK();
};
return await base.AntiAuditAsync(antiData);
}
