using System; using System.Collections.Generic; using WX.CRM.Model.Entity; using WX.CRM.Model.QueryMap; namespace WX.CRM.IBLL.RedisBL { public interface IReadOrWriteFromRedis { #region res_customer模块 RES_CUSTOMER GetInfo_Res_Customer(string resid, out bool IsSuccess); List GetList_Res_Customer(string[] resids, out bool IsSuccess); void AddRedis_Res_Customer(RES_CUSTOMER entity, out bool IsSuccess); #endregion #region res_customerdetail模块 RES_CUSTOMERDETAIL GetInfo_Res_CustomerDetail(string resid, out bool IsSuccess); void AddRedis_Res_CustomerDetail(RES_CUSTOMERDETAIL entity, out bool IsSuccess); #endregion #region gjs_customer模块 //GJS_CUSTOMER GetInfo_Gjs_Customer(string tradecode, out bool IsSuccess); ////List GetList_Gjs_Customer(string[] resids, out bool IsSuccess); //void AddRedis_Gjs_Customer(GJS_CUSTOMER entity, out bool IsSuccess); #endregion #region gjs_customerboce模块 //GJS_CUSTOMERBOCE GetInfo_Gjs_Customerboce(string tradecode); //void AddRedis_Gjs_Customerboce(GJS_CUSTOMERBOCE entity, out bool IsSuccess); #endregion #region soft_user模块 SOFT_USER GetInfo_Soft_User(string username, out bool IsSuccess); List GetList_Soft_User(string[] usernames, out bool IsSuccess); void AddRedis_Soft_User(SOFT_USER entity, out bool IsSuccess); #endregion #region res_customeruser_resid模块 List GetAll_Res_Customeruser(string[] resids, out bool isSuccess); void AddRedis_Res_Customeruser_Resid(string resid, string username, out bool IsSuccess); #endregion #region res_customeruser_username模块 List GetAll_Res_Customeruser_Username(string[] usernames, out bool isSuccess); void AddRedis_Res_Customeruser_Username(string resid, string username, out bool IsSuccess); #endregion #region ord_memocontent模块 ORD_MEMOCONTENT GetInfo_Ord_Memocontent(decimal contentid); void AddRedis_Ord_Memocontent(ORD_MEMOCONTENT entity, out bool IsSuccess); void DeleteRedis_Ord_Memocontent(decimal contentid, out bool IsSuccess); #endregion #region cache_ord_memo模块 CACHE_ORD_MEMO GetInfo_CacheOrdMemo(decimal memoid); List GetAll_CacheOrdMemo(string customerid, out bool IsSuccess); void AddRedis_CacheOrdMemo(CACHE_ORD_MEMO entity, out bool IsSuccess); void DeleteRedis_CacheOrdMemo(decimal memoid, out bool IsSuccess); void UpdateCallTime(decimal memoid, DateTime? calltime, DateTime? calltimeend, out bool IsSuccess); #endregion #region resid_memoid_redis模块 List GetAll_MemoId(string[] resids); void AddRedis_Resid_Memoid(string resid, decimal memoid, out bool IsSuccess); void DeleteRedis_Resid_Memoid(string resid, decimal memoid, out bool IsSuccess); #endregion #region 出局资源 bool AddRedis_Res_CallOutCustomer(RES_CALLOUTCUSTOMER entity); bool RemoveRedis_Res_CallOutCustomer(string key); #endregion } }