|
@@ -8,6 +8,7 @@ import com.fjhx.file.entity.SingVo;
|
|
|
import com.fjhx.file.service.FileInfoService;
|
|
|
import com.ruoyi.common.constant.DatasourceConstant;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+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;
|
|
@@ -35,7 +36,7 @@ public class FileInfoController {
|
|
|
* 获取前端直传签名
|
|
|
*/
|
|
|
@PostMapping("/getSing")
|
|
|
- public SingVo getSing(@RequestBody SingDto dto) {
|
|
|
+ public SingVo getSing(@Validated @RequestBody SingDto dto) {
|
|
|
return fileInfoService.getSing(dto);
|
|
|
}
|
|
|
|
|
@@ -43,7 +44,7 @@ public class FileInfoController {
|
|
|
* 文件表列表
|
|
|
*/
|
|
|
@PostMapping("/getList")
|
|
|
- public List<FileInfoVo> getList(@RequestBody FileInfoSelectDto dto) {
|
|
|
+ public List<FileInfoVo> getList(@Validated @RequestBody FileInfoSelectDto dto) {
|
|
|
return fileInfoService.getList(dto);
|
|
|
}
|
|
|
|