123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace app\enterprise\controller;
- use app\enterprise\common\EnterpriseController;
- use app\enterprise\api\TalentApi;
- /**
- * Description of Talent
- *
- * @author sgq
- */
- class Talent extends EnterpriseController {
- public function index() {
- return view();
- }
- public function list() {
- $res = TalentApi::getList($this->request);
- return json($res);
- }
- public function add() {
- $enterprise_info = \app\admin\model\Enterprise::find($this->user["uid"]);
- return view("", ["year" => date("Y"), "enterprise" => $enterprise_info]);
- }
- public function addTalentFile() {
- $file = $this->request->file("fileUrl");
- $upload = new \app\common\api\UploadApi();
- $res = $upload->uploadOne($file);
- var_dump($res);exit();
- }
- }
|