convert byte to int8
This commit is contained in:
parent
caf1c52e8a
commit
9d5a507ed1
|
@ -1,10 +1,11 @@
|
|||
## smart-doc版本
|
||||
版本小于1.0都属于试用,正式1.0起始发布将会等到文中提到的问题解决后才发布。
|
||||
#### 版本号:2.0.8
|
||||
- 更新日期: 2020-02-x
|
||||
- 更新日期: 2020-02-26
|
||||
- 更新内容:
|
||||
1. 修复文件上传的参数丢失的注释。
|
||||
2. 修复2.0.7新增忽略接口方法后解析父类字段缺失注释bug
|
||||
2. 修复2.0.7新增忽略接口方法后解析父类字段缺失注释bug。
|
||||
3. 修改byte类型的转换,将过去的string转为int8。
|
||||
#### 版本号:2.0.7
|
||||
- 更新日期: 2020-01-30
|
||||
- 更新内容:
|
||||
|
|
|
@ -178,8 +178,6 @@ public class DocClassUtil {
|
|||
case "java.lang.String":
|
||||
case "string":
|
||||
case "char":
|
||||
case "java.util.Byte":
|
||||
case "byte":
|
||||
case "date":
|
||||
case "localdatetime":
|
||||
case "localdate":
|
||||
|
@ -197,6 +195,9 @@ public class DocClassUtil {
|
|||
case "java.util.TreeSet":
|
||||
case "treeset":
|
||||
return "array";
|
||||
case "java.util.Byte":
|
||||
case "byte":
|
||||
return "int8";
|
||||
case "java.lang.Integer":
|
||||
case "integer":
|
||||
case "int":
|
||||
|
|
|
@ -478,6 +478,7 @@ public class DocUtil {
|
|||
case "short":
|
||||
case "BigDecimal":
|
||||
case "BigInteger":
|
||||
case "Byte":
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
@ -486,6 +487,7 @@ public class DocUtil {
|
|||
|
||||
public static String javaTypeToOpenApiTypeConvert(String type) {
|
||||
switch (type) {
|
||||
case "int8":
|
||||
case "int32":
|
||||
case "int16":
|
||||
case "int64":
|
||||
|
|
Loading…
Reference in New Issue