Files
wcs/WCS.BLL/DbModels/SystemApiLogRecord.cs
hehaibing-1996 00621bcd55 1.增加盟讯公司业务逻辑相关适配 前后端增加配置参数“ISMX”进行控制
2.前端websocket取消心跳机制(原有心跳和断线重连当服务端网线断开后需要等tcp保活期到期后才能发现重连),自己实现心跳和重连
3.前端关闭后任占用后台线程问题修复
2024-05-25 17:25:27 +08:00

103 lines
3.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WCS.BLL.DbModels
{
/// <summary>
/// 系统接口日志记录
/// </summary>
[SugarTable("wcs_system_api_log_record")]
public class SystemApiLogRecord
{
/// <summary>
/// 主键Id
/// </summary>
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsNullable = false, IsIdentity = true)]
public int Id { get; set; }
[SugarColumn(ColumnName = "request_type", IsNullable = false, ColumnDescription = "调用/被调用 0 = 被调用,1 = 调用")]
/// <summary>
/// 调用/被调用 0 = 被调用 1 = 调用
/// </summary>
public string RequestType { get; set; } = "被调用";
/// <summary>
/// 用户名称
/// </summary>
[SugarColumn(ColumnName = "user_name", IsNullable = true, ColumnDescription = "用户名称")]
public string UserName { get; set; }
/// <summary>
/// 设备类型
/// </summary>
[SugarColumn(ColumnName = "device_type", IsNullable = true, ColumnDescription = "用户名称")]
public string DeviceType { get; set; }
/// <summary>
/// 设备Ip
/// </summary>
[SugarColumn(ColumnName = "device_ip", IsNullable = true, ColumnDescription = "设备Ip")]
public string DeviceIp { get; set; }
/// <summary>
/// 请求地址
/// </summary>
[SugarColumn(ColumnName = "request_url", IsNullable = true, ColumnDescription = "请求地址")]
public string RequestUrl { get; set; }
/// <summary>
/// 请求Body
/// </summary>
[SugarColumn(ColumnName = "request_body", IsNullable = true, ColumnDescription = "请求Body")]
public string RequestBody { get; set; }
/// <summary>
/// 请求Body
/// </summary>
[SugarColumn(ColumnName = "query_string", IsNullable = true, ColumnDescription = "请求Body")]
public string QueryString { get; set; }
/// <summary>
/// 是否响应
/// </summary>
[SugarColumn(ColumnName = "is_response", IsNullable = true, ColumnDescription = "是否响应")]
public bool IsResponse { get; set; }
/// <summary>
/// 响应返回内容
/// </summary>
[SugarColumn(ColumnName = "response_json", IsNullable = true, ColumnDescription = "响应返回内容")]
public string ResponseJson { get; set; }
/// <summary>
/// 开始请求时间
/// </summary>
[SugarColumn(ColumnName = "request_time", IsNullable = true, ColumnDescription = "开始请求时间")]
public DateTime RequestTime { get; set; }
/// <summary>
/// 响应时间
/// </summary>
[SugarColumn(ColumnName = "response_time", IsNullable = true, ColumnDescription = "响应时间")]
public DateTime ResponseTime { get; set; }
/// <summary>
/// 请求处理时长ms
/// </summary>
[SugarColumn(ColumnName = "execution_time", IsNullable = true, ColumnDescription = "请求处理时长ms")]
public long ExecutionTime { get; set; }
/// <summary>
/// 序号
/// </summary>
[SugarColumn(IsIgnore = true)]
public int RowNumber { get; set; }
}
}