优化数据返回

This commit is contained in:
不做码农
2022-01-11 10:49:38 +08:00
parent 617b34c884
commit b1bd8f12bb
5 changed files with 21 additions and 18 deletions

View File

@@ -140,7 +140,7 @@ namespace ZR.Admin.WebApi.Controllers
FileType = formFile.ContentType
};
long fileId = SysFileService.InsertFile(file);
return ToResponse(ResultCode.SUCCESS, new
return SUCCESS(new
{
url = uploadType == 1 ? finalFilePath : accessPath,
fileName,
@@ -188,7 +188,7 @@ namespace ZR.Admin.WebApi.Controllers
Create_time = DateTime.Now,
FileType = formFile.ContentType
});
return ToResponse(ResultCode.SUCCESS, new
return SUCCESS(new
{
url = result.Item2,
fileName = result.Item3,