增加上传华为云obs接口

This commit is contained in:
范露尧
2023-01-19 15:49:02 +08:00
parent 57129b3861
commit 21dd025ab8
10 changed files with 602 additions and 1 deletions

View File

@@ -0,0 +1,49 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Vote.Services.Dto
{
public class ObsInput
{
}
/// <summary>
///
/// </summary>
public class GetObjectInput
{
/// <summary>
/// 大小写敏感!
/// </summary>
public string objectName { get; set; }
}
/// <summary>
///
/// </summary>
public class PutObjectInput
{
/// <summary>
/// 本地文件全路径
/// </summary>
public string path { get; set; }
/// <summary>
/// 希望上传到的目录和文件名 , 如果为空则上传到根目录 ,大小写敏感! ,斜杠必须使用/ , eg: files/COC/202011/11/2020KDFJ0075.pdf
/// </summary>
public string objectName { get; set; }
}
public class ObsApiOutput
{
public ObsApiOutput(bool _bizIsSuccess, string _message, object _data = null)
{
this.bizIsSuccess = _bizIsSuccess;
this.message = _message;
this.data = _data;
}
public bool bizIsSuccess { get; set; }
public string message { get; set; }
public object data { get; set; }
}
}