| 12345678910111213141516171819202122232425262728293031323334353637383940414243 | 
							- <?php
 
- /**
 
-  * Created by PhpStorm.
 
-  * User: Administrator
 
-  * Date: 2018/11/7
 
-  * Time: 14:17
 
-  */
 
- namespace App\Services\Content;
 
- use App\Repositories\HelpRepository;
 
- class HelpService
 
- {
 
-     protected $helpRepository;
 
-     /**
 
-      * HelpService constructor.
 
-      * @param $helpRepository
 
-      */
 
-     public function __construct(HelpRepository $helpRepository)
 
-     {
 
-         $this->helpRepository = $helpRepository;
 
-     }
 
-     public function getHelpsByType($id, $page)
 
-     {
 
-         if ($id && intval($id)>0) {
 
-             $lists = $this->helpRepository->getHelpsByType($id, $page);
 
-         }
 
-         return $lists;
 
-     }
 
-     public function getHelps($where, $page)
 
-     {
 
-         $lists = $this->helpRepository->getHelps($where, $page);
 
-         return $lists;
 
-     }
 
-     public function getHelp($where)
 
-     {
 
-         $lists = $this->helpRepository->getHelpInfo($where);
 
-         return $lists;
 
-     }
 
- }
 
 
  |