2025-04-15 16:05:07 +08:00
|
|
|
|
using JiShe.CollectBus.Common.Consts;
|
2025-04-14 16:41:41 +08:00
|
|
|
|
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;
|
2025-03-12 09:58:37 +08:00
|
|
|
|
using JiShe.CollectBus.FreeSql;
|
2024-12-19 16:07:07 +08:00
|
|
|
|
using JiShe.CollectBus.Localization;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2025-04-14 16:41:41 +08:00
|
|
|
|
using System;
|
2025-03-12 09:58:37 +08:00
|
|
|
|
using System.Collections.Generic;
|
2025-04-14 23:42:18 +08:00
|
|
|
|
using System.Linq;
|
2025-03-12 09:58:37 +08:00
|
|
|
|
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;
|
2025-04-22 21:01:28 +08:00
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
}
|