doum
2025-09-23 920ad7c1062549f8ff6e5034f84a90c725dc89dd
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
package com.doumee.biz.system;
 
import com.doumee.dao.system.dto.CreateSystemUserDTO;
import com.doumee.dao.system.dto.CreateUserRoleDTO;
import com.doumee.dao.system.dto.ResetSystemUserPwdDTO;
import com.doumee.dao.system.dto.UpdatePwdDto;
 
import java.util.List;
 
/**
 * 系统用户业务处理
 * @author  dm
 * @since 2025/03/31 16:44
 */
public interface SystemUserBiz {
 
    /**
     * 删除
     *
     * @param id 用户ID
     */
    void deleteById(Integer id);
 
    /**
     * 批量删除
     *
     * @param ids 用户ID列表
     */
    void deleteByIdInBatch(List<Integer> ids);
 
    /**
     * 修改密码
     *
     * @param dto 详见UpdatePwdDto
     */
    void updatePwd(UpdatePwdDto dto);
 
    /**
     * 重置密码
     *
     * @param dto 详见ResetSystemUserPwdDTO
     */
    void resetPwd(ResetSystemUserPwdDTO dto);
 
    /**
     * 创建用户
     *
     * @param systemUser 详见CreateSystemUserDTO
     */
    void create(CreateSystemUserDTO systemUser);
 
    /**
     * 修改用户信息
     *
     * @param systemUser 详见CreateSystemUserDTO
     */
    void updateById(CreateSystemUserDTO systemUser);
 
    /**
     * 创建用户角色
     *
     * @param dto 详见CreateUserRoleDTO
     */
    void createUserRole(CreateUserRoleDTO dto);
}