wg-basic/basic-interface/src/main/java/ink/wgink/interfaces/user/IUserBaseService.java

89 lines
1.8 KiB
Java
Raw Normal View History

2021-01-28 12:13:15 +08:00
package ink.wgink.interfaces.user;
import ink.wgink.pojo.ListPage;
2021-02-14 22:09:36 +08:00
import ink.wgink.pojo.dtos.department.DepartmentUserDTO;
2021-01-28 12:13:15 +08:00
import ink.wgink.pojo.dtos.user.UserDTO;
import ink.wgink.pojo.result.SuccessResultList;
import java.util.List;
import java.util.Map;
/**
* When you feel like quitting. Think about why you started
* 当你想要放弃的时候想想当初你为何开始
*
* @ClassName: IUserService
* @Description: 用户
* @Author: WangGeng
* @Date: 2021/1/24 12:52
* @Version: 1.0
**/
public interface IUserBaseService {
/**
* 用户详情
*
* @param userId 用户ID
* @return
*/
UserDTO get(String userId);
/**
* 用户详情
*
* @param username 用户名
* @return
*/
UserDTO getByUsername(String username);
/**
* 用户列表
*
2021-01-29 15:02:37 +08:00
* @param userIds 用户ID列表
2021-01-28 12:13:15 +08:00
* @return
*/
2021-01-29 15:02:37 +08:00
List<UserDTO> listByUserIds(List<String> userIds);
2021-01-28 12:13:15 +08:00
2021-02-09 23:54:18 +08:00
/**
* 用户列表
*
* @param usernames 用户名列表
* @return
*/
List<UserDTO> listByUsernames(List<String> usernames);
/**
* 用户列表
*
* @param params 参数
* @return
*/
List<UserDTO> list(Map<String, Object> params);
2021-01-28 12:13:15 +08:00
/**
* 用户分页列表
*
* @param page
* @return
*/
SuccessResultList<List<UserDTO>> listPage(ListPage page);
2021-02-14 22:09:36 +08:00
/**
* 用户分页列表
*
* @param userIds 用户ID列表
* @param page
* @return
*/
SuccessResultList<List<UserDTO>> listPageByIds(List<String> userIds, ListPage page);
/**
* 用户ID分页列表
*
* @param excludeUserIds 不包含的用户ID
* @param page
* @return
*/
SuccessResultList<List<UserDTO>> listPageByExcludeUserIds(List<String> excludeUserIds, ListPage page);
2021-01-28 12:13:15 +08:00
}