|
|
@@ -1,13 +1,16 @@
|
|
|
package com.controller.user;
|
|
|
|
|
|
import com.config.RoleInterceptor.Auth;
|
|
|
+import com.model.po.User;
|
|
|
import com.model.pojo.RepEntity;
|
|
|
+import com.model.pojo.annotation.CheckToken;
|
|
|
import com.model.vo.configVo.LoginInfo;
|
|
|
import com.model.vo.configVo.UserGroupInfo;
|
|
|
import com.model.vo.configVo.UserGroupSetInfo;
|
|
|
import com.server.user.UserService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestHeader;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@@ -29,6 +32,16 @@ public class UserController {
|
|
|
// return new RepEntity(RepCode.success);
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
+ 更新用户信息
|
|
|
+ */
|
|
|
+ @Auth(user = "admin")
|
|
|
+ @CheckToken
|
|
|
+ @RequestMapping("/updateUser")
|
|
|
+ public RepEntity updateUser(@RequestHeader String token, @RequestBody User body){
|
|
|
+ return userService.updateUser(body);
|
|
|
+ }
|
|
|
+
|
|
|
/*
|
|
|
查询用户列表
|
|
|
*/
|