Commit 1a2602ce by 杨林龙

添加登陆接口返回码

1 parent b102969e
...@@ -27,7 +27,8 @@ public class AdMgrController { ...@@ -27,7 +27,8 @@ public class AdMgrController {
@RequestMapping(value = "/getAdMgrList", method = RequestMethod.GET) @RequestMapping(value = "/getAdMgrList", method = RequestMethod.GET)
@ResponseBody @ResponseBody
public R getAdMgrList(Page page) { public R getAdMgrList(Page page) {
return adMgrService.getAdMgrList(page); R adMgrList = adMgrService.getAdMgrList(page);
return adMgrList;
} }
@RequestMapping(value = "/insertAd", method = RequestMethod.POST) @RequestMapping(value = "/insertAd", method = RequestMethod.POST)
......
...@@ -44,7 +44,7 @@ public class CustomerMgrController { ...@@ -44,7 +44,7 @@ public class CustomerMgrController {
return R.ok("重置的密码成功"); return R.ok("重置的密码成功");
} }
@RequestMapping(value = "/startandstop", method = RequestMethod.GET) @RequestMapping(value = "/startandstop", method = RequestMethod.POST)
@ResponseBody @ResponseBody
public R startAndStop(int id, int status) { public R startAndStop(int id, int status) {
int num = customerMgrService.startAndStop(id, status); int num = customerMgrService.startAndStop(id, status);
...@@ -66,9 +66,9 @@ public class CustomerMgrController { ...@@ -66,9 +66,9 @@ public class CustomerMgrController {
public R register(PlatformCustomer customer) throws NoSuchAlgorithmException { public R register(PlatformCustomer customer) throws NoSuchAlgorithmException {
int num = customerMgrService.register(customer); int num = customerMgrService.register(customer);
if (num == 0) { if (num == 0) {
return R.error("注册失败"); return R.error("注册失败").data(0);
} }
return R.ok("注册成功"); return R.ok("注册成功").data(1);
} }
@RequestMapping(value = "/login", method = RequestMethod.POST) @RequestMapping(value = "/login", method = RequestMethod.POST)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!