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.

81 lines
1.7 KiB

using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Core.Service;
/// <summary>
/// 上传文件参数
/// </summary>
public class FileInput : PageInputBase
{
/// <summary>
/// 文件存储位置1:阿里云2:腾讯云3:minio4:本地)
/// </summary>
public int FileLocation { get; set; }
/// <summary>
/// 文件仓库
/// </summary>
public string FileBucket { get; set; }
/// <summary>
/// 文件名称(上传时候的文件名)
/// </summary>
public string FileOriginName { get; set; }
/// <summary>
/// 文件后缀
/// </summary>
public string FileSuffix { get; set; }
/// <summary>
/// 文件大小kb
/// </summary>
public string FileSizeKb { get; set; }
/// <summary>
/// 文件大小信息,计算后的
/// </summary>
public string FileSizeInfo { get; set; }
/// <summary>
/// 存储到bucket的名称文件唯一标识id
/// </summary>
public string FileObjectName { get; set; }
/// <summary>
/// 存储路径
/// </summary>
public string FilePath { get; set; }
/// <summary>
/// 文件类型
/// </summary>
public int FileType { get; set; }
}
public class DeleteFileInfoInput
{
/// <summary>
/// 文件Id
/// </summary>
[Required(ErrorMessage = "文件Id不能为空")]
public long Id { get; set; }
}
public class QueryFileInoInput : DeleteFileInfoInput
{
}
public class BinDingFileInfoInput: DeleteFileInfoInput
{
/// <summary>
/// 视频列表
/// </summary>
public List<long> VideoIDs { get; set; }
}