GatherController.php 974 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace App\Http\Controllers\Manage\Book;
  3. use App\Modules\Book\Services\BookService;
  4. use App\Http\Controllers\Controller;
  5. class GatherController extends Controller
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * 更新所有书的章节
  12. */
  13. public function updateAll(){
  14. BookService::updateAll();
  15. }
  16. /**
  17. * 更新章节内容 一本书的
  18. * @param $bid
  19. * @return int|string
  20. */
  21. public function updateOne($bid){
  22. BookService::updateOne($bid);
  23. }
  24. /**
  25. * 更新书籍列表
  26. * @return int
  27. */
  28. public function updateBookList(){
  29. BookService::updateBookList();
  30. }
  31. /**
  32. * 调整所有顺序
  33. */
  34. public function adjustSequentAll(){
  35. BookService::adjustSequentAll();
  36. }
  37. /**
  38. * 调整单本书的顺序
  39. * @param $bid
  40. */
  41. public function adjustSequentOne($bid){
  42. BookService::adjustSequentOne($bid);
  43. }
  44. }