mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-04-08 08:56:35 +08:00
修复了已知的bug
This commit is contained in:
32
Serein.Proto.HttpApi/ControllerBase.cs
Normal file
32
Serein.Proto.HttpApi/ControllerBase.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
|
||||
namespace Serein.Proto.HttpApi
|
||||
{
|
||||
/// <summary>
|
||||
/// Web Api 控制器基类
|
||||
/// </summary>
|
||||
public class ControllerBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 请求的url
|
||||
/// </summary>
|
||||
public string? Url { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 请求的body数据
|
||||
/// </summary>
|
||||
public string? Body { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取日志信息
|
||||
/// </summary>
|
||||
/// <param name="ex"></param>
|
||||
/// <returns></returns>
|
||||
public string GetLog(Exception ex)
|
||||
{
|
||||
return "Url : " + Url + Environment.NewLine +
|
||||
"Ex : " + ex + Environment.NewLine +
|
||||
"Data : " + Body + Environment.NewLine;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user