소스 검색

controller名称问题

lichunlei 8 달 전
부모
커밋
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>