12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- using Dto;
- using Model;
- using Model.Base;
- using Vo;
- namespace Services
- {
- public interface ISysLoginService : IBaseService<SysLogininfor>
- {
- /// <summary>
- /// 验证登录接口
- /// </summary>
- /// <param name="loginBody"></param>
- /// <param name="logininfor"></param>
- /// <returns></returns>
- public bool CheckLogin(string scope, string grantType, string token);
- /// <summary>
- /// 登录成功返回数据
- /// </summary>
- /// <param name="loginUser"></param>
- /// <returns></returns>
- public OAuthVo GetLoginInfo(TokenModel loginUser);
- /// <summary>
- /// 登录
- /// </summary>
- /// <param name="loginBody"></param>
- /// <param name="logininfor"></param>
- /// <returns></returns>
- public SysUser Login(LoginBodyDto loginBody, SysLogininfor logininfor);
- /// <summary>
- /// 手机号登录
- /// </summary>
- /// <param name="loginBody"></param>
- /// <param name="logininfor"></param>
- /// <param name="user"></param>
- /// <returns></returns>
- SysUser PhoneLogin(PhoneLoginDto loginBody, SysLogininfor logininfor, SysUser user);
- /// <summary>
- /// 查询操作日志
- /// </summary>
- /// <param name="logininfoDto"></param>
- /// <param name="pager">分页</param>
- /// <returns></returns>
- public PagedInfo<SysLogininfor> GetLoginLog(SysLogininfor logininfoDto, PagerInfo pager);
- /// <summary>
- /// 记录登录日志
- /// </summary>
- /// <param name="sysLogininfor"></param>
- /// <returns></returns>
- public void AddLoginInfo(SysLogininfor sysLogininfor);
- /// <summary>
- /// 清空登录日志
- /// </summary>
- public void TruncateLogininfo();
- /// <summary>
- /// 删除登录日志
- /// </summary>
- /// <param name="ids"></param>
- /// <returns></returns>
- public int DeleteLogininforByIds(long[] ids);
- void CheckLockUser(string userName);
- }
- }
|