Commit 44d0693bfa92de08700a2c65198ab1d12317a414

Authored by litao@lymsh.com
1 parent cf383b650c

1

Showing 1 changed file with 5 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyEyeCheckController.java View file @ 44d0693
... ... @@ -30,6 +30,7 @@
30 30  
31 31 @ResponseBody
32 32 @RequestMapping(method = RequestMethod.POST)
  33 + @TokenRequired
33 34 public BaseResponse addOrUpdate(@RequestBody BabyEyeCheck babyEyeCheck, HttpServletRequest request) {
34 35 return babyEyeCheckService.addOrUpdate(getUserId(request), babyEyeCheck);
35 36 }
36 37  
37 38  
... ... @@ -47,18 +48,21 @@
47 48 * @return
48 49 */
49 50 @ResponseBody
  51 + @TokenRequired
50 52 @RequestMapping(value = "/info/{id}", method = RequestMethod.GET)
51 53 public BaseResponse info(@PathVariable String id) {
52 54 return babyEyeCheckService.info(id);
53 55 }
54 56  
55 57 @ResponseBody
  58 + @TokenRequired
56 59 @RequestMapping(value = "/{id}", method = RequestMethod.GET)
57 60 public BaseResponse edit(@PathVariable String id) {
58 61 return babyEyeCheckService.edit(id);
59 62 }
60 63  
61 64 @ResponseBody
  65 + @TokenRequired
62 66 @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
63 67 public BaseResponse delete(@PathVariable String id) {
64 68 return babyEyeCheckService.delete(id);
... ... @@ -79,6 +83,7 @@
79 83 * @return
80 84 */
81 85 @ResponseBody
  86 + @TokenRequired
82 87 @RequestMapping(method = RequestMethod.GET)
83 88 public BaseResponse list(Date startDate, Date endDate, String doctor, String key, String currentMonth, String chechMonth, boolean positive, Integer page, Integer limit, HttpServletRequest request) {
84 89 return babyEyeCheckService.list(getUserId(request), startDate, endDate, doctor, key, currentMonth, chechMonth, positive, page, limit);