Prechádzať zdrojové kódy

删除swagger相关注解

Devli 1 rok pred
rodič
commit
1b79dfe6b5

+ 1 - 2
report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/controller/GaeaFileController.java

@@ -8,7 +8,7 @@ import com.anjiplus.template.gaea.business.modules.file.controller.dto.GaeaFileD
 import com.anjiplus.template.gaea.business.modules.file.controller.param.GaeaFileParam;
 import com.anjiplus.template.gaea.business.modules.file.entity.GaeaFile;
 import com.anjiplus.template.gaea.business.modules.file.service.GaeaFileService;
-import io.swagger.annotations.Api;
+
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.ResponseEntity;
 import org.springframework.web.bind.annotation.*;
@@ -25,7 +25,6 @@ import javax.servlet.http.HttpServletResponse;
  */
 @RestController
 @RequestMapping("/file")
-@Api(value = "/file", tags = "")
 public class GaeaFileController extends BaseController<GaeaFileParam, GaeaFile, GaeaFileDTO> {
     @Autowired
     private GaeaFileService gaeaFileService;

+ 0 - 2
report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/controller/dto/GaeaFileDTO.java

@@ -1,8 +1,6 @@
 package com.anjiplus.template.gaea.business.modules.file.controller.dto;
 
 import com.anji.plus.gaea.curd.dto.GaeaBaseDTO;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
 /**

+ 5 - 6
report-core/src/main/java/com/anjiplus/template/gaea/business/modules/file/entity/GaeaFile.java

@@ -2,7 +2,6 @@ package com.anjiplus.template.gaea.business.modules.file.entity;
 
 import com.baomidou.mybatisplus.annotation.TableName;
 import com.anji.plus.gaea.curd.entity.GaeaBaseEntity;
-import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
 import java.io.Serializable;
@@ -17,18 +16,18 @@ import java.io.Serializable;
 @Data
 public class GaeaFile extends GaeaBaseEntity implements Serializable {
 
-    @ApiModelProperty(value = "文件标识")
+    /** 文件标识 */
     private String fileId;
 
-    @ApiModelProperty(value = "文件类型")
+    /** 文件类型 */
     private String fileType;
 
-    @ApiModelProperty(value = "文件路径")
+    /** 文件路径 */
     private String filePath;
 
-    @ApiModelProperty(value = "url路径")
+    /** url路径 */
     private String urlPath;
 
-    @ApiModelProperty(value = "内容说明")
+    /** 内容说明 */
     private String fileInstruction;
 }