From 4000c36a144eb5ce930e63e4e960440d04cfbfe3 Mon Sep 17 00:00:00 2001 From: Devli <5003188+lide1202@user.noreply.gitee.com> Date: Mon, 26 Aug 2024 09:21:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4swagger=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/dict/controller/GaeaDictController.java | 3 +-- .../dict/controller/GaeaDictItemController.java | 3 +-- .../modules/dict/controller/dto/GaeaDictDTO.java | 7 ------- .../modules/dict/controller/dto/GaeaDictItemDTO.java | 11 ----------- 4 files changed, 2 insertions(+), 22 deletions(-) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/GaeaDictController.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/GaeaDictController.java index f5641e26..10b39b26 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/GaeaDictController.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/GaeaDictController.java @@ -10,7 +10,7 @@ import com.anjiplus.template.gaea.business.modules.dict.controller.param.GaeaDic import com.anjiplus.template.gaea.business.modules.dict.dao.entity.GaeaDict; import com.anjiplus.template.gaea.business.modules.dict.service.GaeaDictItemService; import com.anjiplus.template.gaea.business.modules.dict.service.GaeaDictService; -import io.swagger.annotations.Api; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.i18n.LocaleContextHolder; import org.springframework.web.bind.annotation.*; @@ -25,7 +25,6 @@ import java.util.*; */ @RestController @RequestMapping("/gaeaDict") -@Api(value = "/gaeaDict", tags = "") public class GaeaDictController extends GaeaBaseController { @Autowired diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/GaeaDictItemController.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/GaeaDictItemController.java index 92a431d3..d5edc9ef 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/GaeaDictItemController.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/GaeaDictItemController.java @@ -6,7 +6,7 @@ import com.anjiplus.template.gaea.business.modules.dict.controller.dto.GaeaDictI import com.anjiplus.template.gaea.business.modules.dict.controller.param.GaeaDictItemParam; import com.anjiplus.template.gaea.business.modules.dict.service.GaeaDictItemService; import com.anji.plus.gaea.curd.service.GaeaBaseService; -import io.swagger.annotations.Api; + import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.beans.factory.annotation.Autowired; @@ -19,7 +19,6 @@ import org.springframework.beans.factory.annotation.Autowired; */ @RestController @RequestMapping("/gaeaDictItem") -@Api(value = "/gaeaDictItem", tags = "数据字典项") public class GaeaDictItemController extends GaeaBaseController { @Autowired private GaeaDictItemService gaeaDictItemService; diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/dto/GaeaDictDTO.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/dto/GaeaDictDTO.java index e4c5830f..c18a7cd5 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/dto/GaeaDictDTO.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/dto/GaeaDictDTO.java @@ -1,8 +1,6 @@ package com.anjiplus.template.gaea.business.modules.dict.controller.dto; import com.anji.plus.gaea.curd.dto.GaeaBaseDTO; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; @@ -13,24 +11,19 @@ import java.io.Serializable; * @author lr * @since 2021-02-23 10:01:02 */ -@ApiModel(value = "") @Data public class GaeaDictDTO extends GaeaBaseDTO implements Serializable { /** * 字典名称 */ - @ApiModelProperty(value = "字典名称") private String dictName; /** * 字典编号 */ - @ApiModelProperty(value = "字典编号") private String dictCode; /** * 字典描述 */ - @ApiModelProperty(value = "字典描述") private String remark; - } diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/dto/GaeaDictItemDTO.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/dto/GaeaDictItemDTO.java index ef4cabb0..53707639 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/dto/GaeaDictItemDTO.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dict/controller/dto/GaeaDictItemDTO.java @@ -1,10 +1,7 @@ package com.anjiplus.template.gaea.business.modules.dict.controller.dto; import com.anji.plus.gaea.curd.dto.GaeaBaseDTO; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import lombok.Data; - import java.io.Serializable; /** @@ -13,44 +10,36 @@ import java.io.Serializable; * @author lirui * @since 2021-03-10 13:05:59 */ -@ApiModel(value = "数据字典项") @Data public class GaeaDictItemDTO extends GaeaBaseDTO implements Serializable { /** * 数据字典编码 */ - @ApiModelProperty(value = "数据字典编码") private String dictCode; /** * 字典项名称 */ - @ApiModelProperty(value = "字典项名称") private String itemName; /** * 字典项值 */ - @ApiModelProperty(value = "字典项值") private String itemValue; /** * 字典项扩展 */ - @ApiModelProperty(value = "字典项扩展") private String itemExtend; /** * 语言标识 */ - @ApiModelProperty(value = "语言标识") private String locale; /** * 描述 */ - @ApiModelProperty(value = "描述") private String remark; /** * 排序 */ - @ApiModelProperty(value = "排序") private Integer sort; /**