处理国家多语言数据

This commit is contained in:
yxw
2025-12-25 18:43:30 +08:00
parent f7bb6bb2dc
commit 46794708ff
14 changed files with 240 additions and 35 deletions

View File

@@ -3,5 +3,8 @@
public enum LocalizedType
{
None,
Country,
StateProvince,
AreaCity
}
}

View File

@@ -0,0 +1,9 @@
using Atomx.Common.Entities;
namespace Atomx.Common.Models
{
public class AreaLocalizedModel:Area
{
public List<LocalizedProperty> Locales { get; set; } = new List<LocalizedProperty>();
}
}

View File

@@ -0,0 +1,9 @@
using Atomx.Common.Entities;
namespace Atomx.Common.Models
{
public class CategoryLocalizedModel : Category
{
public List<LocalizedProperty> Locales { get; set; } = new List<LocalizedProperty>();
}
}

View File

@@ -0,0 +1,9 @@
using Atomx.Common.Entities;
namespace Atomx.Common.Models
{
public class StateProvinceLocalizedModel : StateProvince
{
public List<LocalizedProperty> Locales { get; set; } = new List<LocalizedProperty>();
}
}