Esempio n. 1
0
        public override void PreInitialize()
        {
            //Adding authorization providers
            Configuration.Authorization.Providers.Add <AppAuthorizationProvider>();
            //Adding custom AutoMapper configuration
            Configuration.Modules.AbpAutoMapper().Configurators.Add(CustomDtoMapper.CreateMappings);



            Configuration.Authorization.Providers.Add <EnrollRecruitAppAuthorizationProvider>();
            Configuration.Authorization.Providers.Add <StudentManageAppAuthorizationProvider>();
            Configuration.Authorization.Providers.Add <StudentPayAppAuthorizationProvider>();



            Configuration.Authorization.Providers.Add <ProductAuthorizationProvider>();


            Configuration.Modules.AbpAutoMapper().Configurators.Add(configuration =>
            {
                CustomDtoMapper.CreateMappings(configuration);

                Customercharge_studentsdataMapper.CreateMappings(configuration);
                Customerdrop_out_studentsdataMapper.CreateMappings(configuration);
                Customerentry_recruit_studentsdataMapper.CreateMappings(configuration);
                Customergraduate_studentsdataMapper.CreateMappings(configuration);
                Customernograduate_studentsdataMapper.CreateMappings(configuration);
                Customerzhx_student_inreadingMapper.CreateMappings(configuration);


                ProductMapper.CreateMappings(configuration);
            });
        }
        public override void PreInitialize()
        {
            Configuration.Authorization.Providers.Add <HasinAuthorizationProvider>();

            Configuration.Modules.AbpAutoMapper().Configurators.Add(config =>
            {
                CategoryMapper.CreateMappings(config);
                ProductMapper.CreateMappings(config);
            });
        }
Esempio n. 3
0
        public override void PreInitialize()
        {
            // 权限认证提供者
            Configuration.Authorization.Providers.Add <AppProAuthorizationProvider>();

            // ================== Wechat模块权限 =====================
            Configuration.Authorization.Providers.Add <WechatAppConfigAuthorizationProvider>();

            //博客模块,后面统一到一个类中
            Configuration.Authorization.Providers.Add <BloggingAuthorizationProvider>();

            Configuration.Authorization.Providers.Add <SysFileAuthorizationProvider>();
            Configuration.Authorization.Providers.Add <WebSiteSettingAuthorizationProvider>();

            //市场模块

            Configuration.Authorization.Providers.Add <ProductAuthorizationProvider>();
            Configuration.Authorization.Providers.Add <OrderAuthorizationProvider>();
            Configuration.Authorization.Providers.Add <MarketingAuthorizationProvider>();
            Configuration.Authorization.Providers.Add <ProductSecretKeyAuthorizationProvider>();
            //网易腾讯订单
            Configuration.Authorization.Providers.Add <OtherCourseAuthorizationProvider>();
            //慕课模块
            Configuration.Authorization.Providers.Add <MoocAuthorizationProvider>();

            //文档模块
            Configuration.Authorization.Providers.Add <ProjectAuthorizationProvider>();

            // 自定义类型映射
            Configuration.Modules.AbpAutoMapper().Configurators.Add(configuration =>
            {
                // 系统通用的Dto映射
                CustomerAppDtoMapper.CreateMappings(configuration);
                //在下方添加你的自定义AutoMapper映射…

                // ================== Wechat =====================
                WechatAppConfigMapper.CreateMappings(configuration);

                //博客模块,后面统一到一个类中
                BlogDtoAutoMapper.CreateMappings(configuration);
                SysFileDtoAutoMapper.CreateMappings(configuration);
                WebSiteModuleDtoAutoMapper.CreateMappings(configuration);

                //市场模块
                ProductMapper.CreateMappings(configuration);
                OrderMapper.CreateMappings(configuration);
                ProductSecretKeyMapper.CreateMappings(configuration);
                DownloadLogMapper.CreateMappings(configuration);
                UserDownloadConfigMapper.CreateMappings(configuration);

                //慕课模块

                MoocDtoAutoMapper.CreateMappings(configuration);

                //课程模块
                NeteaseOrderInfoMapper.CreateMappings(configuration);
                TencentOrderInfoMapper.CreateMappings(configuration);

                DropdownListDtoAutoMapper.CreateMappings(configuration);

                // 动态页面信息
                DynamicViewMapper.CreateMappings(configuration);
            });
        }