- 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.
51 lines
1.3 KiB
Markdown
51 lines
1.3 KiB
Markdown
# معماری — تسک ۱۴: ماژول منشی
|
|
|
|
## ساختار فایلها
|
|
```
|
|
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
|
|
```php
|
|
#[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
|
|
}
|
|
```
|