SysUsersService.java 1.4 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
package com.lyms.cm.service.sys;

import com.baomidou.mybatisplus.plugins.Page;
import com.lyms.cm.entity.sys.SysUsers;
import com.lyms.exception.SystemException;
import com.lyms.web.service.BaseService;

/**
* <p>
* 用户服务类
* </p>
*
* @author maliang
* @since 2017-03-02
*/
public interface SysUsersService extends BaseService<SysUsers> {

/**
* 添加用户
*
* @param user
* @return
* @author maliang
*/
public boolean addUser(SysUsers user) throws SystemException;

/**
* 修改用户信息
*
* @param user
* @return
* @author maliang
*/
public boolean updateUser(SysUsers user) throws SystemException;

/**
* 根据ID获取用户信息
*
* @param userId
* @return
* @author maliang
*/
public SysUsers getUserById(String userId) throws SystemException;

/**
* 分页获取用户数据信息
* <p>
* 该方法不携带任何过滤信息
*
* @param page
* 分页对象
* @return
* @throws SystemException
*/
public Page<SysUsers> getUserByPage(Page<SysUsers> page) throws SystemException;

/**
* 启用/停用
* <p>
* 根据用户ID操作
* <p>
*
* @param userId
* @return
* @author maliang
*/
public boolean enabled(String userId) throws SystemException;

/**
* 删除用户信息
*
* @param userId
* @return
* @throws SystemException
*/
public boolean delete(String userId) throws SystemException;

}