Commit 7e45857a0e8e9a383b9d03913dd6b53330b2b9a2
1 parent
877a0bac8d
Exists in
master
and in
2 other branches
增加token设置
Showing 1 changed file with 5 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/HospitalCheckItemConfController.java
View file @
7e45857
1 | 1 | package com.lyms.platform.operate.web.controller; |
2 | 2 | |
3 | +import com.lyms.platform.common.annotation.TokenRequired; | |
3 | 4 | import com.lyms.platform.common.base.BaseController; |
4 | 5 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
5 | 6 | import com.lyms.platform.common.enums.YnEnums; |
... | ... | @@ -33,6 +34,7 @@ |
33 | 34 | |
34 | 35 | @RequestMapping(value = "/list", method = RequestMethod.GET) |
35 | 36 | @ResponseBody |
37 | + @TokenRequired | |
36 | 38 | public FrontEndResult queryHospitalCheckItemConfList(@RequestParam(value = "hospitalId") Integer hospitalId, |
37 | 39 | @RequestParam(value = "type") Integer type) { |
38 | 40 | FrontEndResult frontEndResult = new FrontEndResult(); |
... | ... | @@ -104,7 +106,7 @@ |
104 | 106 | } |
105 | 107 | |
106 | 108 | @RequestMapping(method = RequestMethod.POST, value = "/add") |
107 | - //@TokenRequired | |
109 | + @TokenRequired | |
108 | 110 | public void addHospitalCheckItemConf(@RequestBody HospitalCheckItemConf checkItemConf, HttpServletResponse response){ |
109 | 111 | |
110 | 112 | if(checkItemConf.getHospitalId()== null || |
... | ... | @@ -146,7 +148,7 @@ |
146 | 148 | } |
147 | 149 | |
148 | 150 | @RequestMapping(method = RequestMethod.POST, value = "/update") |
149 | - //@TokenRequired | |
151 | + @TokenRequired | |
150 | 152 | public void updateHospitalCheckItemConf(@RequestBody HospitalCheckItemConf checkItemConf, HttpServletResponse response){ |
151 | 153 | |
152 | 154 | if (null == checkItemConf.getId()) { |
... | ... | @@ -186,6 +188,7 @@ |
186 | 188 | } |
187 | 189 | |
188 | 190 | @RequestMapping(value = "/delete", method = RequestMethod.POST) |
191 | + @TokenRequired | |
189 | 192 | public void deleteHospitalCheckItemConf(HttpServletResponse response, @RequestParam("id") Integer id) { |
190 | 193 | if (null == id) { |
191 | 194 | ResultUtils.buildParameterErrorResultAndWrite(response, "请选择需要删除的数据"); |