refactor and add using constants instead of hard coded strings ...

This commit is contained in:
2026-07-30 14:26:51 +03:30
parent 651fde1cd8
commit 9c101a63eb
7 changed files with 49 additions and 14 deletions
@@ -1,11 +1,10 @@
using System;
using xDataService.Configuration;
using xDataService.Providers;
using xFileService.Interfaces;
using xFileService.Interfaces.Entities;
using xFileService.Models.Entities;
namespace xFileService.Providers
namespace xFileService.Providers.Entities
{
public abstract class XFileSeederBase : XBaseDbSeeder<XFile, Guid>, IXFileSeeder
{
+3 -2
View File
@@ -1,6 +1,7 @@
using System;
using xDataService.Configuration;
using xDataService.GraphQL;
using xFileService.Constants;
using xFileService.Interfaces.Entities;
using xFileService.Models.Entities;
@@ -15,12 +16,12 @@ namespace xFileService.Providers.GraphQL
public override string GetInQueryCollectionName()
{
return "files";
return XFileServiceConstants.XFileCollectionName;
}
public override string GetInQuerySingleName()
{
return "file";
return XFileServiceConstants.XFileSingleName;
}
}
}
+3 -3
View File
@@ -1,6 +1,6 @@
using System;
using xFileService.Constants;
using xFileService.Interfaces;
using xFileService.Models.Entities;
using xTagService.Interfaces.Dtos;
using xTagService.Providers;
@@ -11,8 +11,8 @@ namespace xFileService.Providers
public XFileTagProvider(
IXTagServiceProvider tagProvider
) : base(
providedFor: nameof(XFile),
tagProvider: tagProvider
tagProvider: tagProvider,
providedFor: XFileServiceConstants.XFileTagProvided
)
{ }
}