Przeglądaj źródła

apiinfo模型增加参数apiParamFirstParamCustomFlag属性

lichunlei 4 miesięcy temu
rodzic
commit
8b44ac2f02
1 zmienionych plików z 15 dodań i 0 usunięć
  1. 15 0
      Model/Database/ApiInfo.cs

+ 15 - 0
Model/Database/ApiInfo.cs

@@ -234,6 +234,21 @@ namespace Model
                 }
             }
         }
+        [SugarColumn(IsIgnore = true)]
+        public bool apiParamFirstParamCustomFlag
+        {
+            get
+            {
+                if (apiParamCount > 0)
+                {
+                    return apiParam.FirstOrDefault(m => m.reqParam)?.customFlag ?? true;
+                }
+                else
+                {
+                    return true;
+                }
+            }
+        }
 
 
         /// <summary>