Talent.php 817 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace app\enterprise\controller;
  3. use app\enterprise\common\EnterpriseController;
  4. use app\enterprise\api\TalentApi;
  5. /**
  6. * Description of Talent
  7. *
  8. * @author sgq
  9. */
  10. class Talent extends EnterpriseController {
  11. public function index() {
  12. return view();
  13. }
  14. public function list() {
  15. $res = TalentApi::getList($this->request);
  16. return json($res);
  17. }
  18. public function add() {
  19. $enterprise_info = \app\admin\model\Enterprise::find($this->user["uid"]);
  20. return view("", ["year" => date("Y"), "enterprise" => $enterprise_info]);
  21. }
  22. public function addTalentFile() {
  23. $file = $this->request->file("fileUrl");
  24. $upload = new \app\common\api\UploadApi();
  25. $res = $upload->uploadOne($file);
  26. var_dump($res);exit();
  27. }
  28. }