using System; using System.Collections.Generic; using WX.CRM.Common; using WX.CRM.Common.Layui; using WX.CRM.Model.crmModel; using WX.CRM.Model.DTO; using WX.CRM.Model.Entity; using WX.CRM.Model.Ww; namespace WX.CRM.IBLL.Ww { public interface IWw_huser { List Corp_Get(); List Corp_GetByCompanyCode(string companycode); /// /// 外部联系人单个获取 /// /// /// Ww_Extuser ExtUserGet(string userid); /// /// 根据工号获取企业微信账号列表 /// /// /// List WorkListGetByEid(decimal Eid, string name); Ww_hhuser HHuser_Get(string userid); Ww_hhuser HHuser_Get(string userid, string corpid); List WorkListGetByNickName(string nickname, IList kfid = null); List WorkListGetByUnionId(string nickname); List WorkListGetByRemark(string remark, IList kfid = null); /// /// 获取企业微信成员列表 /// /// /// /// /// List WorList_Get(ref Laypage page, Ww_IndexQueryModel dto); List WorList_GetByName(ref Laypage page, MyWeUserDto dto); List WxResourceList_GetByName(ref Laypage page, MyWeUserDto dto); /// /// 个人企微账户列表 /// /// /// List SelfWorList_Get(ref Laypage page, MyWeUserDto dto); Dictionary> GetAllCorpDept(string companycode); List MyWeUser_Get(ref Laypage page, MyWeUserDto myWeUserDto); List GeExtUsertList(string corpid, string name, ref Pager pager); WW_HHUSER_EID GetModel(string userid, string corp); List GetUserList(params decimal[] userid); /// /// 根据客服的企微ID /// /// /// List GetUserListByQWUserId(params string[] userid); /// /// 设置工号 /// /// /// /// /// /// bool SetEid(decimal eid, string userid, string corp, decimal? status, ref ValidationErrors error, bool isCms = false); /// /// 批量更新推广状态 /// /// /// /// bool BatchUpdateStatus(Ww_BatchStatus postData, ref ValidationErrors erro); bool BatchChangeEid(decimal eid, string data, ref ValidationErrors error); /// /// /// /// /// /// bool ClearEid(List list, decimal eid, ref ValidationErrors error); bool SetAssignStatus(AssignStatusDto dto); /// /// 获取企业合规的关键词 /// /// List GetKeyWordAll(); /// /// 修改关键字 /// /// /// bool UpdateKeyWord(Hg_KeyWordAllModel model, ref string message); /// /// 修改合规关键词,当前用到 /// /// /// /// bool SetKeyWords(string keywords, ref ValidationErrors erro); /// /// 获取合规消息 /// /// /// 客服ID /// 聊天开始时间 /// 聊天结束时间 /// 系统操作开始时间 /// 系统操作结束时间 /// 关键词 /// 客服ID /// 客户ID /// List GetHg_Message(ref Pager pager, string userNames, DateTime? msgstime, DateTime? msgetime, DateTime? stime, DateTime? etime, string keyword, string kefid, string userid, int? status); /// /// 将合规信息修改成已读 /// /// /// bool Read(string msgid); /// /// 根据msgid获取 违规关键字 /// /// /// List GetMsgWordList(params string[] msgids); /// /// 已经违规 /// /// /// bool Violations(string msgid); /// /// 获取单条数据 /// /// /// Hg_MessageModel GetMsgById(string msgid); Ww_Extuser GetExtUserByUnionId(string unionid); List GetUserExtUserByUserId(string userid); /// /// 1 为 禁用 2为暂停 /// /// /// List GetWxStatusNotice(int type); void UpdateWxStatusNotice(string filter, decimal userId, int? type); } }