Browse Source

试题篮提示信息

tags/正式3.2.0
王宁 2 years ago
parent
commit
1d9b9742f0

+ 2
- 2
sstudy/src/main/java/com/xhkjedu/sstudy/controller/question/UserBasketController.java View File

30
         N_Utils.validation(new Object[]{tUserBasket.getUserid(),"用户id",1,tUserBasket.getQuestionid(),"试题id",2
30
         N_Utils.validation(new Object[]{tUserBasket.getUserid(),"用户id",1,tUserBasket.getQuestionid(),"试题id",2
31
                 ,tUserBasket.getSubjectid(),"科目id",2});
31
                 ,tUserBasket.getSubjectid(),"科目id",2});
32
         Integer id = userBasketService.save(tUserBasket);
32
         Integer id = userBasketService.save(tUserBasket);
33
-        return new ResultVo(0, "保存成功",id);
33
+        return new ResultVo(0, "添加成功",id);
34
     }
34
     }
35
 
35
 
36
     @PostMapping("/delete_id")
36
     @PostMapping("/delete_id")
39
         String questionid = tUserBasket.getQuestionid();
39
         String questionid = tUserBasket.getQuestionid();
40
         N_Utils.validation(new Object[]{userid,"用户id",1,questionid,"试题id",2});
40
         N_Utils.validation(new Object[]{userid,"用户id",1,questionid,"试题id",2});
41
         userBasketService.deleteById(userid,questionid);
41
         userBasketService.deleteById(userid,questionid);
42
-        return new ResultVo(0,"删除成功");
42
+        return new ResultVo(0,"移出成功");
43
     }
43
     }
44
 
44
 
45
     @PostMapping("/delete_subjectid")
45
     @PostMapping("/delete_subjectid")

Loading…
Cancel
Save