- 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.
26 lines
849 B
Markdown
26 lines
849 B
Markdown
# نکات پیادهسازی — تسک ۱۴: ماژول منشی
|
|
|
|
## نقش کاربری
|
|
هنگام ایجاد secretary، نقش `ROLE_SECRETARY` به user مرتبط اضافه میشود.
|
|
هنگام حذف، نقش را remove کن (اگر منشی دکتر دیگری نیست).
|
|
|
|
## مجوزهای منشی
|
|
```json
|
|
{
|
|
"permissions": [
|
|
"manage_appointments", // مدیریت نوبتها
|
|
"view_payments", // مشاهده پرداختها
|
|
"manage_schedule" // مدیریت برنامه
|
|
]
|
|
}
|
|
```
|
|
|
|
## مجوزها در سیستم
|
|
```
|
|
POST → دکتر (برای خودش) یا ROLE_ADMIN
|
|
PATCH → دکتر مرتبط یا ROLE_ADMIN
|
|
DELETE → دکتر مرتبط یا ROLE_ADMIN
|
|
GET → دکتر مرتبط، خود منشی، یا ROLE_ADMIN
|
|
GET list → دکتر مرتبط یا ROLE_ADMIN
|
|
```
|