25 lines
847 B
C#
25 lines
847 B
C#
using FreeRedis;
|
|
using FreeSql;
|
|
using JiShe.CollectBus.FreeRedisProvider;
|
|
using JiShe.CollectBus.FreeSql;
|
|
using JiShe.CollectBus.Localization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp.Application.Services;
|
|
|
|
namespace JiShe.CollectBus;
|
|
|
|
[ApiExplorerSettings(GroupName = CollectBusDomainSharedConsts.Business)]
|
|
public abstract class CollectBusAppService : ApplicationService
|
|
{
|
|
public IFreeSqlProvider SqlProvider => LazyServiceProvider.LazyGetRequiredService<IFreeSqlProvider>();
|
|
protected IFreeRedisProvider FreeRedisProvider => LazyServiceProvider.LazyGetService<IFreeRedisProvider>()!;
|
|
|
|
protected CollectBusAppService()
|
|
{
|
|
LocalizationResource = typeof(CollectBusResource);
|
|
ObjectMapperContext = typeof(CollectBusApplicationModule);
|
|
}
|
|
}
|