erp-platform/api/src/Kurs.Platform.DbMigrator/Seeds/SeederDto.cs

106 lines
3.3 KiB
C#
Raw Normal View History

2025-05-06 06:45:49 +00:00
using System.Collections.Generic;
using Kurs.Languages.Entities;
using Kurs.Platform.Charts.Dto;
using Kurs.Platform.Entities;
using Kurs.Platform.ListForms;
using Kurs.Settings.Entities;
using Volo.Abp.PermissionManagement;
namespace Kurs.Platform.Seeds;
public class SeederDto
{
public List<Language> Languages { get; set; }
public List<LanguageTextsSeedDto> LanguageTexts { get; set; }
public List<DataSource> DataSources { get; set; }
public List<SettingDefinition> Settings { get; set; }
public List<ChartsSeedDto> Charts { get; set; }
2025-06-16 19:45:49 +00:00
public List<GlobalSearchDto> GlobalSearch { get; set; }
public List<BackgroundWorkerDto> BackgroundWorkers { get; set; }
public List<NotificationRuleDto> NotificationRules { get; set; }
public List<MenuDto> Menus { get; set; }
public List<PermissionGroupDefinitionRecordDto> PermissionGroupDefinitionRecords { get; set; }
public List<PermissionDefinitionRecord> PermissionDefinitionRecords { get; set; }
2025-05-06 06:45:49 +00:00
}
public class ChartsSeedDto
{
public string ChartCode { get; set; }
public string CultureName { get; set; }
public string DataSourceCode { get; set; }
public string UserId { get; set; }
public string RoleId { get; set; }
public ChartTitleDto Title { get; set; }
public ChartDataSourceDto DataSource { get; set; }
public List<ChartCommonSeriesSettingsDto> Series { get; set; }
public ChartCrosshairDto Crosshair { get; set; }
public ChartSizeDto Size { get; set; }
public PermissionCrudDto Permission { get; set; }
public ChartArgumentAxisDto ArgumentAxis { get; set; }
}
public class LanguageTextsSeedDto
{
public string ResourceName { get; set; }
public string Key { get; set; }
public string En { get; set; }
public string Tr { get; set; }
}
2025-06-16 19:45:49 +00:00
public class GlobalSearchDto
{
public string System { get; set; }
public string Group { get; set; }
public string Term { get; set; }
public string Weight { get; set; }
public string Url { get; set; }
}
2025-05-06 06:45:49 +00:00
2025-06-16 19:45:49 +00:00
public class BackgroundWorkerDto
{
public string Name { get; set; }
public string Cron { get; set; }
public string WorkerType { get; set; }
public bool IsActive { get; set; }
public string DataSourceCode { get; set; }
}
public class NotificationRuleDto
{
public string NotificationType { get; set; }
public string RecipientType { get; set; }
public string RecipientId { get; set; }
public string Channel { get; set; }
public bool IsActive { get; set; }
public bool IsFixed { get; set; }
public bool IsCustomized { get; set; }
}
public class MenuDto
{
public string ParentCode { get; set; }
public string Code { get; set; }
public string DisplayName { get; set; }
public int Order { get; set; }
public string Url { get; set; }
public string Icon { get; set; }
public string RequiredPermissionName { get; set; }
public bool IsDisabled { get; set; }
}
public class PermissionGroupDefinitionRecordDto
{
public string Name { get; set; }
public string DisplayName { get; set; }
}
public class PermissionDefinitionRecordDto
{
public string GroupName { get; set; }
public string Name { get; set; }
public string ParentName { get; set; }
public string DisplayName { get; set; }
public bool IsEnabled { get; set; }
public int MultiTenancySide { get; set; }
}