|
@@ -632,21 +632,27 @@ namespace DocTools
|
|
|
//}
|
|
|
if (childTypeStr.Contains("Enum"))
|
|
|
{
|
|
|
- var key = "WingInterfaceLibrary.Enum." + childTypeStr;
|
|
|
+ //var key = "WingInterfaceLibrary.Enum." + childTypeStr;
|
|
|
+ var key = childTypeStr;
|
|
|
if (PublicEnumDic.Keys.Contains(key))
|
|
|
{
|
|
|
childObject.field_type_value = 1;
|
|
|
childObject.field_type_target_id = PublicEnumDic[key];
|
|
|
}
|
|
|
+ var arr = childTypeStr.Split('.');
|
|
|
+ childObject.field_type = arr[arr.Length - 1];
|
|
|
}
|
|
|
if (childTypeStr == "Array" && generalTypeStr != "Object")
|
|
|
{
|
|
|
childObject.value = "[" + responseItem.DefaultValue + "]";
|
|
|
}
|
|
|
childObject.key = typeStr + "." + responseItem.Name;
|
|
|
- if (typeStr != "result")
|
|
|
+ if (typeStr == "params")
|
|
|
{
|
|
|
childObject.key = typeStr + "[0]." + responseItem.Name;
|
|
|
+ }
|
|
|
+ if (typeStr != "result")
|
|
|
+ {
|
|
|
childObject.not_null = responseItem.IsNotNull;
|
|
|
}
|
|
|
resultList.Add(childObject);
|
|
@@ -690,12 +696,15 @@ namespace DocTools
|
|
|
//}
|
|
|
if (childTypeStr.Contains("Enum"))
|
|
|
{
|
|
|
- var key = "WingInterfaceLibrary.Enum." + childTypeStr;
|
|
|
+ //var key = "WingInterfaceLibrary.Enum." + childTypeStr;
|
|
|
+ var key = childTypeStr;
|
|
|
if (PublicEnumDic.Keys.Contains(key))
|
|
|
{
|
|
|
childObject.field_type_value = 1;
|
|
|
childObject.field_type_target_id = PublicEnumDic[key];
|
|
|
}
|
|
|
+ var arr = childTypeStr.Split('.');
|
|
|
+ childObject.field_type = arr[arr.Length - 1];
|
|
|
}
|
|
|
if (childTypeStr == "Array" && generalTypeStr != "Object")
|
|
|
{
|