feat:完成文件上传功能
This commit is contained in:
@@ -57,10 +57,10 @@ namespace Yi.Framework.Rbac.Application.Services
|
|||||||
}
|
}
|
||||||
var path = file.FilePath;
|
var path = file.FilePath;
|
||||||
//如果为缩略图,需要修改路径
|
//如果为缩略图,需要修改路径
|
||||||
if (isThumbnail is true)
|
//if (isThumbnail is true)
|
||||||
{
|
//{
|
||||||
path = $"wwwroot/{FileTypeEnum.Thumbnail}/{file.Id}{Path.GetExtension(file.FileName)}";
|
// path = $"wwwroot/{FileTypeEnum.Thumbnail}/{file.Id}{Path.GetExtension(file.FileName)}";
|
||||||
}
|
//}
|
||||||
//路径为: 文件路径/文件id+文件扩展名
|
//路径为: 文件路径/文件id+文件扩展名
|
||||||
|
|
||||||
if (!File.Exists(path))
|
if (!File.Exists(path))
|
||||||
|
|||||||
@@ -5,10 +5,12 @@ using System.Text;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
using Volo.Abp.Auditing;
|
using Volo.Abp.Auditing;
|
||||||
|
using Volo.Abp.Data;
|
||||||
using Volo.Abp.Domain.Entities;
|
using Volo.Abp.Domain.Entities;
|
||||||
|
|
||||||
namespace Yi.Framework.Rbac.Domain.Entities
|
namespace Yi.Framework.Rbac.Domain.Entities
|
||||||
{
|
{
|
||||||
|
[SugarTable("File")]
|
||||||
public class FileAggregateRoot : AggregateRoot<Guid>, IAuditedObject
|
public class FileAggregateRoot : AggregateRoot<Guid>, IAuditedObject
|
||||||
{
|
{
|
||||||
public FileAggregateRoot()
|
public FileAggregateRoot()
|
||||||
@@ -44,5 +46,8 @@ namespace Yi.Framework.Rbac.Domain.Entities
|
|||||||
public Guid? LastModifierId { get; set; }
|
public Guid? LastModifierId { get; set; }
|
||||||
|
|
||||||
public DateTime? LastModificationTime { get; set; }
|
public DateTime? LastModificationTime { get; set; }
|
||||||
|
|
||||||
|
[SugarColumn(IsIgnore=true)]
|
||||||
|
public override ExtraPropertyDictionary ExtraProperties { get; protected set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
|||||||
# 接口前缀
|
# 接口前缀
|
||||||
VITE_APP_BASEAPI="/api-dev"
|
VITE_APP_BASEAPI="/api-dev"
|
||||||
VITE_APP_URL="http://123.207.63.87:19001/api/app"
|
#VITE_APP_URL="http://123.207.63.87:19001/api/app"
|
||||||
# VITE_APP_URL="http://localhost:19001/api/app"
|
VITE_APP_URL="http://localhost:19001/api/app"
|
||||||
VITE_APP_ENV_NAME = "dev"
|
VITE_APP_ENV_NAME = "dev"
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user