ソースを参照

controller名称问题

lichunlei 4 ヶ月 前
コミット
091acd63c9
1 ファイル変更8 行追加0 行削除
  1. 8 0
      Model/Database/ApiInfo.cs

+ 8 - 0
Model/Database/ApiInfo.cs

@@ -98,6 +98,14 @@ namespace Model
         /// </summary>
         [SugarColumn(ColumnDescription = "控制器文件路径", Length = 50, ColumnName = "controller_file_path")]
         public string? controllerFilePath { get; set; }
+        [SugarColumn(IsIgnore = true)]
+        public string? controllerName
+        {
+            get
+            {
+                return PublicFunction.transferName(controllerFilePath, 1);
+            }
+        }
 
 
         /// <summary>