vd/app/Domains/Welcome/Services/TestService.php
2018-11-05 09:26:30 +08:00

26 lines
467 B
PHP

<?php
namespace App\Domains\Welcome\Services;
use App\Core\Service;
use App\Domains\Welcome\Repositories\TestRepository;
class TestService extends Service
{
protected $testRepository;
/**
* 构造函数
*
* @return void
*/
public function __construct(TestRepository $testRepository)
{
$this->testRepository = $testRepository;
}
public function index()
{
return $this->testRepository->get();
}
}