Commit 76f61857 authored by 黎博's avatar 黎博

修改接口返回值

parent 7dc4bd3b
...@@ -69,7 +69,7 @@ public class YxmController { ...@@ -69,7 +69,7 @@ public class YxmController {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("total", tSkuInfoIPage.getTotal()); map.put("total", tSkuInfoIPage.getTotal());
map.put("list", tSkuInfoIPage.getRecords()); map.put("list", tSkuInfoIPage.getRecords());
return Result.buildSuccessResult(map); return Result.buildSuccessResult("获取sku列表成功.", map);
} }
/** /**
...@@ -107,7 +107,7 @@ public class YxmController { ...@@ -107,7 +107,7 @@ public class YxmController {
e.printStackTrace(); e.printStackTrace();
return Result.buildErrorStateResult("下单失败!", false); return Result.buildErrorStateResult("下单失败!", false);
} }
return Result.buildSuccessResult("下单成功!"); return Result.buildSuccessResult("下单成功!", true);
} }
/** /**
...@@ -126,6 +126,6 @@ public class YxmController { ...@@ -126,6 +126,6 @@ public class YxmController {
e.printStackTrace(); e.printStackTrace();
return Result.buildErrorStateResult("地址绑定失败!", false); return Result.buildErrorStateResult("地址绑定失败!", false);
} }
return Result.buildSuccessResult("地址绑定成功!"); return Result.buildSuccessResult("地址绑定成功!", true);
} }
} }
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