/*********************************************************************** * Project: baifenBinfa * ProjectName: 百分兵法管理系统 * Web: http://chuanyin.com * Author: * Email: * CreateTime: 202403/02 * Description: 暂无 ***********************************************************************/ using System.Collections.Generic; using System.Threading.Tasks; using CoreCms.Net.Model.Entities; using CoreCms.Net.Model.ViewModels.DTO; using CoreCms.Net.Model.ViewModels.UI; namespace CoreCms.Net.IServices { /// /// 地区表 服务工厂接口 /// public interface ICoreCmsAreaServices : IBaseServices { /// /// 获取所有省市区信息 /// /// Task> GetTreeArea(List checkedAreases, int parentId = 0, int currentChecked = 0); /// /// 组装地区数据 /// List resolve2(List allDatas, int parentId, List checkedAreases, int currentChecked = 0); /// /// 获取最终地区ID /// /// 省 /// 市 /// 县 /// 邮编 /// Task GetThreeAreaId(string provinceName, string cityName, string countyName, string postalCode); /// /// 根据areaId获取三级区域名称 /// /// /// /// Task GetAreaFullName(int areaId, List cacheAreas = null); /// /// 根据id来返回省市区信息,如果没有查到,就返回省的列表 /// List GetArea(List cacheAreas, int id = 0); /// /// 获取最终地区ID /// /// 省 /// 市 /// 县 /// 邮编 /// Task GetAreaId(string provinceName, string cityName, string countyName, string postalCode); #region 重写增删改查操作=========================================================== /// /// 重写异步插入方法 /// /// /// Task InsertAsync(CoreCmsArea entity); /// /// 重写异步更新方法 /// /// /// Task UpdateAsync(CoreCmsArea entity); /// /// 重写删除指定ID的数据 /// /// /// Task DeleteByIdAsync(object id); #endregion /// /// 获取缓存的所有数据 /// /// Task> GetCaChe(); /// /// 根据code获取对应区域信息 /// /// /// Task GetAreaString(string Code); } }