|
|
@@ -3,12 +3,8 @@
|
|
|
namespace App\Http\Controllers\Api\v1;
|
|
|
|
|
|
use App\Http\Controllers\Api\BaseController;
|
|
|
-use App\Http\Validator\ArticleValidator;
|
|
|
use App\Http\Validator\DynamicValidator;
|
|
|
-use App\Services\ArticleBooksService;
|
|
|
-use App\Services\ArticleCatesService;
|
|
|
-use App\Services\ArticleService;
|
|
|
-use App\Services\ConfigService;
|
|
|
+use App\Services\DynamicService;
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
/**
|
|
|
@@ -30,9 +26,7 @@ class DynamicController extends BaseController
|
|
|
{
|
|
|
parent::__construct();
|
|
|
|
|
|
- $this->service = new ArticleService();
|
|
|
- $this->cateService = new ArticleCatesService();
|
|
|
- $this->bookService = new ArticleBooksService();
|
|
|
+ $this->service = new DynamicService();
|
|
|
}
|
|
|
|
|
|
/**
|