Advertisement
Guest User

Untitled

a guest
Sep 4th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 4.0.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.06.2018
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace App\Servers\Frontend;
  15.  
  16. class ArticleServer extends CommonServer
  17. {
  18. public function __construct(App\Repositories\Frontend\ArticleRepository $articleRepository, App\Repositories\Frontend\CategoryRepository $categoryRepository, App\Repositories\Frontend\TagRepository $tagRepository)
  19. {
  20. $this->articleRepository = $articleRepository;
  21. $this->categoryRepository = $categoryRepository;
  22. $this->tagRepository = $tagRepository;
  23. }
  24.  
  25. /**
  26. * 文章列表
  27. * @param array $input [search]
  28. * @return array
  29. */
  30. public function lists($input)
  31. {
  32. $result[__FUNCTION__] = $this->articleRepository->getLists($input);
  33. $result['options'] = $this->articleRepository->getOptions();
  34. return ['获取成功', $result];
  35. }
  36.  
  37. /**
  38. * 文章详情
  39. * @param int $id 文章id
  40. * @return Array
  41. */
  42. public function detail($id)
  43. {
  44. $list = $this->articleRepository->getDetail($id);
  45. .................................................................
  46. .................................
  47. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement