Subject.php 751 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace app\mobile\controller;
  3. use app\mobile\logic\Subject as Logic;
  4. use think\Log;
  5. class Subject extends Base
  6. {
  7. public function create()
  8. {
  9. $function = __FUNCTION__;
  10. return json($this->logic->$function());
  11. }
  12. public function getSubjectList() {
  13. $function = __FUNCTION__;
  14. return json($this->logic->$function());
  15. }
  16. public function getSubjectDetail() {
  17. $function = __FUNCTION__;
  18. return json($this->logic->$function());
  19. }
  20. public function getSubjectContent() {
  21. $function = __FUNCTION__;
  22. return json($this->logic->$function());
  23. }
  24. public $logic;
  25. public function __initialize() {
  26. $this->logic = new Logic($this->request);
  27. }
  28. }