|
|
|
@ -4,21 +4,22 @@ using System.Linq; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
|
using Volo.Abp.Application.Services; |
|
|
|
using Volo.Blogging.Posts; |
|
|
|
using Volo.Blogging.Tagging.Dtos; |
|
|
|
|
|
|
|
namespace Volo.Blogging.Tagging |
|
|
|
{ |
|
|
|
[Authorize(BloggingPermissions.Tags.Default)] |
|
|
|
/* TODO: Custom policy with configuration. |
|
|
|
* We should create a custom policy to see the blog as read only if the blog is |
|
|
|
* configured as 'public' or the current user has the related permission. |
|
|
|
*/ |
|
|
|
//[Authorize(BloggingPermissions.Tags.Default)]
|
|
|
|
public class TagAppService : ApplicationService, ITagAppService |
|
|
|
{ |
|
|
|
private readonly ITagRepository _tagRepository; |
|
|
|
private readonly IPostTagRepository _postTagRepository; |
|
|
|
|
|
|
|
public TagAppService(ITagRepository tagRepository, IPostTagRepository postTagRepository) |
|
|
|
public TagAppService(ITagRepository tagRepository) |
|
|
|
{ |
|
|
|
_tagRepository = tagRepository; |
|
|
|
_postTagRepository = postTagRepository; |
|
|
|
} |
|
|
|
|
|
|
|
public async Task<List<TagDto>> GetListAsync() |
|
|
|
|