using Myshipping.Core.Entity; using Myshipping.Core.Service.Dict.Dto; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Myshipping.Core.Service; public interface ISysCacheService { bool Del(string key); Task DelAsync(string key); Task DelByPatternAsync(string key); List GetAllCacheKeys(); Task> GetDataScope(long userId); Task> GetUsersDataScope(long userId); Task> GetMenu(long userId, string appCode); Task> GetPermission(long userId); Task SetDataScope(long userId, List dataScopes); Task SetUsersDataScope(long userId, List dataScopes); Task SetMenu(long userId, string appCode, List menus); Task SetPermission(long userId, List permissions); bool Set(string key, object value); Task SetAsync(string key, object value); Task SetTimeoutAsync(string key, object value, TimeSpan ts); string Get(string key); Task GetAsync(string key); T Get(string key); Task GetAsync(string key); bool Exists(string key); Task ExistsAsync(string key); Task> GetAllPermission(); Task SetAllPermission(List permissions); #region 公共库缓存 /// /// 获取公共库 船公司 /// /// Task> GetAllCodeCarrier(); /// /// 获取公共库 船名 /// /// Task> GetAllCodeVessel(); /// /// 获取公共库 船代 /// /// Task> GetAllCodeForwarder(); /// /// 获取公共库 场站 /// /// Task> GetAllCodeYard(); /// /// 获取公共库 起始港 /// /// Task> GetAllCodePortLoad(); /// /// 获取公共库 目的港 /// /// Task> GetAllCodePort(); /// /// 获取公共库 包装 /// /// Task> GetAllCodePackage(); /// /// 获取公共库 运输方式 /// /// Task> GetAllCodeService(); /// /// 获取公共库 箱型 /// /// Task> GetAllCodeCtn(); /// /// 获取公共库 付费方式 /// /// Task> GetAllCodeFrt(); /// /// 获取公共库 箱型映射 /// /// Task> GetAllMappingCtn(); /// /// 获取公共库 船司映射 /// /// Task> GetAllMappingCarrier(); /// /// 获取公共库 付费方式映射 /// /// Task> GetAllMappingFrt(); /// /// 获取公共库 船名映射 /// /// Task> GetAllMappingVessel(); /// /// 获取公共库 场站映射 /// /// Task> GetAllMappingYard(); /// /// 设置公共库 船公司 /// /// Task SetAllCodeCarrier(List list); /// /// 设置公共库 船名 /// /// Task SetAllCodeVessel(List list); /// /// 设置公共库 船代 /// /// Task SetAllCodeForwarder(List list); /// /// 设置公共库 场站 /// /// Task SetAllCodeYard(List list); /// /// 设置公共库 起始港 /// /// Task SetAllCodePortLoad(List list); /// /// 设置公共库 目的港 /// /// Task SetAllCodePort(List list); /// /// 设置公共库 包装 /// /// Task SetAllCodePackage(List list); /// /// 设置公共库 运输方式 /// /// Task SetAllCodeService(List list); /// /// 设置公共库 箱型 /// /// Task SetAllCodeCtn(List list); /// /// 设置公共库 付费方式 /// /// Task SetAllCodeFrt(List list); /// /// 设置公共库 箱型映射 /// /// Task SetAllMappingCtn(List list); /// /// 设置公共库 船司映射 /// /// Task SetAllMappingCarrier(List list); /// /// 设置公共库 费用方式映射 /// /// Task SetAllMappingFrt(List list); /// /// 设置公共库 船名映射 /// /// Task SetAllMappingVessel(List list); /// /// 设置公共库 场站映射 /// /// Task SetAllMappingYard(List list); /// /// 设置公共库 起始港映射 /// /// Task SetAllMappingPortLoad(List list); /// /// 获取公共库 起始港映射 /// /// Task> GetAllMappingPortLoad(); /// /// 获取公共库 目的港映射 /// /// Task> GetAllMappingPort(); /// /// 设置公共库 目的港映射 /// /// Task SetAllMappingPort(List list); /// /// 设置公共库 包装映射 /// /// Task SetAllMappingPackage(List list); /// /// 获取公共库 包装映射 /// /// Task> GetAllMappingPackage(); /// /// 获取公共库 运输条款映射 /// /// Task> GetAllMappingService(); /// /// 设置公共库 运输条款映射 /// /// Task SetAllMappingService(List list); #endregion #region DJY /// /// 获取租户参数 /// /// Task> GetAllTenantParam(); /// /// 设置租户参数 /// /// Task SetAllTenantParam(List list); /// /// 获取字典 /// /// Task> GetAllDictData(); /// /// 设置字典 /// /// /// Task SetAllDictData(List list); /// /// 获取EDI参数 /// /// Task> GetAllEdiSetting(); /// /// 设置EDI参数 /// /// Task SetAllEdiSetting(List list); #endregion }