rkljw 1 месяц назад
Родитель
Сommit
5af03a3684

+ 103 - 9
app/Controller/NewsController.php

@@ -152,11 +152,11 @@ class NewsController extends AbstractController
         $requireData['pid'] = isset($requireData['pid_arr'])?end($requireData['pid_arr']):'';
         $requireData['pid_arr'] = isset($requireData['pid_arr'])?json_encode($requireData['pid_arr']):'';
 
-        $requireData['city_id'] = isset($requireData['city_arr_id'])?end($requireData['city_arr_id']):'';
-        $requireData['city_arr_id'] = isset($requireData['city_arr_id'])?json_encode($requireData['city_arr_id']):'';
+        // $requireData['city_id'] = isset($requireData['city_arr_id'])?end($requireData['city_arr_id']):'';
+        // $requireData['city_arr_id'] = isset($requireData['city_arr_id'])?json_encode($requireData['city_arr_id']):'';
 
-        $requireData['department_id'] = isset($requireData['department_arr_id'])?end($requireData['department_arr_id']):'';
-        $requireData['department_arr_id'] = isset($requireData['department_arr_id'])?json_encode($requireData['department_arr_id']):'';
+        // $requireData['department_id'] = isset($requireData['department_arr_id'])?end($requireData['department_arr_id']):'';
+        // $requireData['department_arr_id'] = isset($requireData['department_arr_id'])?json_encode($requireData['department_arr_id']):'';
 
         $result = $this->newsServiceClient->addCategory($requireData);
         return $result ? Result::success($result['data']) : Result::error($result['message']);
@@ -193,11 +193,11 @@ class NewsController extends AbstractController
         $requireData['pid'] = isset($requireData['pid_arr'])?end($requireData['pid_arr']):'';
         $requireData['pid_arr'] = isset($requireData['pid_arr'])?json_encode($requireData['pid_arr']):'';
 
-        $requireData['city_id'] = isset($requireData['city_arr_id'])?end($requireData['city_arr_id']):'';
-        $requireData['city_arr_id'] = isset($requireData['city_arr_id'])?json_encode($requireData['city_arr_id']):'';
+        // $requireData['city_id'] = isset($requireData['city_arr_id'])?end($requireData['city_arr_id']):'';
+        // $requireData['city_arr_id'] = isset($requireData['city_arr_id'])?json_encode($requireData['city_arr_id']):'';
 
-        $requireData['department_id'] = isset($requireData['department_arr_id'])?end($requireData['department_arr_id']):'';
-        $requireData['department_arr_id'] = isset($requireData['department_arr_id'])?json_encode($requireData['department_arr_id']):'';
+        // $requireData['department_id'] = isset($requireData['department_arr_id'])?end($requireData['department_arr_id']):'';
+        // $requireData['department_arr_id'] = isset($requireData['department_arr_id'])?json_encode($requireData['department_arr_id']):'';
 
         $result = $this->newsServiceClient->updateCategory($requireData);
         return $result['code']==200? Result::success($result['data']) : Result::error($result['message']);
@@ -947,5 +947,99 @@ class NewsController extends AbstractController
         $result = $this->newsServiceClient->getCompanyNature($requireData);
         return $result['code']==200? Result::success($result['data']) : Result::error($result['message']);   
     }
-}
 
