| 1234567891011121314151617181920212223242526272829 | <?phpnamespace app\common\controller;use app\BaseController;use app\common\middleware\Auth;use app\common\api\BatchApi;/** * Description of Batch * * @author sgq */class Batch extends BaseController {    protected $middleware = [Auth::class];    public function checkBatchValid() {        $user = session("user");        return json(BatchApi::checkBatchValid($this->request->param(), $user["type"]));    }    public function listBatchByType() {        $projectType = $this->request["type"];        $talentType = $this->request["source"];        return json(BatchApi::getValidBatchs($projectType, $talentType));    }}
 |