mirror of https://github.com/abpframework/abp.git
12 changed files with 113 additions and 17 deletions
@ -1,13 +1,17 @@ |
|||
using JetBrains.Annotations; |
|||
using System.Collections.Generic; |
|||
using JetBrains.Annotations; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Application.Services; |
|||
using Volo.CmsKit.Users; |
|||
|
|||
namespace Volo.CmsKit.Public.Blogs; |
|||
|
|||
public interface IBlogPostPublicAppService : IApplicationService |
|||
{ |
|||
Task<PagedResultDto<BlogPostPublicDto>> GetListAsync(BlogPostGetListInput input); |
|||
Task<PagedResultDto<BlogPostPublicDto>> GetListAsync(string blogSlug, BlogPostGetListInput input); |
|||
|
|||
Task<BlogPostPublicDto> GetAsync([NotNull] string blogSlug, [NotNull] string blogPostSlug); |
|||
|
|||
Task<List<CmsUserDto>> GetAuthorsHasBlogPosts(); |
|||
} |
|||
|
|||
@ -0,0 +1,18 @@ |
|||
$(function () { |
|||
var $selectAuthor = $('#AuthorSelect'); |
|||
var $authorNameSpan = $('.author-name-span'); |
|||
|
|||
$selectAuthor.on('change', function () { |
|||
var authorId = $selectAuthor.val(); |
|||
reloadPageWithQueryString({'authorId': authorId}); |
|||
}); |
|||
|
|||
$authorNameSpan.click(function () { |
|||
var authorId = $(this).data('author-id'); |
|||
reloadPageWithQueryString({'authorId': authorId}); |
|||
}); |
|||
|
|||
function reloadPageWithQueryString(param) { |
|||
window.location.href = window.location.pathname + "?" + $.param(param); |
|||
} |
|||
}); |
|||
Loading…
Reference in new issue