+
+
+    //20250226  产品列表
+    //20250306  求职
+     public function getJobHuntingList(){
+         $requireData = $this->request->all();
+         $validator = $this->validationFactory->make($requireData,
+             [
+                 'page'=> 'required',
+                 'page_size'=> 'required',
+             ],
+             [
+                 'page.required' => 'page不能为空',
+                 'page_size.required' => 'page_size不能为空',
+             ]
+         ); if ($validator->fails()) {
+             $errorMessage = $validator->errors()->first();
+             return Result::error($errorMessage);
+         }
+         $result = $this->newsServiceClient->getJobHuntingList($requireData);
+         return $result['code']==200 ? Result::success($result['data']) : Result::error($result['message']);
+     }
+     public function getJobHuntingInfo(){
+         $requireData = $this->request->all();
+         $validator = $this->validationFactory->make($requireData,
+             [
+                 'id'=> 'required',
+             ],
+             [
+                 'id.required' => 'id不能为空',
+             ]
+         ); if ($validator->fails()) {
+             $errorMessage = $validator->errors()->first();
+             return Result::error($errorMessage);
+         }
+         $result = $this->newsServiceClient->getJobHuntingInfo($requireData);
+         return $result['code']==200 ? Result::success($result['data']) : Result::error($result['message']);
+     }
+     public function updateJobHunting(){
+         $requireData = $this->request->all();
+         $validator = $this->validationFactory->make($requireData,  
+             [
+                 'id'=> 'required',
+                 'title'=> 'required',
+                 'content'=> 'required',
+             ],
+             [
+                 'id.required' => 'id不能为空',
+                 'title.required' => '标题不能为空',
+                 'content.required' => '内容不能为空',
+             ]
+         ); if ($validator->fails()) {
+             $errorMessage = $validator->errors()->first();
+             return Result::error($errorMessage);
+         }
+         $result = $this->newsServiceClient->updateJobHunting($requireData);
+         return $result['code']==200 ? Result::success($result['data']) : Result::error($result['message']);
+     }
+     public function addJobHunting(){
+         $requireData = $this->request->all();
+         $validator = $this->validationFactory->make($requireData,
+             [
+                 'title'=> 'required',
+                 'content'=> 'required',
+             ],
+             [
+                 'title.required' => '标题不能为空',
+                 'content.required' => '内容不能为空',
+             ]
+         ); if ($validator->fails()) {
+             $errorMessage = $validator->errors()->first();
+             return Result::error($errorMessage);
+         }
+         $result = $this->newsServiceClient->addJobHunting($requireData);
+         return $result['code']==200 ? Result::success($result['data']) : Result::error($result['message']);
+     }
+     public function delJobHunting(){
+         $requireData = $this->request->all();
+         $validator = $this->validationFactory->make($requireData,
+             [
+                 'id'=> 'required',
+             ],
+             [
+                 'id.required' => 'id不能为空',
+             ]
+         ); if ($validator->fails()) {
+             $errorMessage = $validator->errors()->first();
+             return Result::error($errorMessage);
+         }
+         $result = $this->newsServiceClient->delJobHunting($requireData);
+         return $result['code']==200 ? Result::success($result['data']) : Result::error($result['message']);
+         }
+
+    //20250306  求职
+}

+ 21 - 1
app/Controller/WebsiteController.php

@@ -552,9 +552,11 @@ class WebsiteController extends AbstractController
             $requireData,
             [
                 'website_id' => 'required',
+                'category_arr_id' => 'required',
             ],
             [
                 'website_id.required' => '网站ID不能为空',
+                'category_arr_id.required' => '栏目id不能为空',
             ]
         );
         if ($validator->fails()){
@@ -696,7 +698,11 @@ class WebsiteController extends AbstractController
             return Result::error($errorMessage);
         }
         $result = $this->websiteServiceClient->getWebsiteAllCategory($requireData);
-        return $result['code']==200?Result::success($result['data']):Result::error($result['message']);
+        if($result['code']==200){
+            return Result::success(PublicData::buildCategoryTree($result['data']));
+        }else{
+            return Result::error($result['message']);
+        }
     }
     /**
      * 管理后台首页统计
@@ -1829,4 +1835,18 @@ class WebsiteController extends AbstractController
         $result = $this->websiteServiceClient->getFooterContentInfo($requireData);
         return $result['code']==200?Result::success($result['data']):Result::error($result['message']);
     }
+    /**
+     * 查看所有的栏目
+     * @return array
+     */
+      public function getAllCategory()
+      {
+          $requireData = $this->request->all();
+          $result = $this->websiteServiceClient->getAllCategory($requireData);
+          if($result['code']==200){
+              return Result::success(PublicData::buildMenuTree($result['data']));
+          }
+          return Result::error($result['message']);
+      }
+
 }

+ 19 - 0
app/JsonRpc/NewsService.php

@@ -168,6 +168,25 @@ class NewsService extends AbstractServiceClient implements NewsServiceInterface
     public function updateGood(array $data){
         return $this->__request(__FUNCTION__, $data);
     }
