Files
StopShopping/StopShopping.Services/IDistrictService.cs
2026-03-25 14:55:34 +08:00

29 lines
822 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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);
}