WebOperationLog.cs 1.93 KB
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace HHECS.Model.Entities
{
    /// <summary>
    ///WEB操作日志
    /// </summary>
    [Table("weboperationlog")]
    public class WebOperationLog : BaseEntityCU<long>
    {
        [Column(Order = 2)]
        [MaxLength(100)]
        public string PermissionName { get; set; }

        [Column(Order = 3)]
        [MaxLength(100)]
        public string Url { get; set; }

        [Column(Order = 4)]
        [MaxLength(20)]
        public string OperType { get; set; }

        [Column(Order = 5)]
        [MaxLength(20)]
        public string Method { get; set; }

        [Column(Order = 6)]
        [MaxLength(1000)]
        public string Request { get; set; }

        [Column(Order = 7)]
        [MaxLength(1000)]
        public string Parameter { get; set; }

        [Column(Order = 8)]
        [MaxLength(1000)]
        public string Response { get; set; }

        [Column(Order = 9)]
        public double TotalSeconds { get; set; } = 0;

        [Column(Order = 10)]
        [MaxLength(100)]
        public string IP { get; set; }

        [Column(Order = 11)]
        public int? UserId { get; set; }

        [Column(Order = 12)]
        public bool? Result { get; set; }
        /// <summary>
        /// 操作地点
        /// </summary>
        [Column(Order = 13)]
        public string OperationAddress { get; set; }

        /// <summary>
        /// 操作人员
        /// </summary>
        [Column(Order = 14)]
        [MaxLength(100)]
        public string Operator { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        [Column(Order = 15)]
        public DateTime? OperationTime { get; set; }

        [NotMapped]
        public DateTime? Start { get; set; }

        [NotMapped]
        public DateTime? End { get; set; }


    }
}