chen.lin
6 小时以前 e1cac1af6129216da66e569ddec892dd1f07fe80
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
package com.vincent.rsf.server.system.service;
 
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.vincent.rsf.server.common.domain.BaseParam;
import com.vincent.rsf.server.common.domain.PageParam;
import com.vincent.rsf.server.common.domain.PageResult;
import com.vincent.rsf.server.system.entity.User;
 
public interface UserService extends IService<User> {
 
    PageResult<User> pageRel(PageParam<User, BaseParam> pageParam);
 
    User getByUsername(String username, Long tenantId);
 
    User getByEmail(String email, Long tenantId);
 
    User setUserAuthInfo(User user);
 
    /**
     * 为返回给前端的 User 填充 roleIds,只查一次库,避免各处重复写且 @JsonIgnore 导致前端拿不到
     */
    User fillRoleIdsForResponse(User user);
 
    boolean comparePassword(String dbPassword, String inputPassword);
 
    String encodePassword(String password);
 
    User selectByUsernameWithoutTenant(String username, Long tenantId);
}