UserService.java
1.23 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
package com.bootdo.system.service;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.bootdo.system.vo.UserVO;
import org.springframework.stereotype.Service;
import com.bootdo.common.domain.Tree;
import com.bootdo.system.domain.DeptDO;
import com.bootdo.system.domain.UserDO;
import org.springframework.web.multipart.MultipartFile;
@Service
public interface UserService {
UserDO get(Long id);
List<UserDO> list(Map<String, Object> map);
int count(Map<String, Object> map);
int save(UserDO user);
int update(UserDO user);
int remove(Long userId);
int batchremove(Long[] userIds);
boolean exit(Map<String, Object> params);
Set<String> listRoles(Long userId);
int resetPwd(UserVO userVO,UserDO userDO) throws Exception;
int adminResetPwd(UserVO userVO) throws Exception;
Tree<DeptDO> getTree();
/**
* 更新个人信息
* @param userDO
* @return
*/
int updatePersonal(UserDO userDO);
/**
* 更新个人图片
* @param file 图片
* @param avatar_data 裁剪信息
* @param userId 用户ID
* @throws Exception
*/
Map<String, Object> updatePersonalImg(MultipartFile file, String avatar_data, Long userId) throws Exception;
}