Commit 63e0e5c2042f7515129dc84adc1495243410fbc0
1 parent
1bed29433f
Exists in
master
and in
1 other branch
platform permission
fix bug
Showing 1 changed file with 5 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/ReferConfigController.java
View file @
63e0e5c
| ... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 | |
| 5 | 5 | import javax.validation.Valid; |
| 6 | 6 | |
| 7 | +import com.lyms.platform.common.annotation.TokenRequired; | |
| 7 | 8 | import com.lyms.platform.common.enums.YnEnums; |
| 8 | 9 | import com.lyms.platform.pojo.AssayConfig; |
| 9 | 10 | import org.springframework.beans.factory.annotation.Autowired; |
| ... | ... | @@ -37,6 +38,7 @@ |
| 37 | 38 | |
| 38 | 39 | |
| 39 | 40 | @ResponseBody |
| 41 | + @TokenRequired | |
| 40 | 42 | @RequestMapping(value = "/referConfig",method = RequestMethod.GET) |
| 41 | 43 | public BaseListResponse queryRefer( @Valid ReferConfigQuery referConfigQuery) { |
| 42 | 44 | referConfigQuery.setYn(YnEnums.YES.getId()); |
| ... | ... | @@ -48,6 +50,7 @@ |
| 48 | 50 | |
| 49 | 51 | @RequestMapping(value = "/referConfig",method = RequestMethod.POST) |
| 50 | 52 | @ResponseBody |
| 53 | + @TokenRequired | |
| 51 | 54 | public BaseResponse addRefer(@RequestBody @Valid ReferValue referValue) { |
| 52 | 55 | //添加前先设置项目代码, 标准代码 |
| 53 | 56 | |
| ... | ... | @@ -61,6 +64,7 @@ |
| 61 | 64 | |
| 62 | 65 | @RequestMapping(value = "/referConfig/{id}",method = RequestMethod.DELETE) |
| 63 | 66 | @ResponseBody |
| 67 | + @TokenRequired | |
| 64 | 68 | public BaseResponse delRefer(@PathVariable String id) { |
| 65 | 69 | ReferValue referValue = new ReferValue(); |
| 66 | 70 | referValue.setId(id); |
| ... | ... | @@ -72,6 +76,7 @@ |
| 72 | 76 | |
| 73 | 77 | @RequestMapping(value = "/referConfig/{id}",method = RequestMethod.PUT) |
| 74 | 78 | @ResponseBody |
| 79 | + @TokenRequired | |
| 75 | 80 | public BaseResponse updateRefer(@RequestBody @Valid ReferValue referValue, @PathVariable String id) { |
| 76 | 81 | //更新前先设置项目代码, 标准代码 |
| 77 | 82 | referValue.setId(id); |