瀏覽代碼

修复模板中的类名错误

samisgod 1 年之前
父節點
當前提交
535a16d279
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Admin.NET/Admin.NET.Web.Entry/wwwroot/template/Service.cs.vm

+ 1 - 1
Admin.NET/Admin.NET.Web.Entry/wwwroot/template/Service.cs.vm

@@ -197,7 +197,7 @@ public class @(Model.ClassName)Service : IDynamicApiController, ITransient
     @:[ApiDescriptionSettings(Name = "Upload@(column.PropertyName)"), HttpPost]
     @:[ApiDescriptionSettings(Name = "Upload@(column.PropertyName)"), HttpPost]
     @:public async Task<SysFile> Upload@(column.PropertyName)([Required] IFormFile file)
     @:public async Task<SysFile> Upload@(column.PropertyName)([Required] IFormFile file)
     @:{
     @:{
-        @:return await _sysFileService.UploadFile(new FileUploadInput { File = file, SavePath = "upload/@(Model.ClassName)/@(column.PropertyName)" }); 
+        @:return await _sysFileService.UploadFile(new UploadFileInput { File = file, SavePath = "upload/@(Model.ClassName)/@(column.PropertyName)" }); 
     @:}
     @:}
     }
     }
     @if (Model.DropdownFieldList.Count > 0) {
     @if (Model.DropdownFieldList.Count > 0) {