From 09a1d6df38c4792b10dbdda4211eb1bfb1640c0f Mon Sep 17 00:00:00 2001 From: SamSys Date: Thu, 13 Nov 2025 13:51:42 +0330 Subject: [PATCH] SmsSettingUpdate --- .../Application/Enums/TypeOfSmsSetting.cs | 40 +++++++++++++++++++ Company.Domain/SmsResultAgg/SmsSetting.cs | 26 ++++++++++-- .../Mapping/SmsSettingMapping.cs | 13 ++++++ 3 files changed, 76 insertions(+), 3 deletions(-) create mode 100644 0_Framework/Application/Enums/TypeOfSmsSetting.cs create mode 100644 CompanyManagment.EFCore/Mapping/SmsSettingMapping.cs diff --git a/0_Framework/Application/Enums/TypeOfSmsSetting.cs b/0_Framework/Application/Enums/TypeOfSmsSetting.cs new file mode 100644 index 00000000..3d45f720 --- /dev/null +++ b/0_Framework/Application/Enums/TypeOfSmsSetting.cs @@ -0,0 +1,40 @@ +namespace _0_Framework.Application.Enums; + +public enum TypeOfSmsSetting +{ + + /// + /// پیامک + /// یادآور بدهی ماهیانه قرارداد مالی + /// + InstitutionContractDebtReminder, + + /// + /// پیامک + /// صورت حساب ماهانه قرارداد مالی + /// + MonthlyInstitutionContract, + + /// + /// پیامک + /// اعلام مسدودی طرف حساب + /// + BlockContractingParty, + + /// + /// پیامک + /// هشدار اول + /// + WarningOne, + + /// + /// پیامک هشدار دوم + /// + WarningTow, + + /// + ///پیامک اقدام قضائی + /// + LegalAction, + +} \ No newline at end of file diff --git a/Company.Domain/SmsResultAgg/SmsSetting.cs b/Company.Domain/SmsResultAgg/SmsSetting.cs index f656d912..f5f21fb5 100644 --- a/Company.Domain/SmsResultAgg/SmsSetting.cs +++ b/Company.Domain/SmsResultAgg/SmsSetting.cs @@ -1,6 +1,26 @@ -namespace Company.Domain.SmsResultAgg; +using _0_Framework.Application.Enums; +using _0_Framework.Domain; +using System; -public class SmsSetting +namespace Company.Domain.SmsResultAgg; + +public class SmsSetting : EntityBaseWithoutCreationDate { - + /// + /// نوع پیامک + /// + public TypeOfSmsSetting TypeOfSmsSetting { get; set; } + + /// + /// عدد روز از ماه + /// + public int DayOfMonth { get; set; } + + + /// + /// ساعت + /// + public TimeSpan TimeOfDay { get; set; } + + } \ No newline at end of file diff --git a/CompanyManagment.EFCore/Mapping/SmsSettingMapping.cs b/CompanyManagment.EFCore/Mapping/SmsSettingMapping.cs new file mode 100644 index 00000000..56bf4847 --- /dev/null +++ b/CompanyManagment.EFCore/Mapping/SmsSettingMapping.cs @@ -0,0 +1,13 @@ +using Company.Domain.SmsResultAgg; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Metadata.Builders; + +namespace CompanyManagment.EFCore.Mapping; + +public class SmsSettingMapping : IEntityTypeConfiguration +{ + public void Configure(EntityTypeBuilder builder) + { + throw new System.NotImplementedException(); + } +} \ No newline at end of file