Procházet zdrojové kódy

删除冗余模块

td_orm
H Vs před 1 rokem
rodič
revize
656a0e69ec
2 změnil soubory, kde provedl 2 přidání a 33 odebrání
  1. +0
    -31
      HealthMonitor.WebApi/Controllers/GpsCard/GpsBloodPressReferenceValueController.cs
  2. +2
    -2
      HealthMonitor.WebApi/Program.cs

+ 0
- 31
HealthMonitor.WebApi/Controllers/GpsCard/GpsBloodPressReferenceValueController.cs Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -172,7 +172,7 @@ namespace HealthMonitor.WebApi
// Register the Swagger generator, defining 1 or more Swagger documents
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数据库服务" }); //分组显示


@@ -221,7 +221,7 @@ namespace HealthMonitor.WebApi
app.UseSwaggerUI(c =>
{
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.RoutePrefix = string.Empty;
});


Načítá se…
Zrušit
Uložit