Browse Source

controller名称问题

lichunlei 8 tháng trước cách đây
mục cha
commit
091acd63c9
1 tập tin đã thay đổi với 8 bổ sung và 0 xóa
  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>