210 lines
7.0 KiB
C#
210 lines
7.0 KiB
C#
using Mini.Common;
|
||
using Mini.Model.CrmModel;
|
||
using Mini.Model.Entity;
|
||
using Mini.Model.ViewModel;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Text;
|
||
|
||
namespace Mini.Services.ww
|
||
{
|
||
public interface Iww_hhuser_Service
|
||
{
|
||
|
||
/// <summary>
|
||
/// 内部群
|
||
/// </summary>
|
||
/// <param name="corpid"></param>
|
||
/// <param name="chatid"></param>
|
||
/// <returns></returns>
|
||
Ww_RoomChat GetRoomChat(string corpid, string chatid);
|
||
|
||
/// <summary>
|
||
/// 朋友圈数据获取
|
||
/// </summary>
|
||
/// <param name="v_name">ID</param>
|
||
/// <returns></returns>
|
||
List<Ww_MomentModel> Moment_Get(ref Laypage pager, string v_name, string corp);
|
||
/// <summary>
|
||
/// 外部群
|
||
/// </summary>
|
||
/// <param name="corpid"></param>
|
||
/// <param name="chatid"></param>
|
||
/// <returns></returns>
|
||
Ww_GroupChat GetWw_GroupChat(string corpid, string chatid);
|
||
/// <summary>
|
||
/// 内部群获取
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
List<Ww_InnerGroupModel> GetInnerGroup(ref Laypage pager, string corpid, string name);
|
||
|
||
/// <summary>
|
||
/// 外部群获取
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
List<Ww_OuterGroupModel> GetOuterGroup(ref Laypage pager, string corpid, string name);
|
||
/// <summary>
|
||
/// 获取企业微信成员列表
|
||
/// </summary>
|
||
/// <param name="v_name">ID</param>
|
||
/// <returns></returns>
|
||
List<Ww_hhuserModel> WorList_Get(ref Laypage pager, string v_name, string v_corpid, string v_deptid);
|
||
|
||
Ww_hhuser_Name GetHHuserName(string userid, string corp);
|
||
|
||
bool UpdateHHuserName(Ww_hhuser_Name model);
|
||
|
||
|
||
/// <summary>
|
||
/// 获取企业微信通话查询列表
|
||
/// </summary>
|
||
/// <param name="pager"></param>
|
||
/// <param name="corpid"></param>
|
||
/// <param name="stime"></param>
|
||
/// <param name="etime"></param>
|
||
/// <param name="customername"></param>
|
||
/// <param name="kefuname"></param>
|
||
/// <returns></returns>
|
||
List<Ww_RecordModel> RecordList_Get(ref Laypage pager, string corpid, DateTime? stime, DateTime? etime, string customername, string kefuname, string companycode = null);
|
||
|
||
/// <summary>
|
||
/// 根据客户ID获取所有关系客服
|
||
/// </summary>
|
||
/// <param name="v_name">ID</param>
|
||
/// <returns></returns>
|
||
List<Wx_ExuserModel> Extuser_GetAllUser(string exuserid);
|
||
|
||
/// <summary>
|
||
/// 根据客户ID获取所有关系客服
|
||
/// </summary>
|
||
/// <param name="v_name">ID</param>
|
||
/// <returns></returns>
|
||
List<Wx_ExuserModel> Extuser_GetAllUser(string exuserids, string companycode = null);
|
||
|
||
List<Wx_ExuserModel> Extuser_GetAllUser_check(string exuserids, string companycode = null);
|
||
|
||
/// <summary>
|
||
/// 获取外部联系人列表
|
||
/// </summary>
|
||
/// <param name="v_userid"></param>
|
||
/// <returns></returns>
|
||
List<Ww_User_ExtuserModel> Extuser_Get(string v_userid, string v_corpid);
|
||
/// <summary>
|
||
/// 获取内部联系人好友列表
|
||
/// </summary>
|
||
/// <param name="v_userid"></param>
|
||
/// <param name="v_corpid"></param>
|
||
/// <returns></returns>
|
||
List<Ww_InnerUserModel> InnerUser_Get(string v_userid, string v_corpid);
|
||
|
||
/// <summary>
|
||
/// 查找客户
|
||
/// </summary>
|
||
/// <param name="name">电话号码,昵称,备注</param>
|
||
/// <returns></returns>
|
||
List<Ww_FindUser_Model> Find_User(ref Laypage pager, string name, string myphone, string companycode);
|
||
|
||
/// <summary>
|
||
/// 获取公司信息
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
List<Ww_Corp> Corp_Get();
|
||
|
||
|
||
List<Ww_MsgRoom> GetRoom(ref Laypage pager, string corp, string name);
|
||
/// <summary>
|
||
/// 修改聊天群
|
||
/// </summary>
|
||
/// <param name="corp"></param>
|
||
/// <param name="roomid"></param>
|
||
/// <returns></returns>
|
||
bool UpdateRomeName(string corp, string roomid, string roomname);
|
||
/// <summary>
|
||
/// 获取单个聊天群
|
||
/// </summary>
|
||
/// <param name="corp"></param>
|
||
/// <param name="roomid"></param>
|
||
/// <returns></returns>
|
||
Ww_MsgRoom GetRoom(string corp, string roomid);
|
||
/// <summary>
|
||
/// 获取多个信息
|
||
/// </summary>
|
||
/// <param name="corp"></param>
|
||
/// <param name="roomids"></param>
|
||
/// <returns></returns>
|
||
List<Ww_MsgRoom> GetRoomList(string corp, string roomids);
|
||
|
||
/// <summary>
|
||
/// 获取群,通过成员列表like
|
||
/// </summary>
|
||
/// <param name="corp"></param>
|
||
/// <param name="extendId">外部联系人ID</param>
|
||
/// <returns></returns>
|
||
List<Ww_MsgRoom> GetRoomListByChengYuan(string corp, string extendId);
|
||
|
||
/// <summary>
|
||
/// 获取群成员
|
||
/// </summary>
|
||
/// <param name="corp"></param>
|
||
/// <param name="room"></param>
|
||
/// <returns></returns>
|
||
List<GroupUser> GetGroupUser(string corp, Ww_MsgRoom room);
|
||
|
||
|
||
/// <summary>
|
||
/// 初始化数据库
|
||
/// </summary>
|
||
void InitDb();
|
||
|
||
/// <summary>
|
||
/// 获取 组织结构列表
|
||
/// </summary>
|
||
/// <param name="roleid"></param>
|
||
/// <returns></returns>
|
||
List<object> GetDept(int roleid);
|
||
|
||
/// <summary>
|
||
/// 保存角色部门挂钩数据
|
||
/// </summary>
|
||
/// <param name="errors"></param>
|
||
/// <param name="list"></param>
|
||
/// <param name="roleid"></param>
|
||
/// <returns></returns>
|
||
bool SaveRoleDeptID(ref ValidationErrors errors, List<Ww_Dept_Corp> list, int roleid);
|
||
|
||
/// <summary>
|
||
/// 登陆员工,获取所有可查看的部门ID
|
||
/// </summary>
|
||
/// <param name="roleids"></param>
|
||
/// <returns></returns>
|
||
List<Ww_Dept_CorpInt> GetMyControlDeptId(int[] roleids);
|
||
|
||
/// <summary>
|
||
/// 获取自己管理的成员列表
|
||
/// </summary>
|
||
/// <param name="v_name">ID</param>
|
||
/// <returns></returns>
|
||
List<Ww_hhuserModel> WorList_Get_ByCompany(int type, ref Laypage pager, string v_name, string v_corpid, string eid, List<Ww_Dept_CorpInt> qwdeptcontrolList);
|
||
|
||
|
||
/// <summary>
|
||
/// 获取工号
|
||
/// </summary>
|
||
/// <param name="userid"></param>
|
||
/// <param name="corp"></param>
|
||
/// <returns></returns>
|
||
Ww_hhuser_Eid GetHHuserEid(string userid, string corp);
|
||
/// <summary>
|
||
/// 修改工号
|
||
/// </summary>
|
||
/// <param name="erros"></param>
|
||
/// <param name="model"></param>
|
||
/// <returns></returns>
|
||
|
||
bool UpdateHHuserEid(ref ValidationErrors erros, Ww_hhuser_Eid model);
|
||
|
||
List<Ww_FindUser_Model> Find_UserBySQL(ref Laypage pager, string name, string myphone, string companycode, string extuserid = null);
|
||
}
|
||
|
||
}
|