26 lines
751 B
C#
26 lines
751 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FileService.Application.UploadFileTask
|
|
{
|
|
public record UploadTaskInitCommand(
|
|
Guid UploaderId,
|
|
Guid ConversationId, string? ChatType, Guid? TargetId, string FileName,
|
|
long FileSize,string contentType,
|
|
string checkSum
|
|
)
|
|
{
|
|
public Domain.Entities.UploadTask ToUploadTask()
|
|
{
|
|
return new Domain.Entities.UploadTask(
|
|
UploaderId,
|
|
ConversationId, ChatType, TargetId, FileName, FileSize, contentType,
|
|
null,new Domain.ValueObjects.CheckSum("md5", checkSum)
|
|
);
|
|
}
|
|
}
|
|
}
|