Bladeren bron

refactor(business): 优化盲注结构相关接口和数据模型- 在 BlindStructuresController 中将 description 字段标记为非必填
- 在 BlindStructuresVo 中修改 ExcelProperty 注解以提升可读性
- 优化 BlindStructuresVo 中字段的中文注释

fugui001 4 maanden geleden
bovenliggende
commit
9637d84db9

+ 1 - 1
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/business/controller/BlindStructuresController.java

@@ -78,7 +78,7 @@ public class BlindStructuresController extends BaseController {
     @PostMapping(path = "", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
     public R<Boolean> add(
         @RequestPart("name") String name,
-        @RequestPart("description") String description,
+        @RequestPart(value = "description", required = false) String description,
         @RequestParam("file") MultipartFile file
     ) {
         // 构造 BO 对象

+ 3 - 2
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/business/domain/vo/BlindStructuresVo.java

@@ -33,13 +33,13 @@ public class BlindStructuresVo implements Serializable {
     /**
      * 盲注结构名称,如:Standard, Turbo
      */
-    @ExcelProperty(value = "盲注结构名称,如:Standard, Turbo")
+    @ExcelProperty(value = "名称")
     private String name;
 
     /**
      * 描述信息
      */
-    @ExcelProperty(value = "描述信息")
+    @ExcelProperty(value = "备注")
     private String description;
 
     /**
@@ -63,6 +63,7 @@ public class BlindStructuresVo implements Serializable {
 
     private Long updateUserId;
 
+
     private String createName;