Bläddra i källkod

删除冗余模块

td_orm
H Vs 1 år sedan
förälder
incheckning
656a0e69ec
2 ändrade filer med 2 tillägg och 33 borttagningar
  1. +0
    -31
      HealthMonitor.WebApi/Controllers/GpsCard/GpsBloodPressReferenceValueController.cs
  2. +2
    -2
      HealthMonitor.WebApi/Program.cs

+ 0
- 31
HealthMonitor.WebApi/Controllers/GpsCard/GpsBloodPressReferenceValueController.cs Visa fil

@@ -1,31 +0,0 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using HealthMonitor.Core.Cache;
using HealthMonitor.Core.Dal;
using HealthMonitor.Core.Dal.Factory;
using HealthMonitor.Core.Operator;
using HealthMonitor.Util.Entities.GpsCard;
using HealthMonitor.WebApi.Configs;
using HealthMonitor.WebApi.Controllers.Base;

namespace HealthMonitor.WebApi.Controllers.GpsCard
{
[ApiExplorerSettings(GroupName = AppConsts.SWAGGER_DOC_GpsCard)]
public class GpsBloodPressReferenceValueController : GpsCardControllerBase<GpsBloodPressReferenceValue>
{

public GpsBloodPressReferenceValueController(
IGpsCardDataAccessor dataAccessor,
IGpsCardOperatorManager operatorManager,
IDurableEntityManager durableManager,
ILogger<GpsBloodPressReferenceValueController> logger
//IOptions<RedisConfig> options
)
: base(dataAccessor, operatorManager, durableManager, logger)
{
//_options = options.Value;
}
}
}

+ 2
- 2
HealthMonitor.WebApi/Program.cs Visa fil

@@ -172,7 +172,7 @@ namespace HealthMonitor.WebApi
// Register the Swagger generator, defining 1 or more Swagger documents // Register the Swagger generator, defining 1 or more Swagger documents
builder.Services.AddSwaggerGen(c => builder.Services.AddSwaggerGen(c =>
{ {
c.SwaggerDoc(AppConsts.SWAGGER_DOC_GpsCard, new OpenApiInfo { Title = "GpsCard模块", Version = "v1", Description = "gps_card数据库服务" }); //分组显示
//c.SwaggerDoc(AppConsts.SWAGGER_DOC_GpsCard, new OpenApiInfo { Title = "GpsCard模块", Version = "v1", Description = "gps_card数据库服务" }); //分组显示
c.SwaggerDoc(AppConsts.SWAGGER_DOC_HealthMonitor, new OpenApiInfo { Title = "HealthMonitor模块", Version = "v1", Description = "health_monitor数据库服务" }); //分组显示 c.SwaggerDoc(AppConsts.SWAGGER_DOC_HealthMonitor, new OpenApiInfo { Title = "HealthMonitor模块", Version = "v1", Description = "health_monitor数据库服务" }); //分组显示




@@ -221,7 +221,7 @@ namespace HealthMonitor.WebApi
app.UseSwaggerUI(c => app.UseSwaggerUI(c =>
{ {
string sub = string.IsNullOrEmpty(prefix) ? "" : $"/{prefix}"; string sub = string.IsNullOrEmpty(prefix) ? "" : $"/{prefix}";
c.SwaggerEndpoint($"{sub}/{AppConsts.SWAGGER_DOC_GpsCard}/api-docs/", "GpsCard模块"); //分组显示
//c.SwaggerEndpoint($"{sub}/{AppConsts.SWAGGER_DOC_GpsCard}/api-docs/", "GpsCard模块"); //分组显示
c.SwaggerEndpoint($"{sub}/{AppConsts.SWAGGER_DOC_HealthMonitor}/api-docs/", "HealthMonitor模块"); //分组显示 c.SwaggerEndpoint($"{sub}/{AppConsts.SWAGGER_DOC_HealthMonitor}/api-docs/", "HealthMonitor模块"); //分组显示
c.RoutePrefix = string.Empty; c.RoutePrefix = string.Empty;
}); });


Laddar…
Avbryt
Spara