mirror of
https://github.com/sphildreth/roadie
synced 2024-11-10 06:44:12 +00:00
29 lines
No EOL
1 KiB
C#
29 lines
No EOL
1 KiB
C#
using Microsoft.AspNetCore.Http;
|
|
using Roadie.Library;
|
|
using Roadie.Library.Identity;
|
|
using Roadie.Library.Models;
|
|
using Roadie.Library.Models.Pagination;
|
|
using Roadie.Library.Models.Users;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Roadie.Api.Services
|
|
{
|
|
public interface ILabelService
|
|
{
|
|
Task<OperationResult<Label>> ById(User roadieUser, Guid id, IEnumerable<string> includes = null);
|
|
|
|
Task<OperationResult<bool>> Delete(ApplicationUser user, Guid id);
|
|
|
|
Task<PagedResult<LabelList>> List(User roadieUser, PagedRequest request, bool? doRandomize = false);
|
|
|
|
Task<OperationResult<bool>> MergeLabelsIntoLabel(ApplicationUser user, Guid intoLabelId, IEnumerable<Guid> labelIdsToMerge);
|
|
|
|
Task<OperationResult<Image>> SetLabelImageByUrl(User user, Guid id, string imageUrl);
|
|
|
|
Task<OperationResult<bool>> UpdateLabel(User user, Label label);
|
|
|
|
Task<OperationResult<Image>> UploadLabelImage(User user, Guid id, IFormFile file);
|
|
}
|
|
} |