using OASystem.Domain.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.Entities.Customer
{
///
/// 表操作记录
///
[SugarTable("Crm_TableOperationRecord")]
public class Crm_TableOperationRecord : EntityBase
{
///
/// 表名
/// "Crm_NewClientData" 客户资料表
/// "Login" 登录
/// "InforRetrogressTable" 会务倒退表
///
[SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
public string? TableName { get; set; }
///
/// 1 Web 2 安卓 3 苹果
///
[SugarColumn(IsNullable = true, ColumnDataType = "int")]
public int PortType { get; set; }
///
/// 操作项目
/// 0 未操作 1浏览列表 2 浏览详情 3 添加 4 修改 5 删除 6 审核 7 上传 8 下载 9 Login
///
[SugarColumn(IsNullable = true, ColumnDataType = "int")]
public OperationEnum OperationItem { get; set; } = OperationEnum.NoOperation;
///
/// 数据Id
///
[SugarColumn(IsNullable = true, ColumnDataType = "int")]
public int DataId { get; set; } = 0;
///
/// 执行状态
///
public string? Status { get; set; }
///
/// IP地址
///
public string? RemoteIp { get; set; }
///
/// 登录地点
///
public string? Location { get; set; }
///
/// 设备类型
///
public string DeviceType { get; set; }
///
/// 浏览器
///
public string? Browser { get; set; }
///
/// 操作系统
///
public string? Os { get; set; }
///
/// 操作用时
///
public long? Elapsed { get; set; }
///
/// 请求地址
///
public string? RequestUrl { get; set; }
///
/// 请求参数
///
public string? RequestParam { get; set; }
///
/// 返回结果
///
public string? ReturnResult { get; set; }
///
/// 更新前数据
///
public string UpdatePreData { get; set; }
///
/// 更新后数据
///
public string UpdateBefData { get; set; }
}
}