using HZY.Framework.DependencyInjection.Attributes; namespace MiaoYu.Core.ApplicationServices; /// /// 服务父类 /// [Component] public class ApplicationService //: IScopedSelfDependency { } /// /// 服务父类 /// /// 仓储 public class ApplicationService : ApplicationService where TRepository : class { /// /// 默认仓储 /// protected readonly TRepository _defaultRepository; /// /// 服务父类 /// /// public ApplicationService(TRepository defaultRepository) { _defaultRepository = defaultRepository; } }