refactor: 优化接口文档枚举参数显示效果

This commit is contained in:
2024-07-24 22:25:55 +08:00
parent 00c33226c8
commit 770fda3882
49 changed files with 144 additions and 47 deletions

View File

@@ -88,4 +88,9 @@ public enum FormTypeEnum implements IBaseEnum<Integer> {
private final Integer value;
private final String description;
@Override
public String toString() {
return "%s: %s".formatted(this.value, this.description);
}
}

View File

@@ -103,4 +103,9 @@ public enum QueryTypeEnum implements IBaseEnum<Integer> {
private final Integer value;
private final String description;
@Override
public String toString() {
return "%s: %s".formatted(this.value, this.description);
}
}

View File

@@ -132,14 +132,13 @@ public class FieldConfigDO implements Serializable {
/**
* 表单类型
*/
@Schema(description = "表单类型", type = "Integer", allowableValues = {"1", "2", "3", "4", "5", "6"}, example = "1")
@Schema(description = "表单类型", example = "1")
private FormTypeEnum formType;
/**
* 查询方式
*/
@Schema(description = "查询方式", type = "Integer", allowableValues = {"1", "2", "3", "4", "5", "6", "7", "8", "9",
"10", "11", "12", "13", "14"}, example = "1")
@Schema(description = "查询方式", example = "1")
private QueryTypeEnum queryType;
/**