+    //20250226  产品列表
+    //20250306  求职信息    
+    public function getJobHuntingList(array $data){
+        return $this->__request(__FUNCTION__, $data);
+    }
+    public function getJobHuntingInfo(array $data){
+        return $this->__request(__FUNCTION__, $data);
+   
+    }
+    public function addJobHunting(array $data){
+        return $this->__request(__FUNCTION__, $data);
+    }
+    public function delJobHunting(array $data){
+        return $this->__request(__FUNCTION__, $data);
+    }
+    public function updateJobHunting(array $data){
+        return $this->__request(__FUNCTION__, $data);
+    }
+    //20250306  求职信息    
 
      //20250226  产品列表
     /**

+ 7 - 0
app/JsonRpc/NewsServiceInterface.php

@@ -131,6 +131,13 @@ interface NewsServiceInterface
     public function updateGood(array $data);
     public function delGood(array $data);
     //20250226  产品列表
+    //20250306  求职信息
+    public function getJobHuntingList(array $data);
+    public function getJobHuntingInfo(array $data);
+    public function addJobHunting(array $data);
+    public function updateJobHunting(array $data);
+    public function delJobHunting(array $data);
+    //20250306  求职信息
 
      /**
      * @param array $data

+ 10 - 0
app/JsonRpc/WebsiteService.php

@@ -685,4 +685,14 @@ class WebsiteService extends AbstractServiceClient implements WebsiteServiceInte
         return $this->__request(__FUNCTION__, $data);
     }
 
+    /**
+     * 获取所有栏目
+     * @param array $data
+     * @return array|mixed
+     */
+    public function getAllCategory(array $data)
+    {
+        return $this->__request(__FUNCTION__, $data);
+    }
+
 }

+ 6 - 0
app/JsonRpc/WebsiteServiceInterface.php

@@ -435,5 +435,11 @@ interface WebsiteServiceInterface
     public function getWebsiteNavPool(array $data);
     public function getWebsiteNavPoolSite(array $data);
 
+    /**
+     * @param array $data
+     * @return mixed
+     */
+    public function getAllCategory(array $data);
+
 }
 

+ 214 - 193
app/Tools/PublicData.php

