|
@@ -10,6 +10,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -31,14 +32,14 @@ public class GenTableController extends ApiController {
|
|
|
@Operation(summary = "预览")
|
|
|
@Permission("gen:table:preview")
|
|
|
@PostMapping("/preview")
|
|
|
- public List<GenVO> preview(@Validated GenDTO dto) {
|
|
|
+ public List<GenVO> preview(@Validated @RequestBody GenDTO dto) {
|
|
|
return genTableService.preview(dto);
|
|
|
}
|
|
|
|
|
|
@Operation(summary = "下载")
|
|
|
@Permission("gen:table:download")
|
|
|
@PostMapping("/download")
|
|
|
- public void download(@Validated GenDTO dto) {
|
|
|
+ public void download(@Validated @RequestBody GenDTO dto) {
|
|
|
genTableService.download(response, dto);
|
|
|
}
|
|
|
|