Setting.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace app\master\controller;
  3. use app\master\logic\Setting as Logic;
  4. class Setting extends Base
  5. {
  6. //更新一个banner
  7. public function bannerUpdate() {
  8. $function = __FUNCTION__;
  9. return json($this->logic->$function());
  10. }
  11. public function bannerGetDetail() {
  12. $function = __FUNCTION__;
  13. return json($this->logic->$function());
  14. }
  15. //得到banner列表
  16. public function getBannerList() {
  17. $function = __FUNCTION__;
  18. return json($this->logic->$function());
  19. }
  20. public function bannerActionOnline() {
  21. $function = __FUNCTION__;
  22. return json($this->logic->$function());
  23. }
  24. public function bannerActionOffline() {
  25. $function = __FUNCTION__;
  26. return json($this->logic->$function());
  27. }
  28. public function channelUpdate() {
  29. $function = __FUNCTION__;
  30. return json($this->logic->$function());
  31. }
  32. public function channelGetList() {
  33. $function = __FUNCTION__;
  34. return json($this->logic->$function());
  35. }
  36. public function channelGetDetail() {
  37. $function = __FUNCTION__;
  38. return json($this->logic->$function());
  39. }
  40. public $logic;
  41. public function __initialize() {
  42. $this->logic = new Logic($this->request);
  43. }
  44. }