@@ -1,193 +1,214 @@
-<?php
-namespace App\Tools;
-use Hyperf\Snowflake\IdGeneratorInterface;
-use Hyperf\Context\ApplicationContext;
-
-class PublicData
-{
-    /**
-     * ceshi-todo
-     * 递归查询
-     * @param $menuItems
-     * @param $parentId
-     * @return array
-     */
-    public static  function buildMenuTree($menuItems, $parentId = 0) {
-        $tree = [];
-        foreach ($menuItems as $item) {
-            if ($item['pid'] == $parentId) {
-                // 找到子菜单
-                $children = self::buildMenuTree($menuItems, $item['id']);
-                // 如果子菜单存在,则添加到当前菜单的children中
-                if ($children) {
-                    $item['children'] = $children;
-                }
-                // 将当前菜单添加到树中
-                $tree[] = $item;
-            }
-        }
-        return $tree;
-    }
-
-    /**
-     * 把数组里面的某一个字段作为key
-     * @param $array
-     * @param $column
-     * @return array
-     */
-    public static  function arrayColumnAsKey($array, $column) {
-        $result = [];
-        foreach ($array as $item) {
-            if (isset($item[$column])) {
-                $result[$item[$column]] = $item;
-            } else {
-                // 如果字段不存在,你可以选择跳过、使用默认值或抛出异常
-                // 这里我们选择跳过
-                continue;
-            }
-        }
-        return $result;
-    }
-    /**
-     * 计算两个时间差的天数
-     * @param $sTime
-     * @param $eTime
-     * @return float
-     */
-    public static function residueDay($sTime,$eTime)
-    {
-        $startTime = strtotime($sTime);
-        $endTime = strtotime($eTime);
-        $diffDays = floor(($endTime - $startTime) / (60 * 60 * 24));
-        return $diffDays;
-    }
-
-    public static function uuid()
-    {
-        $container = ApplicationContext::getContainer();
-        $generator = $container->get(IdGeneratorInterface::class);
-
-        return $generator->generate();
-    }
-
-    public static function http_get($url)
-    {
-        $oCurl = curl_init();
-        if (stripos($url, "https://") !== false) {
-            curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, false);
-            curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, false);
-            curl_setopt($oCurl, CURLOPT_SSLVERSION, 1); //CURL_SSLVERSION_TLSv1
-        }
-        curl_setopt($oCurl, CURLOPT_URL, $url);
-        curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1);
-        $sContent = curl_exec($oCurl);
-        $aStatus = curl_getinfo($oCurl);
-        curl_close($oCurl);
-        if (intval($aStatus["http_code"]) == 200) {
-            return $sContent;
-        } else {
-            return false;
-        }
-    }
-
-    /**
-     * POST 请求
-     * @param string $url
-     * @param array $param
-     * @param boolean $post_file 是否文件上传
-     * @return string content
-     */
-    public static function http_post($url, $param, $post_file = false)
-    {
-        $oCurl = curl_init();
-        if (stripos($url, "https://") !== false) {
-            curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, false);
-            curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, false);
-            curl_setopt($oCurl, CURLOPT_SSLVERSION, 1); //CURL_SSLVERSION_TLSv1
-        }
-        if (is_string($param) || $post_file) {
-            $strPOST = $param;
-        } else {
-            $aPOST = [];
-            foreach ($param as $key => $val) {
-                $aPOST[] = $key . "=" . urlencode($val);
-            }
-            $strPOST = join("&", $aPOST);
-        }
-        curl_setopt($oCurl, CURLOPT_URL, $url);
-        curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1);
-        curl_setopt($oCurl, CURLOPT_POST, true);
-        curl_setopt($oCurl, CURLOPT_POSTFIELDS, $strPOST);
-        $sContent = curl_exec($oCurl);
-        $aStatus = curl_getinfo($oCurl);
-        curl_close($oCurl);
-        if (intval($aStatus["http_code"]) == 200) {
-            return $sContent;
-        } else {
-            return false;
-        }
-    }
-
-    /**
-     * POST 请求
-     * @param string $url
-     * @param array $param
-     * @param boolean $post_file 是否文件上传
-     * @return string content
-     */
-    public static function http_post_zp($url, $data, $options = [])
-    {
-
-        // 初始化CURL会话
-        $ch = curl_init($url);
-        var_dump("参数:",$data);
-        // 设置CURL选项
-        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // 将curl_exec()获取的信息以文件流的形式返回,而不是直接输出。
-        curl_setopt($ch, CURLOPT_HEADER, false); // 将curl_exec()获取的信息以文件流的形式返回,而不是直接输出。
-        curl_setopt($ch, CURLOPT_POST, true); // 发送一个常规的POST请求。
-        curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); // 要传递的POST数据,这里使用http_build_query将数组转换为URL编码的查询字符串。
-        $headers = [
-            'Authorization: Bearer be1856920c54ac537b530d69bc2eda73.gOO2BMq9NXavzEMq',
-            'Content-Type: application/json',
-//            'Custom-Header: customHeaderValue'
-        ];
-        curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
-        // 如果有额外的CURL选项,则合并它们
-        if (!empty($options)) {
-            curl_setopt_array($ch, $options);
-        }
-
-        // 执行CURL会话并获取响应
-        $response = curl_exec($ch);
-        // 检查是否有CURL错误
-        if (curl_errno($ch)) {
-            $error_msg = curl_error($ch);
-            curl_close($ch);
-            throw new Exception("CURL Error: $error_msg");
-        }
-
-        // 获取HTTP状态码
-        $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
-
-        // 关闭CURL会话
-        curl_close($ch);
-
-        // 返回一个包含响应和HTTP状态码的数组
-        $responseBody = $response;
-        $headerEnd = strpos($response, "\r\n\r\n");
-
-        if ($headerEnd !== false) {
-            // 去除响应头,只保留响应体
-            $responseBody = substr($response, $headerEnd + 4); // +4 是因为 "\r\n\r\n" 有4个字符
-//            echo $responseBody; // 输出:This is the response body.
-        } else {
-            // 如果没有找到空行,可能响应格式不正确或没有响应头
-//            echo "No headers found in response.";
-        }
-        return [
-            'response' => $responseBody,
-            'http_code' => $http_code
-        ];
-    }
-
-}
+<?php
+namespace App\Tools;
+use Hyperf\Snowflake\IdGeneratorInterface;
+use Hyperf\Context\ApplicationContext;
+
+class PublicData
+{
+    /**
+     * ceshi-todo
+     * 递归查询
+     * @param $menuItems
+     * @param $parentId
+     * @return array
+     */
+    public static function buildMenuTree($menuItems, $parentId = 0)
+    {
+        $tree = [];
+        foreach ($menuItems as $item) {
+            if ($item['pid'] == $parentId) {
+                // 找到子菜单
+                $children = self::buildMenuTree($menuItems, $item['id']);
+                // 如果子菜单存在,则添加到当前菜单的children中
+                if ($children) {
+                    $item['children'] = $children;
+                }
+                // 将当前菜单添加到树中
+                $tree[] = $item;
+            }
+        }
+        return $tree;
+    }
+
+    public static function buildCategoryTree($menuItems, $parentId = 0)
+    {
+        $tree = [];
+        foreach ($menuItems as $item) {
+            if ($item['pid'] == $parentId) {
+                // 找到子菜单
+                $children = self::buildMenuTree($menuItems, $item['category_id']);
+                // 如果子菜单存在,则添加到当前菜单的children中
+                if ($children) {
+                    $item['children'] = $children;
+                }
+                // 将当前菜单添加到树中
+                $tree[] = $item;
+            }
+        }
+        return $tree;
+    }
+
+    /**
+     * 把数组里面的某一个字段作为key
+     * @param $array
+     * @param $column
+     * @return array
+     */
+    public static function arrayColumnAsKey($array, $column)
+    {
+        $result = [];
+        foreach ($array as $item) {
+            if (isset($item[$column])) {
+                $result[$item[$column]] = $item;
+            } else {
+                // 如果字段不存在,你可以选择跳过、使用默认值或抛出异常
+                // 这里我们选择跳过
+                continue;
+            }
+        }
+        return $result;
+    }
+
+    /**
+     * 计算两个时间差的天数
+     * @param $sTime
+     * @param $eTime
+     * @return float
+     */
+    public static function residueDay($sTime, $eTime)
+    {
+        $startTime = strtotime($sTime);
+        $endTime = strtotime($eTime);
+        $diffDays = floor(($endTime - $startTime) / (60 * 60 * 24));
+        return $diffDays;
+    }
+
+    public static function uuid()
+    {
+        $container = ApplicationContext::getContainer();
+        $generator = $container->get(IdGeneratorInterface::class);
+
+        return $generator->generate();
+    }
+
+    public static function http_get($url)
+    {
+        $oCurl = curl_init();
+        if (stripos($url, "https://") !== false) {
+            curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, false);
+            curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, false);
+            curl_setopt($oCurl, CURLOPT_SSLVERSION, 1); //CURL_SSLVERSION_TLSv1
+        }
+        curl_setopt($oCurl, CURLOPT_URL, $url);
+        curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1);
+        $sContent = curl_exec($oCurl);
+        $aStatus = curl_getinfo($oCurl);
+        curl_close($oCurl);
+        if (intval($aStatus["http_code"]) == 200) {
+            return $sContent;
+        } else {
+            return false;
+        }
+    }
+
+    /**
+     * POST 请求
+     * @param string $url
+     * @param array $param
+     * @param boolean $post_file 是否文件上传
+     * @return string content
+     */
+    public static function http_post($url, $param, $post_file = false)
+    {
+        $oCurl = curl_init();
+        if (stripos($url, "https://") !== false) {
+            curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, false);
+            curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, false);
+            curl_setopt($oCurl, CURLOPT_SSLVERSION, 1); //CURL_SSLVERSION_TLSv1
+        }
+        if (is_string($param) || $post_file) {
+            $strPOST = $param;
+        } else {
+            $aPOST = [];
+            foreach ($param as $key => $val) {
+                $aPOST[] = $key . "=" . urlencode($val);
+            }
+            $strPOST = join("&", $aPOST);
+        }
+        curl_setopt($oCurl, CURLOPT_URL, $url);
+        curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1);
+        curl_setopt($oCurl, CURLOPT_POST, true);
+        curl_setopt($oCurl, CURLOPT_POSTFIELDS, $strPOST);
+        $sContent = curl_exec($oCurl);
+        $aStatus = curl_getinfo($oCurl);
+        curl_close($oCurl);
+        if (intval($aStatus["http_code"]) == 200) {
+            return $sContent;
+        } else {
+            return false;
+        }
+    }
+
+    /**
+     * POST 请求
+     * @param string $url
+     * @param array $param
+     * @param boolean $post_file 是否文件上传
+     * @return string content
+     */
+    public static function http_post_zp($url, $data, $options = [])
+    {
+
+        // 初始化CURL会话
+        $ch = curl_init($url);
+        var_dump("参数:", $data);
+        // 设置CURL选项
+        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // 将curl_exec()获取的信息以文件流的形式返回,而不是直接输出。
+        curl_setopt($ch, CURLOPT_HEADER, false); // 将curl_exec()获取的信息以文件流的形式返回,而不是直接输出。
+        curl_setopt($ch, CURLOPT_POST, true); // 发送一个常规的POST请求。
+        curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); // 要传递的POST数据,这里使用http_build_query将数组转换为URL编码的查询字符串。
+        $headers = [
+            'Authorization: Bearer be1856920c54ac537b530d69bc2eda73.gOO2BMq9NXavzEMq',
+            'Content-Type: application/json',
+//            'Custom-Header: customHeaderValue'
+        ];
+        curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
+        // 如果有额外的CURL选项,则合并它们
+        if (!empty($options)) {
+            curl_setopt_array($ch, $options);
+        }
+
+        // 执行CURL会话并获取响应
+        $response = curl_exec($ch);
+        // 检查是否有CURL错误
+        if (curl_errno($ch)) {
+            $error_msg = curl_error($ch);
+            curl_close($ch);
+            throw new Exception("CURL Error: $error_msg");
+        }
+
+        // 获取HTTP状态码
+        $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
+
+        // 关闭CURL会话
+        curl_close($ch);
+
+        // 返回一个包含响应和HTTP状态码的数组
+        $responseBody = $response;
+        $headerEnd = strpos($response, "\r\n\r\n");
+
+        if ($headerEnd !== false) {
+            // 去除响应头,只保留响应体
+            $responseBody = substr($response, $headerEnd + 4); // +4 是因为 "\r\n\r\n" 有4个字符
+//            echo $responseBody; // 输出:This is the response body.
+        } else {
+            // 如果没有找到空行,可能响应格式不正确或没有响应头
+//            echo "No headers found in response.";
+        }
+        return [
+            'response' => $responseBody,
+            'http_code' => $http_code
+        ];
+    }
+}
+

