package com.gkhy.safePlatform.account.rpc.apimodel;
|
|
import com.gkhy.safePlatform.account.rpc.apimodel.model.req.AccountAddRPCReqDTO;
|
import com.gkhy.safePlatform.account.rpc.apimodel.model.req.AccountModRPCReqDTO;
|
import com.gkhy.safePlatform.account.rpc.apimodel.model.req.query.AccountRPCQuery;
|
import com.gkhy.safePlatform.account.rpc.apimodel.model.resp.*;
|
import com.gkhy.safePlatform.commons.co.ContextCacheUser;
|
import com.gkhy.safePlatform.commons.query.PageQuery;
|
import com.gkhy.safePlatform.commons.vo.ResultVO;
|
import com.gkhy.safePlatform.commons.vo.SearchResultVO;
|
|
import java.time.LocalDate;
|
import java.util.List;
|
public interface AccountUserService {
|
|
|
/**
|
* @Description: 用户分页 支持controller调用 不支持service调用
|
*/
|
String getAccountPage(Long userId, PageQuery<AccountRPCQuery> accountRPCQuery);
|
|
|
/**
|
* @Description: 部门下的用户
|
*/
|
ResultVO<List<DepUserRPCRespDTO>> getDepList(Long userId, Long depId);
|
|
/**
|
* @Description: 新增用户
|
*/
|
ResultVO<String> addAccount(ContextCacheUser currentUser, AccountAddRPCReqDTO accountAddRPCReqDTO);
|
|
/**
|
* @Description: 修改用户
|
*/
|
ResultVO<String> modAccount(ContextCacheUser currentUser, AccountModRPCReqDTO accountModRPCReqDTO);
|
|
/**
|
* @Description: 删除用户
|
*/
|
ResultVO<String> delAccount(ContextCacheUser currentUser, Long id);
|
|
|
/**
|
* @Description: 根据uid获取个人信息详情
|
*/
|
ResultVO<PersonalDetailRPCRespDTO> getPersonalAccountDetail(Long userId);
|
|
|
/**
|
* @Description: 根据uid startTime endTime 获取一段时间内的人员上班情况
|
*/
|
ResultVO<UserGroupTimTableRPCRespDTO> getUserGroupWorkTimeTable(Long uid,LocalDate startTime,LocalDate endTime);
|
|
|
/**
|
* @Description: 根据 uid 获取用户信息
|
*/
|
ResultVO<UserInfoRPCRespDTO> getUserInfoByUid(Long uid);
|
|
/**
|
* @Description: 根据 uids 获取多个用户信息
|
*/
|
ResultVO<List<UserInfoRPCRespDTO>> listUserInfoByUids(List<Long> uids);
|
|
|
/**
|
* @Description: 根据 realName 获取用户列表
|
*/
|
ResultVO<List<UserInfoRPCRespDTO>> listUserInfoByRealName(String realName);
|
|
}
|