Browse Source

增加对Decimal类型的支持

felix 1 year ago
parent
commit
5503d6c051
2 changed files with 2 additions and 2 deletions
  1. 2 2
      Helper/ModelTypeGenerator.cs
  2. BIN
      WingInterfaceLibrary.dll

+ 2 - 2
Helper/ModelTypeGenerator.cs

@@ -34,11 +34,11 @@ namespace FlutterCodeGenerator.Helper
                 {
                     return new IntNullableModelType(argName);
                 }
-                else if (type == typeof(float) || type == typeof(double))
+                else if (type == typeof(float) || type == typeof(double) || type == typeof(decimal))
                 {
                     return new DoubleModelType(argName);
                 }
-                else if (type == typeof(float?) || type == typeof(double?))
+                else if (type == typeof(float?) || type == typeof(double?) || type == typeof(decimal?))
                 {
                     return new DoubleNullableModelType(argName);
                 }

BIN
WingInterfaceLibrary.dll