51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
using MongoDB.Bson;
|
|||
|
|
using MongoDB.Bson.Serialization.Attributes;
|
||
|
|
using MongoRepository;
|
||
|
|
using MongoRepository.Attributes;
|
||
|
|
using MongoRepository.Config;
|
||
|
|
|
||
|
|
namespace Domain.Admin.Admin
|
||
|
|
{
|
||
|
|
[BsonCollection("admin_operation_log", ServiceDatabases.Admin)]
|
||
|
|
[BsonIgnoreExtraElements]
|
||
|
|
public class AdminOperationLog : MongoBaseEntity
|
||
|
|
{
|
||
|
|
[BsonElement("adminid")]
|
||
|
|
public string? AdminId { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("adminname")]
|
||
|
|
public string? AdminName { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("module")]
|
||
|
|
public int Module { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("actiontype")]
|
||
|
|
public string? ActionType { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("description")]
|
||
|
|
public string? Description { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("httpmethod")]
|
||
|
|
public string? HttpMethod { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("requestpath")]
|
||
|
|
public string? RequestPath { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("requestparams")]
|
||
|
|
public string? RequestParams { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("response")]
|
||
|
|
public string? Response { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("ip")]
|
||
|
|
public string? Ip { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("status")]
|
||
|
|
public int Status { get; set; } = 1;
|
||
|
|
|
||
|
|
[BsonElement("operatetime")]
|
||
|
|
[BsonDateTimeOptions(Kind = DateTimeKind.Local, DateOnly = false)]
|
||
|
|
public DateTime OperateTime { get; set; } = DateTime.Now;
|
||
|
|
}
|
||
|
|
}
|