using Rhea.Common; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tiger.Business { ///// ///// 多语言实体 ///// //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 Dic { get; set; } = new Dictionary(); // 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; //} }