| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | <?phpnamespace App\Services\Content;use App\Repositories\ArticleCategoryRepository;class ArticleCategoryService{    /**     * @var ArticleCategoryRepository     */    protected $articleCategoryRepository;    /**     * ArticleCategoryService constructor.     * @param ArticleCategoryRepository $articleCategoryRepository     */    public function __construct(ArticleCategoryRepository $articleCategoryRepository)    {        $this->articleCategoryRepository = $articleCategoryRepository;    }    public function getChildCategorys($id, $limit)    {        $where              = [];        $where['parent_id'] = $id;        $list               = $this->articleCategoryRepository->getChildCategorys($where, $limit);        return $list;    }    public function getInfo($id)    {        $info = $this->articleCategoryRepository->getInfo($id);        return $info;    }    public function getBread($id)    {        $list = $this->articleCategoryRepository->getBread($id);        return $list;    }}
 |