refactor(codegen): 更新Swagger注解版本
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.fateverse</groupId>
|
||||
<artifactId>common-mybatis</artifactId>
|
||||
<artifactId>common-mybatis-puls</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.fateverse</groupId>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package cn.fateverse.admin.entity.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import cn.fateverse.common.decrypt.annotation.EncryptField;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -19,7 +19,7 @@ public class MappingSwitchDto {
|
||||
* key作为唯一编号
|
||||
*/
|
||||
@NotBlank(message = "唯一编号不能为空")
|
||||
@ApiModelProperty("唯一编号不能为空")
|
||||
@Schema(description = "唯一编号不能为空")
|
||||
@EncryptField
|
||||
private String key;
|
||||
|
||||
@@ -27,7 +27,7 @@ public class MappingSwitchDto {
|
||||
* 当前方法的状态,true为正常放行,false为关闭
|
||||
*/
|
||||
@NotNull(message = "状态不能为空")
|
||||
@ApiModelProperty("当前方法的状态,true为正常放行,false为关闭")
|
||||
@Schema(description = "当前方法的状态,true为正常放行,false为关闭")
|
||||
private Boolean state;
|
||||
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package cn.fateverse.admin.entity.vo;
|
||||
import cn.fateverse.common.decrypt.annotation.EncryptField;
|
||||
import cn.fateverse.common.security.entity.MappingSwitchInfo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -24,66 +24,66 @@ public class MappingSwitchVo {
|
||||
* key作为唯一编号
|
||||
*/
|
||||
@EncryptField
|
||||
@ApiModelProperty("key作为唯一编号")
|
||||
@Schema(description = "key作为唯一编号")
|
||||
private String key;
|
||||
|
||||
/**
|
||||
* 应用名称
|
||||
*/
|
||||
@ApiModelProperty("应用名称")
|
||||
@Schema(description = "应用名称")
|
||||
private String applicationName;
|
||||
|
||||
/**
|
||||
* 类名
|
||||
*/
|
||||
@ApiModelProperty("类名")
|
||||
@Schema(description = "类名")
|
||||
private String className;
|
||||
|
||||
/**
|
||||
* 方法名称
|
||||
*/
|
||||
@ApiModelProperty("方法名称")
|
||||
@Schema(description = "方法名称")
|
||||
private String methodName;
|
||||
|
||||
/**
|
||||
* 描述MappingSwitch注解的value可以为空
|
||||
*/
|
||||
@ApiModelProperty("描述MappingSwitch注解的value可以为空")
|
||||
@Schema(description = "描述MappingSwitch注解的value可以为空")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* HandlerMethod中的uri
|
||||
*/
|
||||
@ApiModelProperty("HandlerMethod中的uri")
|
||||
@Schema(description = "HandlerMethod中的uri")
|
||||
private Set<String> uris;
|
||||
|
||||
/**
|
||||
* 当前开关类型
|
||||
*/
|
||||
@ApiModelProperty("当前开关类型")
|
||||
@Schema(description = "当前开关类型")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 当前方法请求类型
|
||||
*/
|
||||
@ApiModelProperty("当前方法请求类型")
|
||||
@Schema(description = "当前方法请求类型")
|
||||
private Set<String> httpMethods;
|
||||
|
||||
/**
|
||||
* 当前方法的状态,true为正常放行,false为关闭
|
||||
*/
|
||||
@ApiModelProperty("当前方法的状态,true为正常放行,false为关闭")
|
||||
@Schema(description = "当前方法的状态,true为正常放行,false为关闭")
|
||||
private Boolean state;
|
||||
|
||||
/**
|
||||
* 操作时间
|
||||
*/
|
||||
@ApiModelProperty("变更时间")
|
||||
@Schema(description = "变更时间")
|
||||
private Date operTime;
|
||||
/**
|
||||
* 操作人员
|
||||
*/
|
||||
@ApiModelProperty("操作人员")
|
||||
@Schema(description = "操作人员")
|
||||
private String operName;
|
||||
|
||||
public static MappingSwitchVo toMappingSwitchVo(MappingSwitchInfo mappingSwitchInfo) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import cn.fateverse.admin.service.DictCacheService;
|
||||
import cn.fateverse.admin.service.DictDataService;
|
||||
import cn.fateverse.common.core.entity.Option;
|
||||
import cn.fateverse.common.core.result.page.TableDataInfo;
|
||||
import cn.fateverse.common.mybatisplus.utils.PageUtils;
|
||||
import cn.fateverse.common.mybatis.utils.PageUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.redisson.api.RLock;
|
||||
import org.redisson.api.RedissonClient;
|
||||
|
||||
Reference in New Issue
Block a user