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