541 lines
15 KiB
C#
541 lines
15 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Kurs.Languages.Entities;
|
|
using Kurs.Platform.Contacts;
|
|
using Kurs.Platform.Entities;
|
|
using Kurs.Settings.Entities;
|
|
using static Kurs.Platform.Abouts.AboutDto;
|
|
|
|
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<GlobalSearchSeedDto> GlobalSearch { get; set; }
|
|
public List<BackgroundWorkerSeedDto> BackgroundWorkers { get; set; }
|
|
public List<NotificationRuleSeedDto> NotificationRules { get; set; }
|
|
public List<MenuSeedDto> Menus { get; set; }
|
|
public List<PermissionGroupDefinitionRecordSeedDto> PermissionGroupDefinitionRecords { get; set; }
|
|
public List<PermissionDefinitionRecordSeedDto> PermissionDefinitionRecords { get; set; }
|
|
public List<SectorSeedDto> Sectors { get; set; }
|
|
public List<UomCategorySeedDto> UomCategories { get; set; }
|
|
public List<UomSeedDto> Uoms { get; set; }
|
|
public List<CurrencySeedDto> Currencies { get; set; }
|
|
public List<SkillTypeSeedDto> SkillTypes { get; set; }
|
|
public List<SkillSeedDto> Skills { get; set; }
|
|
public List<SkillLevelSeedDto> SkillLevels { get; set; }
|
|
public List<ContactTagSeedDto> ContactTags { get; set; }
|
|
public List<ContactTitleSeedDto> ContactTitles { get; set; }
|
|
public List<BlogCategorySeedDto> BlogCategories { get; set; }
|
|
public List<BlogPostSeedDto> BlogPosts { get; set; }
|
|
public List<ForumCategorySeedDto> ForumCategories { get; set; }
|
|
public List<AiBotSeedDto> AiBots { get; set; }
|
|
public List<RouteSeedDto> Routes { get; set; }
|
|
public List<CustomEndpointSeedDto> CustomEndpoints { get; set; }
|
|
public List<ProductSeedDto> Products { get; set; }
|
|
public List<PaymentMethodSeedDto> PaymentMethods { get; set; }
|
|
public List<InstallmentOptionSeedDto> InstallmentOptions { get; set; }
|
|
public List<CustomComponentSeedDto> CustomComponents { get; set; }
|
|
public List<ReportCategorySeedDto> ReportCategories { get; set; }
|
|
public List<ServiceSeedDto> Services { get; set; }
|
|
public List<AboutSeedDto> Abouts { get; set; }
|
|
public List<ContactSeedDto> Contacts { get; set; }
|
|
|
|
public List<BehaviorSeedDto> Behaviors { get; set; }
|
|
public List<DocumentSeedDto> Documents { get; set; }
|
|
public List<DiseaseSeedDto> Diseases { get; set; }
|
|
public List<EducationStatusSeedDto> EducationStatuses { get; set; }
|
|
public List<VaccineSeedDto> Vaccines { get; set; }
|
|
public List<WorkHourSeedDto> WorkHours { get; set; }
|
|
public List<ScheduleSeedDto> Schedules { get; set; }
|
|
public List<SalesRejectionReasonSeedDto> SalesRejectionReasons { get; set; }
|
|
public List<NoteTypeSeedDto> NoteTypes { get; set; }
|
|
public List<LessonPeriodSeedDto> LessonPeriods { get; set; }
|
|
public List<InformationSeedDto> Informations { get; set; }
|
|
public List<MeetingMethodSeedDto> MeetingMethods { get; set; }
|
|
public List<MeetingResultSeedDto> MeetingResults { get; set; }
|
|
public List<ClassCancellationReasonSeedDto> ClassCancellationReasons { get; set; }
|
|
public List<EventTypeSeedDto> EventTypes { get; set; }
|
|
public List<EventCategorySeedDto> EventCategories { get; set; }
|
|
public List<SourceSeedDto> Sources { get; set; }
|
|
public List<InterestingSeedDto> Interesting { get; set; }
|
|
public List<ProgramSeedDto> Programs { get; set; }
|
|
public List<RegistrationTypeSeedDto> RegistrationTypes { get; set; }
|
|
public List<RegistrationMethodSeedDto> RegistrationMethods { get; set; }
|
|
public List<ClassTypeSeedDto> ClassTypes { get; set; }
|
|
public List<ClassSeedDto> Classes { get; set; }
|
|
public List<LevelSeedDto> Levels { get; set; }
|
|
|
|
public List<ClassroomSeedDto> Classrooms { 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; }
|
|
}
|
|
|
|
public class GlobalSearchSeedDto
|
|
{
|
|
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; }
|
|
}
|
|
|
|
public class BackgroundWorkerSeedDto
|
|
{
|
|
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 NotificationRuleSeedDto
|
|
{
|
|
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 MenuSeedDto
|
|
{
|
|
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 PermissionGroupDefinitionRecordSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string DisplayName { get; set; }
|
|
}
|
|
|
|
public class PermissionDefinitionRecordSeedDto
|
|
{
|
|
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; }
|
|
}
|
|
|
|
public class SectorSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string FullName { get; set; }
|
|
}
|
|
|
|
public class UomCategorySeedDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
public class UomSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Type { get; set; }
|
|
public decimal Ratio { get; set; }
|
|
public bool IsActive { get; set; }
|
|
public decimal Rounding { get; set; }
|
|
public Guid UomCategoryId { get; set; }
|
|
}
|
|
|
|
public class CurrencySeedDto
|
|
{
|
|
public string Code { get; set; }
|
|
public string Symbol { get; set; }
|
|
public string Name { get; set; }
|
|
public bool IsActive { get; set; }
|
|
}
|
|
|
|
public class SkillTypeSeedDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
public class SkillSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public Guid SkillTypeId { get; set; }
|
|
}
|
|
|
|
public class SkillLevelSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public int Progress { get; set; }
|
|
public bool IsDefault { get; set; }
|
|
public Guid SkillTypeId { get; set; }
|
|
}
|
|
|
|
public class ContactTagSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Category { get; set; }
|
|
}
|
|
|
|
public class ContactTitleSeedDto
|
|
{
|
|
public string Title { get; set; }
|
|
public string Abbreviation { get; set; }
|
|
}
|
|
|
|
public class BlogCategorySeedDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string Slug { get; set; }
|
|
public string Description { get; set; }
|
|
public int DisplayOrder { get; set; }
|
|
public int PostCount { get; set; }
|
|
}
|
|
|
|
public class BlogPostSeedDto
|
|
{
|
|
public string Title { get; set; }
|
|
public string Slug { get; set; }
|
|
public string ContentTr { get; set; }
|
|
public string ContentEn { get; set; }
|
|
public string ReadTime { get; set; }
|
|
public string Summary { get; set; }
|
|
public string CoverImage { get; set; }
|
|
public Guid CategoryId { get; set; }
|
|
public Guid AuthorId { get; set; }
|
|
public Boolean IsPublished { get; set; }
|
|
public DateTime PublishedAt { get; set; }
|
|
}
|
|
|
|
public class ForumCategorySeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Slug { get; set; }
|
|
public string Description { get; set; }
|
|
public string Icon { get; set; }
|
|
public int DisplayOrder { get; set; }
|
|
public bool IsActive { get; set; }
|
|
}
|
|
|
|
public class AiBotSeedDto
|
|
{
|
|
public string BotName { get; set; }
|
|
}
|
|
|
|
public class RouteSeedDto
|
|
{
|
|
public string Key { get; set; }
|
|
public string Path { get; set; }
|
|
public string ComponentPath { get; set; }
|
|
public string RouteType { get; set; }
|
|
public string[] Authority { get; set; }
|
|
}
|
|
|
|
public class CustomEndpointSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Description { get; set; }
|
|
public string Url { get; set; }
|
|
public string Method { get; set; }
|
|
public string DataSourceCode { get; set; }
|
|
public string Sql { get; set; }
|
|
public List<CustomEndpointParameter> ParametersJson { get; set; }
|
|
public List<CustomEndpointPermission> PermissionsJson { get; set; }
|
|
}
|
|
|
|
public class ProductSeedDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string Description { get; set; }
|
|
public string Category { get; set; }
|
|
public int Order { get; set; }
|
|
public decimal? MonthlyPrice { get; set; }
|
|
public decimal? YearlyPrice { get; set; }
|
|
public bool IsQuantityBased { get; set; }
|
|
public string ImageUrl { get; set; }
|
|
}
|
|
|
|
public class PaymentMethodSeedDto
|
|
{
|
|
public string Id { get; set; }
|
|
public string Name { get; set; }
|
|
public decimal Commission { get; set; }
|
|
public string Logo { get; set; }
|
|
}
|
|
|
|
public class InstallmentOptionSeedDto
|
|
{
|
|
public int Installment { get; set; }
|
|
public string Name { get; set; }
|
|
public decimal Commission { get; set; }
|
|
}
|
|
|
|
public class CustomComponentSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Code { get; set; }
|
|
public string? Props { get; set; }
|
|
public string? Description { get; set; }
|
|
public bool IsActive { get; set; }
|
|
public List<string> Dependencies { get; set; } = new();
|
|
}
|
|
|
|
public class ReportCategorySeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Description { get; set; }
|
|
public string Icon { get; set; }
|
|
}
|
|
|
|
public class ServiceSeedDto
|
|
{
|
|
public string Icon { get; set; }
|
|
public string Title { get; set; }
|
|
public string Description { get; set; }
|
|
public string Type { get; set; }
|
|
public string[] Features { get; set; }
|
|
}
|
|
|
|
public class AboutSeedDto
|
|
{
|
|
public List<StatDto> Stats { get; set; }
|
|
public List<string> Descriptions { get; set; }
|
|
public List<SectionDto> Sections { get; set; }
|
|
}
|
|
|
|
public class ContactSeedDto
|
|
{
|
|
public string Address { get; set; }
|
|
public string Phone { get; set; }
|
|
public string Email { get; set; }
|
|
public string Location { get; set; }
|
|
public string TaxNumber { get; set; }
|
|
public BankDto Bank { get; set; }
|
|
public WorkHoursDto WorkHour { get; set; }
|
|
public MapDto Map { get; set; }
|
|
}
|
|
|
|
public class ClassroomSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Description { get; set; }
|
|
public string Subject { get; set; }
|
|
public Guid? TeacherId { get; set; }
|
|
public string TeacherName { get; set; }
|
|
public DateTime ScheduledStartTime { get; set; }
|
|
public DateTime ScheduledEndTime { get; set; }
|
|
public int Duration { get; set; }
|
|
public int MaxParticipants { get; set; }
|
|
public bool IsActive { get; set; }
|
|
public bool IsScheduled { get; set; }
|
|
public int ParticipantCount { get; set; }
|
|
public string SettingsJson { get; set; }
|
|
}
|
|
|
|
public class BehaviorSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
public class DocumentSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
public class DiseaseSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
public class EducationStatusSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public short Order { get; set; }
|
|
}
|
|
|
|
public class VaccineSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
public class WorkHourSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string StartHour { get; set; }
|
|
public string EndHour { get; set; }
|
|
public bool? IsFixed { get; set; }
|
|
public bool? Monday { get; set; }
|
|
public bool? Tuesday { get; set; }
|
|
public bool? Wednesday { get; set; }
|
|
public bool? Thursday { get; set; }
|
|
public bool? Friday { get; set; }
|
|
public bool? Saturday { get; set; }
|
|
public bool? Sunday { get; set; }
|
|
}
|
|
|
|
public class ScheduleSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Status { get; set; }
|
|
public string StartTime { get; set; }
|
|
public string EndTime { get; set; }
|
|
public int LessonMinute { get; set; }
|
|
public int LessonBreakMinute { get; set; }
|
|
public int LessonCount { get; set; }
|
|
public string LunchTime { get; set; }
|
|
public int? LunchMinute { get; set; }
|
|
public bool? IncludeLunch { get; set; }
|
|
public bool? Monday { get; set; }
|
|
public bool? Tuesday { get; set; }
|
|
public bool? Wednesday { get; set; }
|
|
public bool? Thursday { get; set; }
|
|
public bool? Friday { get; set; }
|
|
public bool? Saturday { get; set; }
|
|
public bool? Sunday { get; set; }
|
|
}
|
|
|
|
public class SalesRejectionReasonSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class NoteTypeSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
public class LessonPeriodSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Day { get; set; }
|
|
|
|
public string Lesson1 { get; set; }
|
|
public string Lesson2 { get; set; }
|
|
public string Lesson3 { get; set; }
|
|
public string Lesson4 { get; set; }
|
|
}
|
|
|
|
public class InformationSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
public class MeetingMethodSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Type { get; set; }
|
|
}
|
|
|
|
public class MeetingResultSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public short? Order { get; set; }
|
|
}
|
|
|
|
public class ClassCancellationReasonSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class EventTypeSeedDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
public class EventCategorySeedDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
public class EventSeedDto
|
|
{
|
|
public Guid CategoryId { get; set; }
|
|
public Guid TypeId { get; set; }
|
|
public string Name { get; set; }
|
|
public string Place { get; set; }
|
|
public string Description { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class SourceSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class InterestingSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class ProgramSeedDto
|
|
{
|
|
public string Name { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class RegistrationTypeSeedDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class RegistrationMethodSeedDto
|
|
{
|
|
public Guid RegistrationTypeId { get; set; }
|
|
public string Name { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class ClassTypeSeedDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid RegistrationTypeId { get; set; }
|
|
public string Name { get; set; }
|
|
public int? MinStudentCount { get; set; }
|
|
public int? MaxStudentCount { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class ClassSeedDto
|
|
{
|
|
public Guid ClassTypeId { get; set; }
|
|
public string Name { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class LevelSeedDto
|
|
{
|
|
public Guid ClassTypeId { get; set; }
|
|
public string Name { get; set; }
|
|
public string LevelType { get; set; }
|
|
public int LessonCount { get; set; }
|
|
public string Status { get; set; }
|
|
public int? LessonDuration { get; set; }
|
|
public decimal? MonthlyPaymentRate { get; set; }
|
|
}
|