add(); } /** * @param EmployeeRequest $request * @return array */ #[RequestMapping(path: "edit", methods: "POST")] #[Scene(scene: "edit")] public function edit(EmployeeRequest $request): array { return (new EmployeeService)->edit(); } /** * @param EmployeeRequest $request * @return array */ #[RequestMapping(path: "del", methods: "GET")] #[Scene(scene: "del")] public function delete(EmployeeRequest $request): array { return (new EmployeeService)->delete(); } /** * @param EmployeeRequest $request * @return array */ #[RequestMapping(path: "list", methods: "GET")] #[Scene(scene: "list")] public function list(EmployeeRequest $request): array { return (new EmployeeService)->handle(); } /** * @param EmployeeRequest $request * @return array */ #[RequestMapping(path: "info", methods: "GET")] #[Scene(scene: "info")] public function info(EmployeeRequest $request): array { return (new EmployeeService)->get(); } /** * @param EmployeeRequest $request * @return array * @throws Exception */ #[RequestMapping(path: "reset_password", methods: "GET")] #[Scene(scene: "reset_password")] public function resetPassword(EmployeeRequest $request): array { return (new EmployeeService)->resetPassword(); } }