30 lines
1020 B
C#
Raw Normal View History

2025-04-15 16:05:07 +08:00
using JiShe.CollectBus.Common.Consts;
using JiShe.CollectBus.Common.Enums;
2025-04-15 15:49:51 +08:00
using JiShe.CollectBus.Common.Extensions;
2025-04-15 16:05:07 +08:00
using JiShe.CollectBus.Common.Helpers;
using JiShe.CollectBus.FreeSql;
2024-12-19 16:07:07 +08:00
using JiShe.CollectBus.Localization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
2025-04-17 20:28:50 +08:00
using JiShe.CollectBus.FreeRedis;
2024-12-19 16:07:07 +08:00
using Volo.Abp.Application.Services;
using Volo.Abp.Timing;
2024-12-19 16:07:07 +08:00
namespace JiShe.CollectBus;
[ApiExplorerSettings(GroupName = CollectBusDomainSharedConsts.Business)]
public abstract class CollectBusAppService : ApplicationService
{
public IFreeSqlProvider SqlProvider => LazyServiceProvider.LazyGetRequiredService<IFreeSqlProvider>();
2025-03-17 08:35:19 +08:00
protected IFreeRedisProvider FreeRedisProvider => LazyServiceProvider.LazyGetService<IFreeRedisProvider>()!;
2024-12-19 16:07:07 +08:00
protected CollectBusAppService()
{
LocalizationResource = typeof(CollectBusResource);
ObjectMapperContext = typeof(CollectBusApplicationModule);
2025-04-15 15:49:51 +08:00
}
}