郑永安
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
package com.gkhy.safePlatform.account.service;
 
import com.gkhy.safePlatform.account.entity.schedule.GroupStrategyUserTimeTableInfoDO;
import com.gkhy.safePlatform.account.model.dto.req.AccountAddReqDTO;
import com.gkhy.safePlatform.account.model.dto.req.AccountModReqDTO;
import com.gkhy.safePlatform.account.model.dto.req.AccountPwdForgetReqDTO;
import com.gkhy.safePlatform.account.model.dto.resp.*;
import com.gkhy.safePlatform.account.entity.user.UserInfo;
import com.gkhy.safePlatform.account.model.query.AccountQuery;
import com.gkhy.safePlatform.account.model.query.UserScheduleQuery;
import com.gkhy.safePlatform.commons.co.ContextCacheUser;
import com.gkhy.safePlatform.commons.query.PageQuery;
import com.gkhy.safePlatform.commons.vo.SearchResultVO;
 
import java.time.LocalDate;
import java.util.List;
public interface AccountService {
 
 
    /**
     * @Description: 获取一个用户
     */
    UserInfo getCurrentUserInfoByUsername(String username);
 
    /**
    * @Description: 获取个人信息
    */
    PersonalDetailRespDTO getPersonalAccountByUserId(Long userId);
 
 
    /**
    * @Description: 新增账户
    */
    void addAccount(ContextCacheUser currentUser, AccountAddReqDTO accountAddDto);
 
 
    /**
    * @Description: 修改账户
    */
    void modAccount(ContextCacheUser currentUser, AccountModReqDTO accountModDto);
 
 
    /**
    * @Description:
    */
    SearchResultVO<List<UserDetailRespDTO>> listAccountByPage(Long userId, PageQuery<AccountQuery> pageQuery);
 
 
    /**
    * @Description: 获取部门下用户信息
    */
    List<DepUserInfoRespDTO> getDepUserList(Long userId, Long depId);
 
 
    /**
    * @Description: 根据uid删除用户
    */
    void delAccount(ContextCacheUser currentUser, Long uid);
 
 
    /**
    * @Description: 查找用户的 排班信息
    */
    List<UserTimeTableRespDTO> getUserScheduleInfo(ContextCacheUser currentUser, UserScheduleQuery userShiftQuery);
 
 
    /**
     * @Description: 获取某段时间的 uid 用户排班
     */
    UserGroupTimTableRespDTO getUserGroupWorkSchedule(Long uid,LocalDate startTime,LocalDate endTime);
 
 
    /**
     * @Description: 根据 uid 获取用户信息
     */
    UserInfoRespDTO getUserInfoByUid(Long uid);
 
 
    /**
    * @Description: 获取所有用户
    */
    List<UserListRespDTO> getUserList(Long uid);
 
 
    List<UserInfoRespDTO> listUserByUids(List<Long> uids);
 
 
    List<UserInfoRespDTO> listUserByRealName(String realName);
 
    /**
     * @Description: 忘记密码
     */
    void pwdForget(AccountPwdForgetReqDTO reqDTO);
}