Loan.php 736 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace app\master\controller;
  3. use app\master\logic\Loan as Logic;
  4. class Loan extends Base
  5. {
  6. //更新一个banner
  7. public function update() {
  8. $function = __FUNCTION__;
  9. return json($this->logic->$function());
  10. }
  11. public function getDetail() {
  12. $function = __FUNCTION__;
  13. return json($this->logic->$function());
  14. }
  15. public function getLoanList() {
  16. $function = __FUNCTION__;
  17. return json($this->logic->$function());
  18. }
  19. public function actionDelete() {
  20. $function = __FUNCTION__;
  21. return json($this->logic->$function());
  22. }
  23. public $logic;
  24. public function __initialize() {
  25. $this->logic = new Logic($this->request);
  26. }
  27. }