| | |
| | | @ApiImplicitParam(name = "id", value = "字典ID", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteStyles") |
| | | public ResponseMsg<Integer> deleteStyles( List<Integer> ids) { |
| | | public ResponseMsg<Integer> deleteStyles(@RequestParam List<Integer> ids) { |
| | | try { |
| | | if (ids == null || ids.isEmpty()) { |
| | | return fail("id数组不能为空", -1); |
| | |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateStyle", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> updateStyle(StyleEntity styleEntity) { |
| | | public ResponseMsg<Integer> updateStyle(@RequestBody StyleEntity styleEntity) { |
| | | try { |
| | | int count = styleService.updateStyle(styleEntity); |
| | | |