1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using Central.Control.Domain;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace MES.Production.Service.IService
- {
- /// <summary>
- /// Service层基本用户信息(登录)接口
- /// add 作者: 季健国 QQ:181589805 by 2016-05-22
- /// </summary>
- public interface IUserManage : IRepository<SYS_USER>
- {
- /// <summary>
- /// 管理用户登录验证,并返回用户信息与权限集合
- /// </summary>
- SYS_USER UserLogin(string username, string password);
- /// <summary>
- /// 是否超级管理员
- /// </summary>
- bool IsAdmin(int userId);
- /// <summary>
- /// 根据用户ID获取用户名,不存在返回空
- /// </summary>
- string GetUserName(int id);
- /// <summary>
- /// 根据用户ID获取本职部门名称
- /// </summary>
- string GetUserDptName(int id);
- /// <summary>
- /// 删除用户
- /// </summary>
- bool Remove(int userId);
- /// <summary>
- /// 根据用户构造用户基本信息
- /// </summary>
- Account GetAccountByUser(SYS_USER user);
- /// <summary>
- /// 从Cookie中获取用户信息
- /// </summary>
- Account GetAccountByCookie();
- }
- }
|