ny
昨天 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
package jnpf.permission;
 
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import jnpf.base.ActionResult;
import jnpf.base.Pagination;
import jnpf.exception.DataException;
import jnpf.permission.entity.UserEntity;
import jnpf.permission.fallback.UserApiFallback;
import jnpf.permission.model.SystemParamModel;
import jnpf.permission.model.user.*;
import jnpf.permission.model.user.mod.UserIdModelByPage;
import jnpf.permission.model.user.vo.BaseInfoVo;
import jnpf.permission.model.user.vo.UserByRoleVO;
import jnpf.permission.model.user.vo.UserInfoVO;
import jnpf.util.NoDataSourceBind;
import jnpf.utils.FeignName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
import java.util.Map;
 
/**
 * 获取用户信息Api
 *
 * @author JNPF开发平台组
 * @version V3.1.0
 * @copyright 引迈信息技术有限公司(https://www.jnpfsoft.com)
 * @date 2021-03-24
 */
@FeignClient(name = FeignName.PERMISSION_SERVER_NAME, fallback = UserApiFallback.class, path = "/Users")
public interface UserApi {
 
    /**
     * 根据id获取用户
     *
     * @param id 用户id
     * @return
     */
    @PostMapping("/getUserName")
    List<UserEntity> getUserName(@RequestBody List<String> id);
 
 
    /**
     * 根据id获取用户
     *
     * @param userModel
     * @return
     */
    @PostMapping("/getUserNamePagination")
    List<UserEntity> getUserNamePagination(@RequestBody UserModel userModel);
 
    /**
     * 获取用户信息
     *
     * @param id 主键值
     * @return
     */
    @GetMapping("/{id}")
    ActionResult<UserInfoVO> getInfo(@PathVariable("id") String id) throws DataException;
 
    /**
     * 获取用户id
     *
     * @return
     */
    @GetMapping("/getListId")
    List<String> getListId();
 
    /**
     * 信息(登录前)
     *
     *
     * @param userInfoModel
     * @return
     */
    @PostMapping("/getInfoByAccount")
    UserEntity getInfoByAccount(@RequestBody UserInfoModel userInfoModel);
 
    /**
     * 信息(登录前)
     *
     *
     * @param userInfoModel@return
     */
    @PostMapping("/getInfoByUserId")
    UserEntity getInfoByUserId(@RequestBody UserInfoModel userInfoModel);
 
    /**
     * 通过id修改(登录前)
     *
     * @param userUpdateModel
     */
    @PostMapping("/updateById")
    Boolean updateById(@RequestBody UserUpdateModel userUpdateModel);
 
    @PostMapping("/update/{id}")
    Boolean update(@PathVariable("id") String id, @RequestBody UserEntity entity) throws Exception;
 
    /**
     * 通过account获取用户信息
     *
     * @param account
     * @return
     */
    @GetMapping("/getInfoByAccount/{account}")
    UserEntity getInfoByAccount(@PathVariable("account") String account);
 
 
    /**
     * 通过Id获取用户信息
     *
     * @param id 主键值
     * @return
     */
    @GetMapping("/getInfoById/{id}")
    UserEntity getInfoById(@PathVariable("id") String id);
 
 
    /**
     * 通过Id获取用户信息
     *
     * @param id 主键值
     * @return
     */
    @GetMapping("/getInfoByIdInMessage")
    UserEntity getInfoByIdInMessage(@RequestParam("id") String id);
 
    /**
     * 通过Id获取主管信息
     *
     * @param id 主键值
     * @return
     */
    @GetMapping("/getListByManagerId/{id}")
    List<UserEntity> getListByManagerId(@PathVariable("id") String id);
 
    /**
     * 获取用户信息
     *
     * @return
     * @param enabledMark
     */
    @GetMapping("/getList")
    List<UserEntity> getList(@RequestParam("enabledMark") boolean enabledMark);
 
    /**
     * 获取超级管理员
     *
     * @return
     */
    @GetMapping("/getAdminList")
    List<UserEntity> getAdminList();
 
    /**
     * 修改超级管理员
     *
     * @param adminIds
     * @return
     */
    @PostMapping("/setAdminListByIds")
    Boolean setAdminListByIds(@RequestBody List<String> adminIds);
 
 
    /**
     * 通过fullName获取用户信息
     *
     * @param fullName
     * @return
     */
    @GetMapping("/getByRealName/{fullName}")
    UserEntity getByRealName(@PathVariable("fullName") String fullName);
 
    @PostMapping("/updateUserById")
    Boolean updateUserById(@RequestBody UserEntity userEntity);
 
    @GetMapping("/getUserMap")
    Map<String, Object> getUserMap(@RequestParam("type") String type);
 
    /**
     * 通过mobile获取用户信息
     *
     * @param mobile
     * @return
     */
    @GetMapping("/getInfoByMobile/{mobile}")
    UserEntity getInfoByMobile(@PathVariable("mobile") String mobile);
 
    @PostMapping("/create")
    Boolean create(@RequestBody UserEntity userEntity) throws Exception;
 
    @PostMapping("/delete")
    void delete(@RequestBody UserEntity userEntity);
 
    @PostMapping("/getUserIdList")
    List<String> getUserIdList(@RequestBody List<String> userIds);
 
    @PostMapping("/selectedByIds")
    List<BaseInfoVo> selectedByIds(@RequestBody List<String> ids);
 
    @PostMapping("/getUserNameMark")
    List<UserEntity> getUserNameMark(@RequestBody List<String> id);
 
    @PostMapping("/getObjList")
    List<BaseInfoVo> getObjList(@RequestBody UserIdModelByPage objListModel);
 
    @PostMapping("/getIdsByAccounts")
    List<String> getIdsByAccounts(@RequestBody List<String> accounts);
 
    @PostMapping("/getUserPage")
    List<UserEntity> getUserPage(@RequestBody Pagination pagination);
 
    @PostMapping("/getSystemFieldValue")
    Map<String, String> getSystemFieldValue(@RequestBody SystemParamModel model);
 
    @PostMapping("/getListByOrgIds")
    List<UserEntity> getListByOrgIds(@RequestBody List<String> collect);
 
    @GetMapping("/getUserByMobile")
    UserEntity getUserByMobile(@RequestParam String dingMobile);
 
    @PostMapping("/userPage")
    List<UserEntity> page(@RequestBody UserSystemCountModel userSystemCountModel);
 
    /**
     * 获取用户组织角色等数据列表
     *
     * @param userId
     * @return
     */
    @GetMapping("/getUserObjectIdList")
    UserRelationIds getUserObjectIdList(@RequestParam String userId);
 
    @PostMapping("/logoutUser")
    Boolean logoutUser(@RequestParam("message") String message,@RequestBody List<String> userIds);
}