Browse Source

unformat the default date and time

pull/758/head
cKey 3 years ago
parent
commit
1e70f2486a
  1. 14
      aspnet-core/modules/dynamic-queryable/LINGYUN.Abp.Dynamic.Queryable.Application/LINGYUN/Abp/Dynamic/Queryable/DynamicQueryableAppService.cs
  2. 3
      aspnet-core/modules/platform/LINGYUN.Abp.UI.Navigation.VueVbenAdmin/LINGYUN/Abp/UI/Navigation/VueVbenAdmin/AbpUINavigationVueVbenAdminNavigationDefinitionProvider.cs
  3. 2
      aspnet-core/services/LY.MicroService.AuthServer.HttpApi.Host/AuthServerHttpApiHostModule.Configure.cs
  4. 2
      aspnet-core/services/LY.MicroService.AuthServer/AuthServerModule.Configure.cs
  5. 2
      aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/BackendAdminHttpApiHostModule.Configure.cs
  6. 2
      aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/LocalizationManagementHttpApiHostModule.Configure.cs
  7. 2
      aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/PlatformManagementHttpApiHostModule.Configure.cs
  8. 2
      aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/RealtimeMessageHttpApiHostModule.Configure.cs
  9. 2
      aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/TaskManagementHttpApiHostModule.Configure.cs
  10. 2
      aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/WebhooksManagementHttpApiHostModule.Configure.cs
  11. 2
      aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/WorkflowManagementHttpApiHostModule.Configure.cs
  12. 2
      aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/IdentityServerHttpApiHostModule.Configure.cs
  13. 2
      aspnet-core/services/LY.MicroService.identityServer/IdentityServerModule.Configure.cs
  14. 2
      gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/InternalApiGatewayModule.Configure.cs

14
aspnet-core/modules/dynamic-queryable/LINGYUN.Abp.Dynamic.Queryable.Application/LINGYUN/Abp/Dynamic/Queryable/DynamicQueryableAppService.cs

