服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-05-30 7e25ed322740ed337296a990bac67e95bc250ac0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
    //}
}