2019-08-02 20:59:24 +00:00
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
|
using Roadie.Library;
|
|
|
|
|
using Roadie.Library.Identity;
|
|
|
|
|
using Roadie.Library.Models;
|
2018-11-15 04:25:40 +00:00
|
|
|
|
using Roadie.Library.Models.Pagination;
|
|
|
|
|
using Roadie.Library.Models.Users;
|
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
|
|
|
|
|
{
|
2019-08-02 20:59:24 +00:00
|
|
|
|
Task<OperationResult<Genre>> ById(User roadieUser, Guid id, IEnumerable<string> includes = null);
|
2019-08-22 20:33:07 +00:00
|
|
|
|
|
2019-08-02 20:59:24 +00:00
|
|
|
|
Task<OperationResult<bool>> Delete(ApplicationUser user, Guid id);
|
2019-08-22 20:33:07 +00:00
|
|
|
|
|
2018-12-28 18:58:17 +00:00
|
|
|
|
Task<PagedResult<GenreList>> List(User roadieUser, PagedRequest request, bool? doRandomize = false);
|
2019-08-22 20:33:07 +00:00
|
|
|
|
|
2019-08-02 20:59:24 +00:00
|
|
|
|
Task<OperationResult<Image>> SetGenreImageByUrl(User user, Guid id, string imageUrl);
|
|
|
|
|
|
2019-08-22 20:33:07 +00:00
|
|
|
|
Task<OperationResult<Image>> UploadGenreImage(User user, Guid id, IFormFile file);
|
2018-11-15 04:25:40 +00:00
|
|
|
|
}
|
|
|
|
|
}
|