public override void PreInitialize() { // Pages Configuration.Authorization.Providers.Add <AbpLearningAuthorizationProvider>(); // 云书单权限 Configuration.Authorization.Providers.Add <CloudBookListAuthorizationProvider>(); // File Configuration.Authorization.Providers.Add <FileAuthorizationProvider>(); // 自定义类型映射 Configuration.Modules.AbpAutoMapper().Configurators.Add(configuration => { BookMapper.CreateMappings(configuration); BookListMapper.CreateMappings(configuration); RoleMapper.CreateMappings(configuration); PermissionMapper.CreateMappings(configuration); UserMapper.CreateMappings(configuration); OrganizationMapper.CreateMappings(configuration); }); }
public override void PreInitialize() { Configuration.Authorization.Providers.Add <BookListAuthorizationProvider>(); #region 云书单权限 // 书籍标签权限 Configuration.Authorization.Providers.Add <BookTagAuthorizationProvider>(); // 书籍权限 Configuration.Authorization.Providers.Add <BookAuthorizationProvider>(); // 书单权限 Configuration.Authorization.Providers.Add <CloudBookLists.BookLists.Authorization.BookListAuthorizationProvider>(); #endregion // 自定义类型映射 Configuration.Modules.AbpAutoMapper().Configurators.Add(configuration => { #region 云书单Mapper // 书籍标签 BookTagMapper.CreateMappings(configuration); // 书籍 BookMapper.CreateMappings(configuration); // 书单 BookListMapper.CreateMappings(configuration); #endregion }); }