forked from ddrilling/AsbCloudServer
170693f445
FilesService move FileSharing functions to GoogleDriveService; FilesService.CreateFileMarkAsync() Move drillingProgram related logic into DrillingProgramService.CreateFileMarkAsync(); FilesService.MarkFileMarkAsDeletedAsync() Move drillingProgram related logic into DrillingProgramService.MarkFileMarkAsDeletedAsync(); IGoogleDriveService cleanup and rename to IFileShareService; GoogleDriveService check token before usage and resresh it id needeed; DrillingProgramController move logic to service; DrillingProgramController use dto; FileController remove unused method;
15 lines
587 B
C#
15 lines
587 B
C#
using AsbCloudApp.Data;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Services
|
|
{
|
|
public interface IDrillingProgramService
|
|
{
|
|
Task<int> CreateFileMarkAsync(FileMarkDto fileMarkDto, int idUser, CancellationToken token);
|
|
Task<FileInfoDto> GetOrCreateAsync(int idWell, int fileChangerId,
|
|
CancellationToken token = default);
|
|
Task<string> GetOrCreateSharedUrlAsync(int idWell, int idUser, CancellationToken token = default);
|
|
Task<int> MarkFileMarkAsDeletedAsync(int idMark, CancellationToken token);
|
|
}
|
|
} |