招聘后台
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

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);
}
}