+ 11 - 0
config/api/news.php

@@ -49,6 +49,7 @@ Router::addGroup(
         Router::post('/addGood', [NewsController::class, 'addGood']);
         Router::post('/updateGood', [NewsController::class, 'updateGood']);
         Router::post('/delGood', [NewsController::class, 'delGood']);
+
         //20250226  产品列表         
 
 
@@ -78,6 +79,16 @@ Router::addGroup(
          //后端-获取调查问卷详情
          Router::post('/getSurveyInfo', [NewsController::class, 'getSurveyInfo']);
 
+
+        //20250226  产品列表
+        //20250306  求职信息
+        Router::post('/getJobHuntingList', [NewsController::class, 'getJobHuntingList']);
+        Router::post('/getJobHuntingInfo', [NewsController::class, 'getJobHuntingInfo']);
+        Router::post('/addJobHunting', [NewsController::class, 'addJobHunting']);
+        Router::post('/updateJobHunting', [NewsController::class, 'updateJobHunting']);
+        Router::post('/delJobHunting', [NewsController::class, 'delJobHunting']);
+        //20250306  求职信息
+
     },
     ['middleware' => [FooMiddleware::class]]
 );

+ 2 - 0
config/api/website.php

@@ -123,6 +123,8 @@ Router::addGroup(
         Router::post('/getWebsiteNavPool', [WebsiteController::class, 'getWebsiteNavPool']);
         // 20250307 根据网站标识获和导航获取站点
         Router::post('/getWebsiteNavPoolSite', [WebsiteController::class, 'getWebsiteNavPoolSite']);
+        //获取所有的栏目
+        Router::get('/getAllCategory', [WebsiteController::class, 'getAllCategory']);
 
     },
     ['middleware' => [FooMiddleware::class]]