新增加上传文件到阿里云

This commit is contained in:
不做码农
2021-11-29 13:46:55 +08:00
parent 7eadff782e
commit 3c9e0a7569
8 changed files with 176 additions and 13 deletions

View File

@@ -1,9 +1,24 @@
using Infrastructure.Attribute;
using ZR.Model.System;
using Microsoft.AspNetCore.Http;
namespace ZR.Service.System.IService
{
public interface ISysFileService
{
(bool, string) SaveFile(string picdir, IFormFile formFile);
/// <summary>
/// 按时间来创建文件夹
/// </summary>
/// <param name="path"></param>
/// <returns>eg: 2020/11/3</returns>
string GetdirPath(string path = "");
/// <summary>
/// 取文件名的MD5值(16位)
/// </summary>
/// <param name="name">文件名,不包括扩展名</param>
/// <returns></returns>
string HashFileName(string str = null);
}
}