You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
3.9 KiB
108 lines
3.9 KiB
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
|
|
{
|
|
/// <summary>
|
|
/// </summary>
|
|
public interface IAdminUserRepository : IRepository<AdminUserEntity, long>
|
|
{
|
|
/// <summary>
|
|
/// 根据用户账号查询用户信息
|
|
/// </summary>
|
|
/// <param name="userName"></param>
|
|
/// <returns></returns>
|
|
Task<AdminUserEntity> GetByUserName(string userName);
|
|
|
|
/// <summary>
|
|
/// 根据用户手机号码查询用户信息
|
|
/// </summary>
|
|
/// <param name="mobilePhone">手机号码</param>
|
|
/// <returns></returns>
|
|
Task<AdminUserEntity> GetUserByMobilePhone(string mobilePhone);
|
|
|
|
/// <summary>
|
|
/// 根据Account、手机号查询用户信息
|
|
/// </summary>
|
|
/// <param name="account">登录账号</param>
|
|
/// <returns></returns>
|
|
Task<AdminUserEntity> GetUserByLogin(string account);
|
|
|
|
/// <summary>
|
|
/// 根据第三方OpenId查询用户信息
|
|
/// </summary>
|
|
/// <param name="openIdType">第三方类型</param>
|
|
/// <param name="openId">OpenId值</param>
|
|
/// <returns></returns>
|
|
AdminUserEntity GetUserByOpenId(string openIdType, string openId);
|
|
|
|
/// <summary>
|
|
/// 根据微信UnionId查询用户信息
|
|
/// </summary>
|
|
/// <param name="unionId">UnionId值</param>
|
|
/// <returns></returns>
|
|
AdminUserEntity GetUserByUnionId(string unionId);
|
|
|
|
/// <summary>
|
|
/// 根据userId查询用户信息
|
|
/// </summary>
|
|
/// <param name="openIdType">第三方类型</param>
|
|
/// <param name="userId">userId</param>
|
|
/// <returns></returns>
|
|
UserOpenIdsEntity GetUserOpenIdByuserId(string openIdType, long userId);
|
|
|
|
/// <summary>
|
|
/// 更新用户信息,第三方平台
|
|
/// </summary>
|
|
/// <param name="entity"></param>
|
|
/// <param name="userLogOnEntity"></param>
|
|
/// <param name="trans"></param>
|
|
bool UpdateUserByOpenId(AdminUserEntity entity, AdminUserLogOnEntity userLogOnEntity,
|
|
UserOpenIdsEntity userOpenIds,
|
|
IDbTransaction trans = null);
|
|
|
|
/// <summary>
|
|
/// 根据用户ID得到名片信息
|
|
/// </summary>
|
|
/// <param name="userid"></param>
|
|
/// <returns></returns>
|
|
//UserNameCardOutPutDto GetUserNameCardInfo(long userId);
|
|
|
|
/// <summary>
|
|
/// 保存名片
|
|
/// </summary>
|
|
/// <param name="userid"></param>
|
|
/// <param name="headicon"></param>
|
|
/// <param name="UserName"></param>
|
|
/// <param name="name"></param>
|
|
/// <param name="company"></param>
|
|
/// <param name="position"></param>
|
|
/// <param name="weburl"></param>
|
|
/// <param name="mobile"></param>
|
|
/// <param name="email"></param>
|
|
/// <param name="wx"></param>
|
|
/// <param name="wximg"></param>
|
|
/// <param name="industry"></param>
|
|
/// <param name="area"></param>
|
|
/// <param name="address"></param>
|
|
/// <param name="openflag"></param>
|
|
/// <returns></returns>
|
|
////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);
|
|
|
|
/// <summary>
|
|
/// 所有用户信息用于关注
|
|
/// </summary>
|
|
/// <param name="currentpage"></param>
|
|
/// <param name="pagesize"></param>
|
|
/// <param name="userid"></param>
|
|
/// <returns></returns>
|
|
IEnumerable<UserAllListFocusOutPutDto> GetUserAllListFocusByPage(string currentpage,
|
|
string pagesize, long userId);
|
|
}
|
|
}
|