|
@@ -50,6 +50,15 @@ public class UserController {
|
|
|
return userService.loginEmployee(username, password);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据id获取用户信息
|
|
|
+ * userId 用户id
|
|
|
+ */
|
|
|
+ @RequestMapping("/loginEmployee")
|
|
|
+ public HttpRespMsg getUserInfo(@RequestParam String userId) {
|
|
|
+ return userService.getUserInfo(userId);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取员工的列表
|
|
|
*/
|
|
@@ -60,6 +69,7 @@ public class UserController {
|
|
|
|
|
|
/**
|
|
|
* 删除用户
|
|
|
+ * userId 用户id
|
|
|
*/
|
|
|
@RequestMapping("/deleteUser")
|
|
|
public HttpRespMsg deleteUser(@RequestParam String userId) {
|