♻️ Refactoring code. 使用openapi3 替代swagger2

This commit is contained in:
lbw committed 2023-01-02 10:17:44 +08:00
1 parent 032c1b54d3
commit eb3387da9f
165 files changed
+1188 -1635

No files matched your search

@@ -41,7 +41,7 @@ import java.time.LocalDateTime;
@Data
@TableName("${tableName}")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "${comments}")
@Schema(description = "${comments}")
public class ${className} extends Model<${className}> {
private static final long serialVersionUID = 1L;
@@ -53,7 +53,7 @@ public class ${className} extends Model<${className}> {
#if($column.columnName == $pk.columnName)
@TableId(type = IdType.ASSIGN_ID)
#end
@ApiModelProperty(value="$column.comments"#if($column.hidden),hidden=$column.hidden#end)
@Schema(value="$column.comments"#if($column.hidden),hidden=$column.hidden#end)
private $column.attrType $column.lowerAttrName;
#end