Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
- *
- * @ Version : 4.0.5.0
- * @ Author : DeZender
- * @ Release on : 22.06.2018
- * @ Official site : http://DeZender.Net
- *
- */
- namespace App\Servers\Frontend;
- class ArticleServer extends CommonServer
- {
- public function __construct(App\Repositories\Frontend\ArticleRepository $articleRepository, App\Repositories\Frontend\CategoryRepository $categoryRepository, App\Repositories\Frontend\TagRepository $tagRepository)
- {
- $this->articleRepository = $articleRepository;
- $this->categoryRepository = $categoryRepository;
- $this->tagRepository = $tagRepository;
- }
- /**
- * 文章列表
- * @param array $input [search]
- * @return array
- */
- public function lists($input)
- {
- $result[__FUNCTION__] = $this->articleRepository->getLists($input);
- $result['options'] = $this->articleRepository->getOptions();
- return ['获取成功', $result];
- }
- /**
- * 文章详情
- * @param int $id 文章id
- * @return Array
- */
- public function detail($id)
- {
- $list = $this->articleRepository->getDetail($id);
- .................................................................
- .................................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement