Skip to content

Commit 858d5cf

Browse files
committed
feat: 支持多音字
1 parent 8d0baab commit 858d5cf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/BootstrapBlazor.Region/Data/CityItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ readonly record struct CityItem
88
{
99
public string Name { get; init; }
1010

11-
public string PinYin { get; init; }
11+
public HashSet<string> PinYin { get; init; }
1212
}

src/components/BootstrapBlazor.Region/Data/ProvinceItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ readonly record struct ProvinceItem
88
{
99
public string Name { get; init; }
1010

11-
public string PinYin { get; init; }
11+
public HashSet<string> PinYin { get; init; }
1212

1313
public HashSet<CityItem> Cities { get; init; }
1414
}

0 commit comments

Comments
 (0)