Refactor CustomerPlanService to use FacilityRepository, remove PlaceService, and introduce RfidTagService
- Updated CustomerPlanService to replace references to PlaceRepo with FacilityRepository for managing customer plans and associated facilities. - Removed PlaceService and its related methods, consolidating functionality into FacilityService. - Added RfidTagService for managing RFID tags, including methods for creating, updating, and setting statuses of tags. - Updated TenantDbContext to include new DbSet for RfidTags and CustomerPlanFacilities, and adjusted model configurations accordingly. - Enhanced FacilityService to support new booking modes and validation for facility creation and updates.
This commit is contained in:
+2
-2
@@ -143,7 +143,7 @@ builder.Services.AddScoped<ICustomerNotificationRepository, CustomerNotification
|
||||
builder.Services.AddScoped<IFacilityRepository, FacilityRepository>();
|
||||
builder.Services.AddScoped<IBookingRepository, BookingRepository>();
|
||||
builder.Services.AddScoped<ITimeBankCardRepository, TimeBankCardRepository>();
|
||||
builder.Services.AddScoped<IPlaceRepo, PlaceRepo>();
|
||||
builder.Services.AddScoped<IRfidTagRepository, RfidTagRepository>();
|
||||
|
||||
// Register Helpers
|
||||
builder.Services.AddScoped<Fitness_core_BE.Infra.Tenancy.ITenantContext, Fitness_core_BE.Infra.Tenancy.TenantContext>();
|
||||
@@ -163,11 +163,11 @@ builder.Services.AddScoped<ICustomerInvoiceService, CustomerInvoiceService>();
|
||||
builder.Services.AddScoped<ICustomerSubscriptionService, CustomerSubscriptionService>();
|
||||
builder.Services.AddScoped<IFacilityService, FacilityService>();
|
||||
builder.Services.AddScoped<IBookingService, BookingService>();
|
||||
builder.Services.AddScoped<IRfidTagService, RfidTagService>();
|
||||
builder.Services.AddScoped<ITimeBankCardService, TimeBankCardService>();
|
||||
builder.Services.AddScoped<IBootstrapService, BootstrapService>();
|
||||
builder.Services.AddScoped<ISubscriptionRenewalApprovalService, SubscriptionRenewalApprovalService>();
|
||||
builder.Services.AddScoped<ICustomerPlanService, CustomerPlanService>();
|
||||
builder.Services.AddScoped<IPlaceService, PlaceService>();
|
||||
builder.Services.AddScoped<IMealService, MealService>();
|
||||
builder.Services.AddScoped<IWorkoutService, WorkoutService>();
|
||||
builder.Services.AddScoped<IAuthService, AuthService>();
|
||||
|
||||
Reference in New Issue
Block a user