懒羊羊
2023-08-30 71e81ed1d12e4d69f53c8ad9e066650ad4186293
提交 | 用户 | 时间
71e81e 1 package cn.stylefeng.guns.sys.modular.rest.mapper;
2
3 import cn.stylefeng.guns.sys.modular.rest.entity.RestUser;
4 import cn.stylefeng.roses.core.datascope.DataScope;
5 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
6 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
7 import org.apache.ibatis.annotations.Param;
8
9 import java.util.Map;
10
11 /**
12  * <p>
13  * 管理员表 Mapper 接口
14  * </p>
15  *
16  * @author stylefeng
17  * @since 2018-12-07
18  */
19 public interface RestUserMapper extends BaseMapper<RestUser> {
20
21     /**
22      * 修改用户状态
23      */
24     int setStatus(@Param("userId") Long userId, @Param("status") String status);
25
26     /**
27      * 修改密码
28      */
29     int changePwd(@Param("userId") Long userId, @Param("pwd") String pwd);
30
31     /**
32      * 根据条件查询用户列表
33      */
34     Page<Map<String, Object>> selectUsers(@Param("page") Page page, @Param("dataScope") DataScope dataScope, @Param("name") String name, @Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("deptId") Long deptId);
35
36     /**
37      * 设置用户的角色
38      */
39     int setRoles(@Param("userId") Long userId, @Param("roleIds") String roleIds);
40
41     /**
42      * 通过账号获取用户
43      */
44     RestUser getByAccount(@Param("account") String account);
45
46 }