| | |
| | | import com.vincent.rsf.server.common.domain.PageResult; |
| | | import com.vincent.rsf.server.system.entity.User; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | public interface UserService extends IService<User> { |
| | | |
| | | /** 按 ID 批量查询用户(带短期缓存,减轻列表页 createBy/updateBy 等多次请求压力) */ |
| | | List<User> listByIdsCached(Collection<Long> ids); |
| | | |
| | | PageResult<User> pageRel(PageParam<User, BaseParam> pageParam); |
| | | |
| | | User getByUsername(String username, Long tenantId); |
| | | |
| | | User getByIdRel(Long userId); |
| | | User getByEmail(String email, Long tenantId); |
| | | |
| | | User setUserAuthInfo(User user); |
| | | |
| | | boolean comparePassword(String dbPassword, String inputPassword); |
| | | |
| | | String encodePassword(String password); |
| | | |
| | | User selectByUsernameWithoutTenant(String username, Long tenantId); |
| | | } |