郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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);
 
}