32 lines
983 B
C#
32 lines
983 B
C#
using FileService.Domain;
|
|
using FileService.Domain.ValueObjects;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FileService.Application.UploadFile
|
|
{
|
|
public class FileResponse
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid OwnerId { get; set; }
|
|
public string FileName { get; set; }
|
|
public long FileSize { get; set; }
|
|
public string ContentType { get; set; }
|
|
public FileState State { get; set; }
|
|
public string CheckSum { get; set; }
|
|
public string? ChatType { get; set; }
|
|
public Guid? TargetId { get; set; }
|
|
public bool IsPublic { get; set; }
|
|
public DateTimeOffset Created { get; set; }
|
|
public DateTimeOffset Updated { get; set; }
|
|
|
|
/// <summary>
|
|
/// 公开直链;私有文件为 null,需走鉴权下载接口。
|
|
/// </summary>
|
|
public string? Url { get; set; }
|
|
}
|
|
}
|