user expand service
This commit is contained in:
parent
9f2f515a4e
commit
c2cbfb077b
@ -2,7 +2,6 @@ package ink.wgink.interfaces.user;
|
||||
|
||||
import ink.wgink.interfaces.manager.ISystemConfigManager;
|
||||
import ink.wgink.pojo.ListPage;
|
||||
import ink.wgink.pojo.dtos.department.DepartmentUserDTO;
|
||||
import ink.wgink.pojo.dtos.user.UserDTO;
|
||||
import ink.wgink.pojo.result.SuccessResultData;
|
||||
import ink.wgink.pojo.result.SuccessResultList;
|
||||
@ -134,4 +133,12 @@ public interface IUserBaseService {
|
||||
* @return
|
||||
*/
|
||||
SuccessResultData<String> getPasswordStatus(ISystemConfigManager systemConfigManager);
|
||||
|
||||
/**
|
||||
* 用户列表
|
||||
*
|
||||
* @param keywords 关键字
|
||||
* @return
|
||||
*/
|
||||
List<UserDTO> listByKeywords(String keywords);
|
||||
}
|
||||
|
@ -0,0 +1,112 @@
|
||||
package ink.wgink.interfaces.user;
|
||||
|
||||
import ink.wgink.pojo.ListPage;
|
||||
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
|
||||
* 当你想要放弃的时候,想想当初你为何开始
|
||||
*
|
||||
* @param <UserExpandDTO> 拓展的对象
|
||||
* @ClassName: IUserExpandBaseService
|
||||
* @Description: 用户拓展业务
|
||||
* @Author: WangGeng
|
||||
* @Date: 2021/1/24 12:52
|
||||
* @Version: 1.0
|
||||
**/
|
||||
public interface IUserExpandBaseService<UserExpandDTO extends UserDTO> {
|
||||
|
||||
/**
|
||||
* 用户详情
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @return
|
||||
*/
|
||||
UserExpandDTO get(String userId);
|
||||
|
||||
/**
|
||||
* 用户详情
|
||||
*
|
||||
* @param username 用户名
|
||||
* @return
|
||||
*/
|
||||
UserExpandDTO getByUsername(String username);
|
||||
|
||||
/**
|
||||
* 用户列表
|
||||
*
|
||||
* @param userIds 用户ID列表
|
||||
* @return
|
||||
*/
|
||||
List<UserExpandDTO> listByUserIds(List<String> userIds);
|
||||
|
||||
/**
|
||||
* 用户列表
|
||||
*
|
||||
* @param usernames 用户名列表
|
||||
* @return
|
||||
*/
|
||||
List<UserExpandDTO> listByUsernames(List<String> usernames);
|
||||
|
||||
/**
|
||||
* 用户列表
|
||||
*
|
||||
* @param params 参数
|
||||
* @return
|
||||
*/
|
||||
List<UserExpandDTO> list(Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 用户分页列表
|
||||
*
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
SuccessResultList<List<UserExpandDTO>> listPage(ListPage page);
|
||||
|
||||
/**
|
||||
* 用户分页列表
|
||||
*
|
||||
* @param userIds 用户ID列表
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
SuccessResultList<List<UserExpandDTO>> listPageByIds(List<String> userIds, ListPage page);
|
||||
|
||||
/**
|
||||
* 用户ID分页列表
|
||||
*
|
||||
* @param excludeUserIds 不包含的用户ID
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
SuccessResultList<List<UserExpandDTO>> listPageByExcludeIds(List<String> excludeUserIds, ListPage page);
|
||||
|
||||
/**
|
||||
* 用户统计
|
||||
*
|
||||
* @param startDate 开始日期,yyyy-MM-dd
|
||||
* @param endDate 结束日期,yyyy-MM-dd
|
||||
* @return
|
||||
*/
|
||||
int countDateRange(String startDate, String endDate);
|
||||
|
||||
/**
|
||||
* 用户统计
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
int count();
|
||||
|
||||
/**
|
||||
* 用户列表
|
||||
*
|
||||
* @param keywords 关键字
|
||||
* @return
|
||||
*/
|
||||
List<UserExpandDTO> listByKeywords(String keywords);
|
||||
}
|
Loading…
Reference in New Issue
Block a user