using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
using Znyc.Recruitment.Admin.Commons.IRepositories;
using Znyc.Recruitment.Admin.Security.Dtos;
using Znyc.Recruitment.Admin.Security.Entitys;
namespace Znyc.Recruitment.Admin.Security.IRepositories
{
///
///
public interface IAdminUserRepository : IRepository
{
///
/// 根据用户账号查询用户信息
///
///
///
Task GetByUserName(string userName);
///
/// 根据用户手机号码查询用户信息
///
/// 手机号码
///
Task GetUserByMobilePhone(string mobilePhone);
///
/// 根据Account、手机号查询用户信息
///
/// 登录账号
///
Task GetUserByLogin(string account);
///
/// 根据第三方OpenId查询用户信息
///
/// 第三方类型
/// OpenId值
///
AdminUserEntity GetUserByOpenId(string openIdType, string openId);
///
/// 根据微信UnionId查询用户信息
///
/// UnionId值
///
AdminUserEntity GetUserByUnionId(string unionId);
///
/// 根据userId查询用户信息
///
/// 第三方类型
/// userId
///
UserOpenIdsEntity GetUserOpenIdByuserId(string openIdType, long userId);
///
/// 更新用户信息,第三方平台
///
///
///
///
bool UpdateUserByOpenId(AdminUserEntity entity, AdminUserLogOnEntity userLogOnEntity,
UserOpenIdsEntity userOpenIds,
IDbTransaction trans = null);
///
/// 根据用户ID得到名片信息
///
///
///
//UserNameCardOutPutDto GetUserNameCardInfo(long userId);
///
/// 保存名片
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
////bool SaveNameCard(long userId,string headicon, string UserName, string name, string company, string position,
// string weburl, string mobile, string email, string wx, string wximg,
// string industry, string area, string address, long openflag);
///
/// 所有用户信息用于关注
///
///
///
///
///
IEnumerable GetUserAllListFocusByPage(string currentpage,
string pagesize, long userId);
}
}