代码修改
This commit is contained in:
@@ -34,7 +34,6 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -48,7 +47,6 @@ import java.util.Set;
|
|||||||
public class DictController {
|
public class DictController {
|
||||||
|
|
||||||
private final DictService dictService;
|
private final DictService dictService;
|
||||||
private static final String ENTITY_NAME = "dict";
|
|
||||||
|
|
||||||
@ApiOperation("导出字典数据")
|
@ApiOperation("导出字典数据")
|
||||||
@GetMapping(value = "/download")
|
@GetMapping(value = "/download")
|
||||||
@@ -76,9 +74,6 @@ public class DictController {
|
|||||||
@PostMapping
|
@PostMapping
|
||||||
// @SaCheckPermission("dict:add")
|
// @SaCheckPermission("dict:add")
|
||||||
public ResponseEntity<Object> create(@RequestBody DictDto resources){
|
public ResponseEntity<Object> create(@RequestBody DictDto resources){
|
||||||
if (resources.getDict_id() != null) {
|
|
||||||
throw new BadRequestException("A new "+ ENTITY_NAME +" cannot already have an ID");
|
|
||||||
}
|
|
||||||
dictService.create(resources);
|
dictService.create(resources);
|
||||||
return new ResponseEntity<>(HttpStatus.CREATED);
|
return new ResponseEntity<>(HttpStatus.CREATED);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ import java.util.Map;
|
|||||||
@RequestMapping("/api/dictDetail")
|
@RequestMapping("/api/dictDetail")
|
||||||
public class DictDetailController {
|
public class DictDetailController {
|
||||||
private final DictDetailService dictDetailService;
|
private final DictDetailService dictDetailService;
|
||||||
private static final String ENTITY_NAME = "dictDetail";
|
|
||||||
|
|
||||||
@ApiOperation("查询字典详情")
|
@ApiOperation("查询字典详情")
|
||||||
@GetMapping
|
@GetMapping
|
||||||
|
|||||||
Reference in New Issue
Block a user