统计页面 修改店铺选择,增加店铺搜索Combobox

This commit is contained in:
chfei committed 2026-08-07 11:25:19 +08:00
1 parent b6b72e6bc3
commit f12a7f14ea
16 files changed
+1801 -41

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
using System.Collections.Generic;
using System.Linq;
namespace TinyPinyin
{
public abstract class PinyinDict : IPinyinDict
{
public abstract Dictionary<string, string[]> Mapping();
public string[] ToPinyin(string word)
{
var mappingResult = Mapping();
if (mappingResult == null)
{
return null;
}
if (mappingResult.TryGetValue(word, out var result))
{
return result;
}
return null;
}
public List<string> Words()
{
var mappingResult = Mapping();
if (mappingResult == null)
{
return null;
}
return mappingResult.Keys.Select(key => key).ToList();
}
}
}