Files
clinicpro/docs/tasks/task-14-secretary/architecture.md
T
hamed de1a78a235 feat: Implement SMS sending functionality with KavehNegar and Rangineh providers
- 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.
2026-06-09 22:00:34 +03:30

1.3 KiB

معماری — تسک ۱۴: ماژول منشی

ساختار فایل‌ها

src/Module/Secretary/
├── Controller/
│   └── SecretaryController.php
├── Service/
│   └── SecretaryService.php
├── Repository/
│   └── SecretaryRepository.php
├── Entity/
│   └── Secretary.php
├── DTO/
│   ├── Request/
│   │   ├── CreateSecretaryRequest.php
│   │   └── UpdateSecretaryRequest.php
│   └── Response/
│       └── SecretaryResponse.php
└── Voter/
    └── SecretaryVoter.php

Entity: Secretary

#[ORM\Entity]
#[ORM\Table(name: 'secretaries')]
class Secretary
{
    #[ORM\Id, ORM\GeneratedValue, ORM\Column]
    private int $id;

    #[ORM\Column(type: UuidType::NAME, unique: true)]
    private Uuid $uuid;

    #[ORM\ManyToOne(targetEntity: User::class)]
    private User $user;          // حساب کاربری منشی

    #[ORM\ManyToOne(targetEntity: Doctor::class)]
    private Doctor $doctor;      // دکتر مربوطه

    #[ORM\Column(length: 20, default: 'active')]
    private string $status;

    #[ORM\Column(type: 'json', nullable: true)]
    private ?array $permissions;  // ['manage_appointments', 'view_payments', ...]

    // TimestampableTrait
}