Compare commits

...

2 Commits

Author SHA1 Message Date
hang 353e03c4fe Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing Details
2024-12-26 15:23:13 +08:00
hang aa60cb4822 修改日志展示 2024-12-26 15:23:12 +08:00
4 changed files with 3 additions and 13 deletions

View File

@ -27,7 +27,7 @@ namespace IRaCIS.Core.Application.ViewModel
public UserTypeEnum? OptUserTypeEnum { get; set; } public UserTypeEnum? OptUserTypeEnum { get; set; }
public UserLogJsonObj JsonObj { get; set; } public string JsonObj { get; set; }
public string IPRegion { get; set; } public string IPRegion { get; set; }
} }

View File

@ -41,7 +41,7 @@ namespace IRaCIS.Core.Application.Triggers.AfterSaveTrigger
}).FirstOrDefaultAsync(); }).FirstOrDefaultAsync();
userlog.JsonObj = obj; userlog.JsonObj = obj.ToJsonStr();
await _identityUserRepository.SaveChangesAsync(); await _identityUserRepository.SaveChangesAsync();
} }

View File

@ -27,7 +27,7 @@ public class UserLog : BaseAddAuditEntity
public string ActionUserName { get; set; } public string ActionUserName { get; set; }
[MaxLength] [MaxLength]
public UserLogJsonObj JsonObj { get; set; } public string JsonObj { get; set; }
[Comment("被操作的对象 admin 修改张三信息 张三是被操作对象")] [Comment("被操作的对象 admin 修改张三信息 张三是被操作对象")]
@ -66,7 +66,6 @@ public class UserLogJsonObj
public string DepartmentName { get; set; } public string DepartmentName { get; set; }
[NotMapped]
public List<UserRoleLogObj> UserRoleList { get; set; } public List<UserRoleLogObj> UserRoleList { get; set; }
} }

View File

@ -63,15 +63,6 @@ public class IRaCISDBContext : DbContext
protected override void OnModelCreating(ModelBuilder modelBuilder) protected override void OnModelCreating(ModelBuilder modelBuilder)
{ {
modelBuilder.Entity<UserLog>(entity =>
{
entity.OwnsOne(x => x.JsonObj, ownedNavigationBuilder =>
{
ownedNavigationBuilder.ToJson();
});
});
modelBuilder.Entity<TestLength>(entity => modelBuilder.Entity<TestLength>(entity =>
{ {
// 使用部分加密值转换器,前 2 个字符不加密,方便模糊搜索 // 使用部分加密值转换器,前 2 个字符不加密,方便模糊搜索