Zxd.Core/code/Zxd.Crm.Domain/Impl/ISSOEmployeeDomain.cs

35 lines
1.5 KiB
C#

using DG.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zxd.Crm.Domain.Dto;
using static Zxd.Crm.Domain.SSOEmployeeDomain;
namespace Zxd.Crm.Domain.Impl
{
public interface ISSOEmployeeDomain : IScopedDependency
{
Task<List<DeptMentReturnModel>> GetDeptmentByEid(string? eidList);
Task<PageResult<GetEmpowermentDto>> GetEmpowerment(GetEmpowermentByAppidDto dto);
Task<bool> AsyncEmplyeeData();
Task AsyncEmplyeeData(string eid);
Task<bool> ClearZxdEmpolyee();
Task<bool> SSOBindDataInit();
Task<bool> BindSoftUserInit();
Task<bool> RemoveEidCache(string? activeModel);
Task<ApiResult<bool>> SetEmpowerment(SetEmpowermentDto dto);
Task<ApiResult<string>> UpdateLastEmpowerTime(string residString,long? timestamp);
Task<ApiResult<string>> UpdateAppusername(List<Appuser> UpdateAppusernameList);
Task<ApiResult<List<string>>> GetAppuserByEid(int eid);
Task<ApiResult<bool>> AddSoftEmployeeBind(int to_by_eid, string resid, string show_phone, int from_by_eid, int is_main = 0);
Task<ApiResult<bool>> DeleteSoftEmployeeBind(int to_by_eid, string resid, string show_phone, int from_by_eid);
Task<ApiResult<bool>> AddSoftEmployeeBindLog(int to_by_eid, string resid, string type, int from_by_eid);
Task<ApiResult<bool>> SetEmployeeSoftDict(EMPLOYEE_SOFT_DICT data);
}
}