TalentLibrary.php 603 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * To change this license header, choose License Headers in Project Properties.
  4. * To change this template file, choose Tools | Templates
  5. * and open the template in the editor.
  6. */
  7. namespace app\enterprise\controller;
  8. use app\enterprise\common\EnterpriseController;
  9. use app\enterprise\api\TalentApi;
  10. /**
  11. * Description of TalentLibrary
  12. *
  13. * @author sgq
  14. */
  15. class TalentLibrary extends EnterpriseController {
  16. public function index() {
  17. return view();
  18. }
  19. public function list() {
  20. $res = TalentApi::getList($this->request, 3);
  21. return json($res);
  22. }
  23. }