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
|
|
|
|
|
{
|
2020-06-07 22:46:24 +00:00
|
|
|
|
Task<OperationResult<Genre>> ByIdAsync(Library.Models.Users.User roadieUser, Guid id, IEnumerable<string> includes = null);
|
2019-08-22 20:33:07 +00:00
|
|
|
|
|
2020-06-07 22:46:24 +00:00
|
|
|
|
Task<OperationResult<bool>> DeleteAsync(Library.Identity.User user, Guid id);
|
2019-08-22 20:33:07 +00:00
|
|
|
|
|
2020-06-07 22:46:24 +00:00
|
|
|
|
Task<PagedResult<GenreList>> ListAsync(Library.Models.Users.User roadieUser, PagedRequest request, bool? doRandomize = false);
|
2019-08-22 20:33:07 +00:00
|
|
|
|
|
2020-06-07 22:46:24 +00:00
|
|
|
|
Task<OperationResult<Image>> SetGenreImageByUrlAsync(Library.Models.Users.User user, Guid id, string imageUrl);
|
2019-08-02 20:59:24 +00:00
|
|
|
|
|
2020-06-07 22:46:24 +00:00
|
|
|
|
Task<OperationResult<bool>> UpdateGenreAsync(Library.Models.Users.User user, Genre model);
|
2019-11-17 14:10:17 +00:00
|
|
|
|
|
2020-06-07 22:46:24 +00:00
|
|
|
|
Task<OperationResult<Image>> UploadGenreImageAsync(Library.Models.Users.User user, Guid id, IFormFile file);
|
2018-11-15 04:25:40 +00:00
|
|
|
|
}
|
|
|
|
|
}
|