| 12345678910111213141516171819202122232425262728293031 | 
							- <?php
 
- namespace App\Services\Share;
 
- use App\Models\Share;
 
- use App\Repositories\ShareRepository;
 
- class ShareService
 
- {
 
-     protected $shareRepository;
 
-     public function __construct(ShareRepository $shareRepository)
 
-     {
 
-         $this->shareRepository = $shareRepository;
 
-     }
 
-     public function list($where = [], $page = '')
 
-     {
 
-         //获取列表
 
-         $list = $this->shareRepository->getShareData($where, $page);
 
-         return $list;
 
-     }
 
-     public function find($where){
 
-         return $this->shareRepository->model()->where($where)->first();
 
-     }
 
- }
 
 
  |