浏览代码

删除冗余模块

td_orm
H Vs 1年前
父节点
当前提交
656a0e69ec
共有 2 个文件被更改,包括 2 次插入33 次删除
  1. +0
    -31
      HealthMonitor.WebApi/Controllers/GpsCard/GpsBloodPressReferenceValueController.cs
  2. +2
    -2
      HealthMonitor.WebApi/Program.cs

+ 0
- 31
HealthMonitor.WebApi/Controllers/GpsCard/GpsBloodPressReferenceValueController.cs 查看文件

@@ -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 查看文件

@@ -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;
});


正在加载...
取消
保存