roadie/Roadie.Api.Services/IGenreService.cs

25 lines
980 B
C#
Raw Normal View History

2019-08-02 20:59:24 +00:00
using Microsoft.AspNetCore.Http;
using Roadie.Library;
using Roadie.Library.Models;
2018-11-15 04:25:40 +00:00
using Roadie.Library.Models.Pagination;
2019-08-02 20:59:24 +00:00
using System;
using System.Collections.Generic;
2018-11-16 03:37:00 +00:00
using System.Threading.Tasks;
2018-11-15 04:25:40 +00:00
namespace Roadie.Api.Services
{
public interface IGenreService
{
Task<OperationResult<Genre>> ByIdAsync(Library.Models.Users.User roadieUser, Guid id, IEnumerable<string> includes = null);
Task<OperationResult<bool>> DeleteAsync(Library.Identity.User user, Guid id);
Task<PagedResult<GenreList>> ListAsync(Library.Models.Users.User roadieUser, PagedRequest request, bool? doRandomize = false);
Task<OperationResult<Image>> SetGenreImageByUrlAsync(Library.Models.Users.User user, Guid id, string imageUrl);
2019-08-02 20:59:24 +00:00
Task<OperationResult<bool>> UpdateGenreAsync(Library.Models.Users.User user, Genre model);
2019-11-17 14:10:17 +00:00
Task<OperationResult<Image>> UploadGenreImageAsync(Library.Models.Users.User user, Guid id, IFormFile file);
2018-11-15 04:25:40 +00:00
}
}