Abp Vnext 的 Vue3 实现版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1.8 KiB

数据字典模块

  • 与abp自带的文件模块不一样,此模块接入阿里云oss作为云存储。
  • 前端上传文件到OSS,文件模块保存相对路径。

安装

  • Lion.Abp.FileManagement.Application
  • Lion.Abp.FileManagement.Application.Contracts
  • Lion.Abp.FileManagement.Domain
  • Lion.Abp.FileManagement.Domain.Shared
  • Lion.Abp.FileManagement.EntityFrameworkCore
  • Lion.Abp.FileManagement.HttpApi
  • Lion.Abp.FileManagement.HttpApi.Client

模块依赖

  • 添加 DependsOn(typeof(FileManagementXxxModule)) 特性到对应模块。
  • 在EntityFrameworkCore层添加数据库配置在AbpProDbContext.cs的OnModelCreating()方法中添加builder.ConfigureFileManagement();

实体

File 表结构:

字段名 描述 类型
Id Id Guid
TenantId 租户id Guid?
FileName 文件名称 string
FilePath 文件路径 string
IsDeleted 是否删除 bool
DeleterId 删除人 Guid?
DeletionTime 删除时间 DateTime
LastModifierId 最后修改人 Guid?
LastModificationTime 最后修改时间 DateTime
CreatorId 创建人 Guid?
CreationTime 创建时间 DateTime

OSS配置

阿里云OSS配置

  • 将OSS配置添加到AppSetting

AppSetting配置

  "AliYun": {
    "OSS": {
      "AccessKeyId": "LTAI5tLkt3vvScGPVZ5qKJDc1S",
      "AccessKeySecret": "BixV8vP5uPrbsdwjYzzsEXOPjkxPST12S",
      "Endpoint": "oss-cn-shenzhen.aliyuncs.com",
      "ContainerName": "lion-abp-pro",
      "RegionId": "oss-cn-shenzhen",
      "RoleArn": "acs:ram::1846393972471789:role/ramosst1t"
    }
  }

上传组件