|
@@ -7,6 +7,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -62,7 +63,7 @@ public class UserCloudServiceProvider extends ControllerSupport implements UserC
|
|
|
@ApiOperation(value = "保存用户")
|
|
|
@PostMapping("addUser")
|
|
|
@Override
|
|
|
- public AddUserResp addUser(AddUserReq req) {
|
|
|
+ public AddUserResp addUser(@RequestBody AddUserReq req) {
|
|
|
trim(req);
|
|
|
Long rootOrgId = req.getRootOrgId();
|
|
|
String loginName = req.getLoginName();
|
|
@@ -117,7 +118,7 @@ public class UserCloudServiceProvider extends ControllerSupport implements UserC
|
|
|
@ApiOperation(value = "获取用户")
|
|
|
@PostMapping("getUser")
|
|
|
@Override
|
|
|
- public GetUserResp getUser(GetUserReq req) {
|
|
|
+ public GetUserResp getUser(@RequestBody GetUserReq req) {
|
|
|
Long rootOrgId = req.getRootOrgId();
|
|
|
String loginName = req.getLoginName();
|
|
|
UserEntity userEntity = userRepo.findByRootOrgIdAndLoginName(rootOrgId, loginName);
|