|
|
@@ -4,7 +4,6 @@ import com.uas.account.entity.User;
|
|
|
import com.uas.platform.b2c.common.account.v2.service.UserService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
@@ -32,11 +31,13 @@ public class UserController {
|
|
|
/**
|
|
|
* 删除用户
|
|
|
*
|
|
|
- * @param uu
|
|
|
+ * @param
|
|
|
*/
|
|
|
- @RequestMapping(value = "/removeUser/{uu}", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "/removeUser", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
- public void removeUser(@PathVariable Long uu) {
|
|
|
- userService.delete(uu);
|
|
|
+ public void removeUser(User user) {
|
|
|
+ Long uu = Long.valueOf(user.getDialectUID());
|
|
|
+ Long enuu = Long.valueOf(user.getSpaceDialectUID());
|
|
|
+ userService.delete(uu, enuu);
|
|
|
}
|
|
|
}
|