✨
This commit is contained in:
28
StopShopping.Services/IDistrictService.cs
Normal file
28
StopShopping.Services/IDistrictService.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using StopShopping.Services.Models.Req;
|
||||
using StopShopping.Services.Models.Resp;
|
||||
|
||||
namespace StopShopping.Services;
|
||||
|
||||
/// <summary>
|
||||
/// 行政区划服务
|
||||
/// </summary>
|
||||
public interface IDistrictService
|
||||
{
|
||||
/// <summary>
|
||||
/// 初始化行政区划数据库
|
||||
/// </summary>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task InitialDatabaseAsync(CancellationToken cancellationToken);
|
||||
/// <summary>
|
||||
/// 获取到区的区域,直辖市无level=2
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<ApiResponse<List<District>>> GetTop3LevelDistrictsAsync();
|
||||
/// <summary>
|
||||
/// 获取直接下级区域
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
ApiResponse<List<District>> GetChildren(DistrictParentIdParams model);
|
||||
}
|
||||
Reference in New Issue
Block a user