using Furion.DatabaseAccessor; using Microsoft.EntityFrameworkCore; using System; using System.ComponentModel.DataAnnotations.Schema; namespace Ewide.Core { /// /// 操作日志表 /// [Table("sys_log_op")] [Comment("操作日志表")] public class SysLogOp : EntityBase { /// /// 名称 /// [Comment("名称")] public string Name { get; set; } /// /// 操作类型(0其他 1增加 2删除 3编辑)(见LogAnnotionOpTypeEnum) /// [Comment("操作类型")] public int? OpType { get; set; } /// /// 是否执行成功(Y-是,N-否) /// [Comment("是否执行成功")] public bool? Success { get; set; } /// /// 具体消息 /// [Comment("具体消息")] public string Message { get; set; } /// /// IP /// [Comment("IP")] public string Ip { get; set; } /// /// 地址 /// [Comment("地址")] public string Location { get; set; } /// /// 浏览器 /// [Comment("浏览器")] public string Browser { get; set; } /// /// 操作系统 /// [Comment("操作系统")] public string Os { get; set; } /// /// 请求地址 /// [Comment("请求地址")] public string Url { get; set; } /// /// 类名称 /// [Comment("类名称")] public string ClassName { get; set; } /// /// 方法名称 /// [Comment("方法名称")] public string MethodName { get; set; } /// /// 请求方式(GET POST PUT DELETE) /// [Comment("请求方式")] public string ReqMethod { get; set; } /// /// 请求参数 /// [Comment("请求参数")] public string Param { get; set; } /// /// 返回结果 /// [Comment("返回结果")] public string Result { get; set; } /// /// 耗时(毫秒) /// [Comment("耗时")] public long ElapsedTime { get; set; } /// /// 操作时间 /// [Comment("操作时间")] public DateTimeOffset OpTime { get; set; } /// /// 操作人 /// [Comment("操作人")] public string Account { get; set; } } }