fix language edit

This commit is contained in:
2025-12-05 12:22:51 +08:00
parent ac50b3fccd
commit cb881ae1e1
5 changed files with 51 additions and 21 deletions

View File

@@ -1,15 +1,10 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Atomx.Admin.Client.Models
namespace Atomx.Admin.Client.Models
{
public class LanguageModel
{
/// <summary>
/// 数据ID
/// </summary>
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Key]
public int Id { get; set; }
/// <summary>
@@ -41,15 +36,5 @@ namespace Atomx.Admin.Client.Models
/// 是否可用,系统面
/// </summary>
public bool Enabled { get; set; }
/// <summary>
/// 多语言资源的版本,可以是时间戳或哈希
/// </summary>
public string ResourceVersion { get; set; } = string.Empty;
/// <summary>
/// 是否编辑
/// </summary>
public bool IsEdit { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
namespace Atomx.Admin.Client.Models
{
public class LocaleResourceSearch
{
public int LanguageId { get; set; }
public string? ResourceName { get; set; }
public string? ResourceValue { get; set; }
}
}