package com.ssm.manage.service;

import com.github.pagehelper.PageInfo;
import com.ssm.core.service.BaseService;
import com.ssm.manage.entity.SmsException;
import com.ssm.manage.entity.SysRolePower;
import com.ssm.manage.entity.SysUser;
import com.ssm.manage.query.UserRequest;

import java.util.List;

public interface SsmSysUserService extends BaseService<SysUser> {
    public PageInfo<SysUser> selectByPage(UserRequest userRequest);
    public int deleteSysUser(UserRequest userRequest);
    public int deleteSingleSysUser(UserRequest userRequest);

    public int saveSysUser(SysUser sysUser,String userNum) throws SmsException;

    public int updateSysUser(SysUser sysUser,String userNum) throws SmsException;

    public int updateSysUserState(UserRequest userRequest,String userNum);

    List userHasPower(Long userId) throws SmsException;
}
