roadie/Roadie.Api.Services/ILabelService.cs

27 lines
1.1 KiB
C#
Raw Normal View History

2019-02-03 17:50:17 +00:00
using Microsoft.AspNetCore.Http;
using Roadie.Library;
2018-12-09 20:31:02 +00:00
using Roadie.Library.Models;
using Roadie.Library.Models.Pagination;
2018-12-09 20:31:02 +00:00
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Roadie.Api.Services
{
public interface ILabelService
{
Task<OperationResult<Label>> ByIdAsync(Library.Models.Users.User roadieUser, Guid id, IEnumerable<string> includes = null);
2019-01-08 22:40:26 +00:00
Task<OperationResult<bool>> DeleteAsync(Library.Identity.User user, Guid id);
Task<PagedResult<LabelList>> ListAsync(Library.Models.Users.User roadieUser, PagedRequest request, bool? doRandomize = false);
Task<OperationResult<bool>> MergeLabelsIntoLabelAsync(Library.Identity.User user, Guid intoLabelId, IEnumerable<Guid> labelIdsToMerge);
Task<OperationResult<Image>> SetLabelImageByUrlAsync(Library.Models.Users.User user, Guid id, string imageUrl);
2019-02-03 17:50:17 +00:00
Task<OperationResult<bool>> UpdateLabelAsync(Library.Models.Users.User user, Label label);
2019-02-03 17:50:17 +00:00
Task<OperationResult<Image>> UploadLabelImageAsync(Library.Models.Users.User user, Guid id, IFormFile file);
}
2018-11-16 03:37:00 +00:00
}