crm.core/code/Crm.Core.Domain/Impl/ICacheDomain.cs

60 lines
1.8 KiB
C#

using Crm.Core.Domain.Dto.Customer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Crm.Core.Domain.Config.SystemEnums;
namespace Crm.Core.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<decimal>> GetDeptmentIdByApp(string app);
Task<string> GetAppidByDeptmentId(decimal deptmentId);
Task<List<decimal>> GetDeptmentIds();
Task<List<decimal>> GetSpecialDeptmentIdsByRightCode(string rightcode);
Task<List<SalesDeptDto>> GetSalesDeptList();
Task<decimal> GetCurrentEid();
Task<List<decimal>> GetDeptmentIdsByEid(decimal eid);
Task<List<decimal>> GetEidsByDeptmentIds(GroupOrDeptIdDto deptStr);
Task<BusinessLineInfo> GetBusinessLineByDeptMentIds(GroupOrDeptIdDto dto);
Task<RoleLevel> LevelSSO(decimal eid);
Task<List<decimal>> GetSalesDeptsForEid(decimal eid);
Task<List<DeptmentDto>> GetDeptments();
void GetAllDeptIDOrGidByDeptStr(string deptstr, ref List<decimal> ALLdeptIDS, ref List<decimal> ALLgidS);
string GetApp();
Task<List<decimal>> GetLeadEid(decimal deptid, decimal eid);
Task<List<UserDeptNameInfo>> GetUserInfoByEIds(string eids);
Task<bool> SynchronousCustomer(SynchronousCustomerDto dto);
Task<decimal> GetSeq_smallid_get(decimal deptid);
}
}