|
@@ -75,7 +75,7 @@ public class WxController {
|
|
|
return userService.getUserWxInfo(code, configEnum);
|
|
return userService.getUserWxInfo(code, configEnum);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Auth(value = AuthType.OPEN)
|
|
|
|
|
|
|
+ @Auth(value = AuthType.COOKIES)
|
|
|
@RequestMapping(value = "/user/bind", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/user/bind", method = RequestMethod.POST)
|
|
|
public Object bind(@RequestBody BindRequest bindRequest){
|
|
public Object bind(@RequestBody BindRequest bindRequest){
|
|
|
if(null == bindRequest
|
|
if(null == bindRequest
|
|
@@ -87,7 +87,7 @@ public class WxController {
|
|
|
return userService.bind(bindRequest);
|
|
return userService.bind(bindRequest);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Auth(value = AuthType.OPEN)
|
|
|
|
|
|
|
+ @Auth(value = AuthType.COOKIES)
|
|
|
@RequestMapping(value = "/user/unbind", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/user/unbind", method = RequestMethod.POST)
|
|
|
public Object unbind(@RequestBody BindRequest bindRequest){
|
|
public Object unbind(@RequestBody BindRequest bindRequest){
|
|
|
if(null == bindRequest
|
|
if(null == bindRequest
|
|
@@ -97,7 +97,7 @@ public class WxController {
|
|
|
return userService.unBind(bindRequest);
|
|
return userService.unBind(bindRequest);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Auth(value = AuthType.OPEN)
|
|
|
|
|
|
|
+ @Auth(value = AuthType.COOKIES)
|
|
|
@RequestMapping(value = "/user/reports", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/user/reports", method = RequestMethod.GET)
|
|
|
public Object reportList(@RequestParam String openId,
|
|
public Object reportList(@RequestParam String openId,
|
|
|
@RequestParam(required = false, defaultValue = "1") Integer pageIndex,
|
|
@RequestParam(required = false, defaultValue = "1") Integer pageIndex,
|
|
@@ -105,7 +105,7 @@ public class WxController {
|
|
|
return userService.reportList(openId, pageIndex, pageSize);
|
|
return userService.reportList(openId, pageIndex, pageSize);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Auth(value = AuthType.OPEN)
|
|
|
|
|
|
|
+ @Auth(value = AuthType.COOKIES)
|
|
|
@RequestMapping(value = "/user/report/{id}", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/user/report/{id}", method = RequestMethod.GET)
|
|
|
public Object getReportDetail(@PathVariable Integer id){
|
|
public Object getReportDetail(@PathVariable Integer id){
|
|
|
return userService.getReportDetail(id);
|
|
return userService.getReportDetail(id);
|