Sfoglia il codice sorgente

!1483 update Admin.NET/Admin.NET.Web.Entry/wwwroot/template/Service.cs.vm.
Merge pull request !1483 from npc6/N/A

zuohuaijun 1 anno fa
parent
commit
287e2010a3

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

@@ -256,7 +256,7 @@ var definedObjects = new Dictionary<string, object>();
     @:[ApiDescriptionSettings(Name = "Upload@(column.PropertyName)"), HttpPost]
     @:public async Task<SysFile> Upload@(column.PropertyName)([Required] IFormFile file)
     @:{
-        @:return await _sysFileService.UploadFile(new FileUploadInput { File = file, Path = "upload/@(Model.ClassName)/@(column.PropertyName)" }); 
+        @:return await _sysFileService.UploadFile(new FileUploadInput { File = file, SavePath = "upload/@(Model.ClassName)/@(column.PropertyName)" }); 
     @:}
 }
 @if (importFields.Count() > 0) {