using Rhea.Common;
|
using SqlSugar;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace Tiger.Business
|
{
|
///// <summary>
|
///// 多语言实体
|
///// </summary>
|
//public class Lang
|
//{
|
// public Lang(string key, params object?[] args) {
|
// Key = key;
|
// Args = args;
|
// Dic = Language.Dictionary.ContainsKey(key) ? Language.Dictionary[key] : new();
|
// }
|
// public string Key { get; set; }
|
// public object[] Args { get; set; }
|
// public Dictionary<string, string> Dic { get; set; } = new Dictionary<string, string>();
|
// public string this[string language] => string.Format(Dic.ContainsKey(language) ? Dic[language] : Key, Args);
|
// public string Cur => Dic.Any() ? this[ApiConfig.DefaultLanguage.IsNullOrEmpty(Dic.First().Key)] : null;
|
//}
|
}
|