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

45 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Crm.Core.MsgTool.Domain.Impl
{
public interface ICacheDomain : ITransientDependency
{
string GetApp();
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<decimal> GetMasterId();
void GetAllDeptIDOrGidByDeptId(decimal deptId, ref List<decimal> deptIDS, ref List<decimal> gidS);
Task<List<BAS_INNERUSER>> GetUserList();
Task<BAS_INNERUSER> GetUserByEid(decimal eid);
Task<string> GetUserNameByEid(decimal eid);
Task<bool> SetApp(IOracleRepository<CrmDbContext> repository, decimal deptmentId);
Task<bool> SetApp(IOracleRepository<CrmDbContext> repository, string appid);
Task<bool> SendCrmMessage(dynamic data);
Task<List<decimal>> GetDeptmentIds(decimal eid);
Task<List<BusinessMapDto>> GetEmployeeBusinessMap();
Task<MsgToolVersionModel> GetMsgToolVersion();
Task<bool> SetMsgToolVersion(MsgToolVersionModel model);
}
}