37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using static Crm.Core.External.Domain.Config.SystemEnums;
|
|
|
|
namespace Crm.Core.External.Domain.Impl
|
|
{
|
|
public interface ICacheDomain : ITransientDependency
|
|
{
|
|
Task<string> GetValueParameter(string key);
|
|
|
|
Task<string> GetValueParameter(ParameterEnums key);
|
|
|
|
Task<T> GetParameter<T>(string key) where T : new();
|
|
|
|
Task<T> GetParameter<T>(ParameterEnums key) where T : new();
|
|
|
|
Task<bool> SetApp(IOracleRepository<CrmDbContext> repository, decimal deptmentId);
|
|
|
|
Task<bool> SetApp(IOracleRepository<CrmDbContext> repository, string? appid);
|
|
|
|
Task<List<DeptmentDto>> GetDeptments();
|
|
|
|
Task<List<BAS_SUBCOMTYPE>> GetSubComTypeListByComType(string? appid, ComType type);
|
|
|
|
Task<List<BAS_SUBCOMTYPE>> GetSubComTypeList(string? appid);
|
|
|
|
string GetAppByDeptid(decimal deptmentId);
|
|
|
|
string GetApp();
|
|
|
|
Task<string> GetCodeByDeptid(decimal? deptid);
|
|
|
|
Task<string> GetCodeByAppid(string? appid);
|
|
|
|
Task<RoleLevel> LevelSSO(decimal eid);
|
|
|
|
Task<List<decimal>> GetSalesDeptsForEid(decimal eid);
|
|
}
|
|
} |