- Add SendSmsMessage class for encapsulating SMS message data. - Create KavehNegarProvider and RanginehProvider classes implementing SmsProviderInterface for sending SMS. - Implement SmsLogRepository and SmsTemplateRepository for managing SMS logs and templates. - Develop SendSmsHandler for handling SMS sending messages. - Create SmsService to manage SMS dispatching and logging. - Add UserProfileController for managing user profiles with CRUD operations. - Implement UserProfile entity and repository for user profile data management. - Update symfony.lock and bootstrap.php for project dependencies and environment setup.
1.1 KiB
1.1 KiB
معماری — تسک ۱۱: ماژول بیمه
ساختار فایلها
src/Module/Insurance/
├── Controller/
│ └── InsuranceController.php
├── Service/
│ └── InsuranceService.php
├── Repository/
│ └── InsuranceRepository.php
├── Entity/
│ └── Insurance.php
└── DTO/
├── Request/
│ ├── CreateInsuranceRequest.php
│ └── UpdateInsuranceRequest.php
└── Response/
└── InsuranceResponse.php
Entity: Insurance
#[ORM\Entity]
#[ORM\Table(name: 'doctor_insurances')]
class Insurance
{
#[ORM\Id, ORM\GeneratedValue, ORM\Column]
private int $id;
#[ORM\ManyToOne(targetEntity: Doctor::class)]
#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
private Doctor $doctor;
#[ORM\ManyToOne(targetEntity: Category::class)]
#[ORM\JoinColumn(nullable: false)]
private Category $insuranceCategory; // از جدول categories
#[ORM\Column(type: 'boolean', default: true)]
private bool $isActive = true;
// TimestampableTrait
}