feat: add ApiResponse trait for standardized API responses
chore: update composer dependencies to include phppresentation chore: update composer.lock after adding phppresentation feat: create categories migration for category management feat: create templates migration for template storage feat: create template generations migration for tracking template usage feat: create template keys migration for template customization feat: create notifications migration for user notifications feat: update API routes for categories, templates, and user profile management docs: update API documentation to include new endpoints for profile and wallet
This commit is contained in:
21
app/Enums/TemplateGenerationStatus.php
Normal file
21
app/Enums/TemplateGenerationStatus.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum TemplateGenerationStatus: string
|
||||
{
|
||||
case Pending = 'pending';
|
||||
case Processing = 'processing';
|
||||
case Completed = 'completed';
|
||||
case Failed = 'failed';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Pending => 'در انتظار',
|
||||
self::Processing => 'در حال تولید',
|
||||
self::Completed => 'تکمیل شده',
|
||||
self::Failed => 'ناموفق',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user