Commit 4e14818f authored by 王俊权's avatar 王俊权

清除用户活跃订单修改返回类型

parent 5e1c5c71
......@@ -120,8 +120,9 @@ public class UserController {
*/
@PutMapping("/order/clean")
@Security(authorityId = "User.cleanUserOrder")
public Tuple<Boolean,String> cleanUserOrder(@RequestParam @Valid @NotEmpty(message = "无效的用户手机号") String mobile) {
return this.xyqbUserService.cleanUserOrder(mobile);
public Result<Boolean> cleanUserOrder(@RequestParam @Valid @NotEmpty(message = "无效的用户手机号") String mobile) {
Tuple<Boolean, String> result = this.xyqbUserService.cleanUserOrder(mobile);
return Result.buildSuccess(result.getKey(),result.getValue());
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment