添加授权拦截
This commit is contained in:
parent
6ce5b5f7bb
commit
57749fc32e
@ -2,6 +2,7 @@
|
||||
using SJZY.Track.Application.Localization;
|
||||
using SJZY.UserCenter.Contracts;
|
||||
using SJZY.UserCenter.SharedModel;
|
||||
using SJZY.UserCenter.SharedModel.Pub;
|
||||
using Volo.Abp.AspNetCore.Mvc;
|
||||
using Volo.Abp.AutoMapper;
|
||||
using Volo.Abp.FluentValidation;
|
||||
@ -18,7 +19,8 @@ namespace SJZY.Track.Application
|
||||
typeof(AbpLocalizationModule),
|
||||
typeof(AbpVirtualFileSystemModule),
|
||||
typeof(AbpHttpClientModule),
|
||||
typeof(SJZYTrackDomainModule)
|
||||
typeof(SJZYTrackDomainModule),
|
||||
typeof(SjzyUserCenterHttpApiModule)
|
||||
)]
|
||||
public class ApplicationModule : AbpModule
|
||||
{
|
||||
@ -46,6 +48,11 @@ namespace SJZY.Track.Application
|
||||
.AddBaseTypes(typeof(SjzyBasicLocalization))
|
||||
.AddVirtualJson("/Localization/Resources");
|
||||
});
|
||||
//授权拦截提示
|
||||
context.Services.Configure<MvcOptions>(options =>
|
||||
{
|
||||
options.Filters.Add(new ApiAsyncAuthorizationFilter());
|
||||
});
|
||||
|
||||
//用户中心
|
||||
context.Services.AddHttpClientProxies(typeof(SjzyUserCenterHttpApiModule).Assembly, "UserCenter", false);
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Microsoft.Extensions.Localization;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using SJZY.Track.Application.Dtos.TrackStatus;
|
||||
using SJZY.Track.Application.Localization;
|
||||
using SJZY.Track.Domain.Aggregates.TrackStatusAggregate;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using System.Linq.Expressions;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using SJZY.Expand.ABP.Core.Localization;
|
||||
using SJZY.Track.Application.Dtos.TrackTemplates;
|
||||
|
||||
@ -81,6 +81,7 @@ public class OrderRepository : BasicRepository<OrderEntity>, IOrderRepository, I
|
||||
public async Task<UnifyPageResultDto<TrackOrderVO>> GetPageTrackOrder(GetPageTrackOrderInputVO input)
|
||||
{
|
||||
//await Context.Queryable<OrderEntity, OrderTemplateEntity>((a,b)= );
|
||||
//await Context.Queryable<OrderEntity,OrderTemplateEntity>((a,b)=> )
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user