bug
This commit is contained in:
@@ -152,6 +152,23 @@ public class MyUserController {
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 审核用户是否有某书的权限
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/checkUserBook")
|
||||
public R checkUserBook(@RequestBody Map<String,Object> param){
|
||||
Integer userId = Integer.valueOf(param.get("userId").toString());
|
||||
Integer bookId = Integer.valueOf(param.get("bookId").toString());
|
||||
boolean b = userService.checkUserBook(userId, bookId);
|
||||
if (b){
|
||||
return R.ok();
|
||||
}else {
|
||||
return R.error("鉴权失败");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除
|
||||
|
||||
Reference in New Issue
Block a user