12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace app\mobile\controller;
- use app\mobile\logic\Subject as Logic;
- use think\Log;
- class Subject extends Base
- {
- public function create()
- {
- $function = __FUNCTION__;
- return json($this->logic->$function());
- }
- public function getSubjectList() {
- $function = __FUNCTION__;
- return json($this->logic->$function());
- }
- public function getSubjectDetail() {
- $function = __FUNCTION__;
- return json($this->logic->$function());
- }
- public function getSubjectContent() {
- $function = __FUNCTION__;
- return json($this->logic->$function());
- }
- public $logic;
- public function __initialize() {
- $this->logic = new Logic($this->request);
- }
- }
|