|
@@ -1,11 +1,11 @@
|
|
|
<?php
|
|
<?php
|
|
|
|
|
|
|
|
-namespace App\Http\Controllers;
|
|
|
|
|
|
|
+namespace App\Http\Controllers\AIGeneration;
|
|
|
|
|
|
|
|
use Illuminate\Routing\Controller as BaseController;
|
|
use Illuminate\Routing\Controller as BaseController;
|
|
|
use App\Libs\Utils;
|
|
use App\Libs\Utils;
|
|
|
-use App\Services\AiImageGenerationService;
|
|
|
|
|
-use App\Transformer\ImageGenerationTransformer;
|
|
|
|
|
|
|
+use App\Services\AIGeneration\AIImageGenerationService;
|
|
|
|
|
+use App\Transformer\AIGeneration\AIGenerationTransformer;
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Request;
|
|
|
use Illuminate\Http\JsonResponse;
|
|
use Illuminate\Http\JsonResponse;
|
|
|
use Illuminate\Support\Facades\Validator;
|
|
use Illuminate\Support\Facades\Validator;
|
|
@@ -16,7 +16,7 @@ class ImageGenerationController extends BaseController
|
|
|
use ApiResponse;
|
|
use ApiResponse;
|
|
|
private $aiImageGenerationService;
|
|
private $aiImageGenerationService;
|
|
|
|
|
|
|
|
- public function __construct(AiImageGenerationService $aiImageGenerationService)
|
|
|
|
|
|
|
+ public function __construct(AIImageGenerationService $aiImageGenerationService)
|
|
|
{
|
|
{
|
|
|
$this->aiImageGenerationService = $aiImageGenerationService;
|
|
$this->aiImageGenerationService = $aiImageGenerationService;
|
|
|
}
|
|
}
|
|
@@ -107,6 +107,6 @@ class ImageGenerationController extends BaseController
|
|
|
$data = $request->all();
|
|
$data = $request->all();
|
|
|
|
|
|
|
|
$result = $this->aiImageGenerationService->getTaskList($data);
|
|
$result = $this->aiImageGenerationService->getTaskList($data);
|
|
|
- return $this->success($result, [new ImageGenerationTransformer(), 'newBuildTaskList']);
|
|
|
|
|
|
|
+ return $this->success($result, [new AIGenerationTransformer(), 'newBuildTaskList']);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|