Skip to content

Commit 894c420

Browse files
committed
refactor: 增加数据结构
1 parent 42623b3 commit 894c420

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright (c) BootstrapBlazor & Argo Zhang (argo@live.ca). All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
// Website: https://www.blazor.zone or https://argozhang.github.io/
4+
5+
namespace BootstrapBlazor.Components;
6+
7+
readonly record struct CityItem
8+
{
9+
public string Name { get; init; }
10+
11+
public string PinYin { get; init; }
12+
}

src/components/BootstrapBlazor.Region/Services/CountyItem.cs renamed to src/components/BootstrapBlazor.Region/Data/CountyItem.cs

File renamed without changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Copyright (c) BootstrapBlazor & Argo Zhang (argo@live.ca). All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
// Website: https://www.blazor.zone or https://argozhang.github.io/
4+
5+
namespace BootstrapBlazor.Components;
6+
7+
readonly record struct ProvinceItem
8+
{
9+
public string Name { get; init; }
10+
11+
public string PinYin { get; init; }
12+
13+
public HashSet<CityItem> Cities { get; init; }
14+
}

0 commit comments

Comments
 (0)