using SqlSugar; using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace Myshipping.Core.Entity; /// /// 操作日志表 /// [SugarTable("sys_log_op")] [Description("操作日志表")] [Tenant("logs")] public class SysLogOp : AutoIncrementEntity { /// /// 名称 /// [MaxLength(100)] public string Name { get; set; } /// /// 是否执行成功(Y-是,N-否) /// public YesOrNot Success { get; set; } /// /// 具体消息 /// public string Message { get; set; } /// /// IP /// [MaxLength(20)] public string Ip { get; set; } /// /// 地址 /// [MaxLength(500)] public string Location { get; set; } /// /// 浏览器 /// [MaxLength(100)] public string Browser { get; set; } /// /// 操作系统 /// [MaxLength(100)] public string Os { get; set; } /// /// 请求地址 /// [MaxLength(100)] public string Url { get; set; } /// /// 类名称 /// [MaxLength(100)] public string ClassName { get; set; } /// /// 方法名称 /// [MaxLength(100)] public string MethodName { get; set; } /// /// 请求方式(GET POST PUT DELETE) /// [MaxLength(10)] public string ReqMethod { get; set; } /// /// 请求参数 /// public string Param { get; set; } /// /// 返回结果 /// public string Result { get; set; } /// /// 耗时(毫秒) /// public long ElapsedTime { get; set; } /// /// 操作时间 /// public DateTime OpTime { get; set; } /// /// 操作人 /// [MaxLength(20)] public string Account { get; set; } #region 用于保存业务关联日志 [SugarColumn(IsIgnore = true)] public long? BusinessId { get; set; } [SugarColumn(IsIgnore = true)] public IEnumerable BusinessIdList { get; set; } #endregion }