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