@ -24,9 +24,14 @@ public abstract class DynamicQueryableAppService<TEntity, TEntityDto> : Applicat
var entityType = typeof(TEntity);
var dynamicParamters = new List<DynamicParamterDto>();
var igonreFields = options
.IgnoreFields
.Union(GetUserDefineIgnoreFields())
.Distinct();
var propertyInfos = entityType
.GetProperties()
.Where(p => !options.IgnoreFields.Contains(p.Name));
.Where(p => !igonreFields.Contains(p.Name));
foreach (var propertyInfo in propertyInfos)
{
@ -77,6 +82,11 @@ public abstract class DynamicQueryableAppService<TEntity, TEntityDto> : Applicat
return ObjectMapper.Map<List<TEntity>, List<TEntityDto>>(entities);
}
protected virtual string[] GetUserDefineIgnoreFields()
{
return new string[0];
}
protected virtual (string JavaScriptType, DynamicComparison[] AvailableComparator) GetPropertyTypeMap(Type propertyType)
{
var isNullableType = false;
@ -86,7 +96,7 @@ public abstract class DynamicQueryableAppService<TEntity, TEntityDto> : Applicat
isNullableType = true;
propertyType = propertyType.GetGenericArguments().FirstOrDefault();
}
var typeFullName = propertyType.FullName.ToLower();
var typeFullName = propertyType.FullName;
switch (typeFullName)
{

3
aspnet-core/modules/platform/LINGYUN.Abp.UI.Navigation.VueVbenAdmin/LINGYUN/Abp/UI/Navigation/VueVbenAdmin/AbpUINavigationVueVbenAdminNavigationDefinitionProvider.cs

@ -238,7 +238,8 @@ namespace LINGYUN.Abp.UI.Navigation.VueVbenAdmin
displayName: "系统日志",
url: "/sys/logs",
component: "/sys/logging/index",
description: "系统日志"));
description: "系统日志",
multiTenancySides: MultiTenancySides.Host));
manage.AddItem(
new ApplicationMenu(

2
aspnet-core/services/LY.MicroService.AuthServer.HttpApi.Host/AuthServerHttpApiHostModule.Configure.cs

@ -104,7 +104,7 @@ public partial class AuthServerHttpApiHostModule
// 统一时间日期格式
Configure<AbpJsonOptions>(options =>
{
options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
// options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
});
// 中文序列化的编码问题
Configure<AbpSystemTextJsonSerializerOptions>(options =>

2
aspnet-core/services/LY.MicroService.AuthServer/AuthServerModule.Configure.cs

@ -177,7 +177,7 @@ public partial class AuthServerModule
// 统一时间日期格式
Configure<AbpJsonOptions>(options =>
{
options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
// options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
});
// 中文序列化的编码问题
Configure<AbpSystemTextJsonSerializerOptions>(options =>

2
aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/BackendAdminHttpApiHostModule.Configure.cs

@ -104,7 +104,7 @@ public partial class BackendAdminHttpApiHostModule
// 统一时间日期格式
Configure<AbpJsonOptions>(options =>
{
options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
// options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
});
// 中文序列化的编码问题
Configure<AbpSystemTextJsonSerializerOptions>(options =>

2
aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/LocalizationManagementHttpApiHostModule.Configure.cs

@ -89,7 +89,7 @@ public partial class LocalizationManagementHttpApiHostModule
// 统一时间日期格式
Configure<AbpJsonOptions>(options =>
{
options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
// options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
});
// 中文序列化的编码问题
Configure<AbpSystemTextJsonSerializerOptions>(options =>

2
aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/PlatformManagementHttpApiHostModule.Configure.cs

@ -93,7 +93,7 @@ public partial class PlatformManagementHttpApiHostModule
// 统一时间日期格式
Configure<AbpJsonOptions>(options =>
{
options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
// options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
});
// 中文序列化的编码问题
Configure<AbpSystemTextJsonSerializerOptions>(options =>

2
aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/RealtimeMessageHttpApiHostModule.Configure.cs

@ -131,7 +131,7 @@ public partial class RealtimeMessageHttpApiHostModule
// 统一时间日期格式
Configure<AbpJsonOptions>(options =>
{
options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
// options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
});
// 中文序列化的编码问题
Configure<AbpSystemTextJsonSerializerOptions>(options =>

2
aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/TaskManagementHttpApiHostModule.Configure.cs

@ -134,7 +134,7 @@ public partial class TaskManagementHttpApiHostModule
// 解决某些不支持类型的序列化
Configure<AbpJsonOptions>(options =>
{
options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
// options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
});
// 中文序列化的编码问题
Configure<AbpSystemTextJsonSerializerOptions>(options =>

2
aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/WebhooksManagementHttpApiHostModule.Configure.cs

@ -135,7 +135,7 @@ public partial class WebhooksManagementHttpApiHostModule
// 解决某些不支持类型的序列化
Configure<AbpJsonOptions>(options =>
{
options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
// options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
});
// 中文序列化的编码问题
Configure<AbpSystemTextJsonSerializerOptions>(options =>

2
aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/WorkflowManagementHttpApiHostModule.Configure.cs

@ -216,7 +216,7 @@ public partial class WorkflowManagementHttpApiHostModule
// 解决某些不支持类型的序列化
Configure<AbpJsonOptions>(options =>
{
options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
// options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
});
// 中文序列化的编码问题
Configure<AbpSystemTextJsonSerializerOptions>(options =>

2
aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/IdentityServerHttpApiHostModule.Configure.cs

@ -102,7 +102,7 @@ public partial class IdentityServerHttpApiHostModule
// 统一时间日期格式
Configure<AbpJsonOptions>(options =>
{
options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
// options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
});
// 中文序列化的编码问题
Configure<AbpSystemTextJsonSerializerOptions>(options =>

2
aspnet-core/services/LY.MicroService.identityServer/IdentityServerModule.Configure.cs

@ -125,7 +125,7 @@ public partial class IdentityServerModule
// 统一时间日期格式
Configure<AbpJsonOptions>(options =>
{
options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
// options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
});
// 中文序列化的编码问题
Configure<AbpSystemTextJsonSerializerOptions>(options =>

2
gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/InternalApiGatewayModule.Configure.cs

@ -77,7 +77,7 @@ namespace LINGYUN.MicroService.Internal.ApiGateway
// 统一时间日期格式
Configure<AbpJsonOptions>(options =>
{
options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
// options.DefaultDateTimeFormat = "yyyy-MM-dd HH:mm:ss";
});
// 中文序列化的编码问题
Configure<AbpSystemTextJsonSerializerOptions>(options =>

Loading…
Cancel
Save