You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
877 B

using Shentun.Peis.Permissions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.Identity;
namespace Shentun.Peis.Books
{
public class BookAppService : CrudAppService<Book, BookDto, Guid, PagedAndSortedResultRequestDto, CreateBookDto>, IBookAppService
{
public BookAppService(IRepository<Book, Guid> repository) : base(repository)
{
GetPolicyName =PeisPermissions.Books.Default;
GetListPolicyName = PeisPermissions.Books.Default;
CreatePolicyName = PeisPermissions.Books.Create;
UpdatePolicyName = PeisPermissions.Books.Edit;
DeletePolicyName = PeisPermissions.Books.Delete;
}
}
}