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

3 years ago
  1. using Shentun.Peis.Permissions;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using Volo.Abp.Application.Dtos;
  8. using Volo.Abp.Application.Services;
  9. using Volo.Abp.Domain.Repositories;
  10. using Volo.Abp.Identity;
  11. namespace Shentun.Peis.Books
  12. {
  13. public class BookAppService : CrudAppService<Book, BookDto, Guid, PagedAndSortedResultRequestDto, CreateBookDto>, IBookAppService
  14. {
  15. public BookAppService(IRepository<Book, Guid> repository) : base(repository)
  16. {
  17. GetPolicyName =PeisPermissions.Books.Default;
  18. GetListPolicyName = PeisPermissions.Books.Default;
  19. CreatePolicyName = PeisPermissions.Books.Create;
  20. UpdatePolicyName = PeisPermissions.Books.Edit;
  21. DeletePolicyName = PeisPermissions.Books.Delete;
  22. }
  23. }
  24. }