jiangping
2023-09-13 5772013b8f87f6600e86f773de398809dd75b626
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
package com.doumee.service.system;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.doumee.core.model.PageData;
import com.doumee.core.model.PageWrap;
import com.doumee.dao.system.dto.QuerySystemUserDTO;
import com.doumee.dao.system.model.SystemUser;
import com.doumee.dao.system.vo.SystemUserListVO;
import com.doumee.dao.web.request.UserEditRequest;
import com.doumee.dao.web.request.UserPageRequest;
import com.doumee.dao.web.request.WxPhoneRequest;
import com.doumee.dao.web.response.AccountResponse;
import com.doumee.dao.web.response.UserResponse;
import com.doumee.dao.web.response.VisitorLoginResponse;
import org.springframework.web.multipart.MultipartFile;
 
import java.util.List;
 
/**
 * 系统用户Service定义
 * @author Eva.Caesar Liu
 * @date 2023/03/21 14:49
 */
public interface SystemUserService {
 
    /**
     * 创建
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    Integer create(SystemUser systemUser);
 
    /**
     * 主键删除
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    void deleteById(Integer id);
 
    /**
     * 批量主键删除
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    void deleteByIdInBatch(List<Integer> ids);
 
    /**
     * 主键更新
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    void updateById(SystemUser systemUser);
 
    /**
     * 批量主键更新
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    void updateByIdInBatch(List<SystemUser> systemUsers);
 
    /**
     * 主键查询
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    SystemUser findById(Integer id);
 
    /**
     * 条件查询单条记录
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    SystemUser findOne(SystemUser systemUser);
 
    /**
     * 条件查询
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    List<SystemUser> findList(SystemUser systemUser);
  
    /**
     * 分页查询
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    PageData<SystemUserListVO> findPage(PageWrap<QuerySystemUserDTO> pageWrap);
 
    PageData<SystemUser> findAllList(PageWrap<SystemUser> pageWrap);
 
    /**
     * 条件统计
     * @author Eva.Caesar Liu
     * @date 2023/03/21 14:49
     */
    long count(SystemUser systemUser);
 
 
    /****************************************移动端接口开始********************************************************************/
 
 
    /**
     * 小程序 普通登录
     * @param account
     * @param password
     * @return
     */
    AccountResponse ordinaryLogin(String account, String password);
 
 
    /**
     * 拉取微信授权
     * @param code
     * @param userId
     */
    void wxEmpower(String code,Integer userId);
 
    /**
     * 查询人员分页
     * @param pageWrap
     * @return
     */
    IPage<UserResponse> getUserPage(PageWrap<UserPageRequest> pageWrap);
 
 
    /**
     * 查询会议下参会人员
     * @param bookingsId
     * @return
     */
    List<UserResponse> getUserList(Integer bookingsId);
 
    /**
     * 查询用户 部门/手机号
     * @param id
     * @return
     */
    UserResponse getUserInfo(Integer id);
 
    /**
     * 修改用户信息
     * @param userEditRequest
     */
    void editUserInfo(UserEditRequest userEditRequest);
 
 
    /**
     * 访客登录
     * @param code
     * @return
     */
    VisitorLoginResponse visitorLogin(String code);
 
    /**
     * 访客授权手机号
     * @param wxPhoneRequest
     * @return
     */
    VisitorLoginResponse wxPhone(WxPhoneRequest wxPhoneRequest);
}