news.php 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. declare (strict_types = 1);
  3. use App\Controller\NewsController;
  4. use Hyperf\HttpServer\Router\Router;
  5. use App\Middleware\Auth\FooMiddleware;
  6. use FastRoute\Route;
  7. Router::addGroup(
  8. '/news', function () {
  9. //获取导航池列表
  10. Router::get('/getCategoryList', [NewsController::class, 'getCategoryList']);
  11. //后台获取 我的导航池
  12. Router::get('/myCategoryList', [NewsController::class, 'myCategoryList']);
  13. //导航池 筛选 搜索
  14. Router::get('/categoryList', [NewsController::class, 'categoryList']);
  15. //添加导航池
  16. Router::post('/addCategory', [NewsController::class, 'addCategory']);
  17. //更新导航池
  18. Router::post('/updateCategory', [NewsController::class, 'updateCategory']);
  19. //删除导航池
  20. Router::post('/delCategory', [NewsController::class, 'delCategory']);
  21. //获取资讯列表
  22. Router::get('/getArticleList', [NewsController::class, 'getArticleList']);
  23. //添加资讯
  24. Router::post('/addArticle', [NewsController::class, 'addArticle']);
  25. //修改资讯
  26. Router::post('/updateArticle', [NewsController::class, 'updateArticle']);
  27. //删除资讯
  28. Router::post('/delArticle', [NewsController::class, 'delArticle']);
  29. //更新资讯状态
  30. Router::post('/upArticleStatus', [NewsController::class, 'upArticleStatus']);
  31. //查看资讯
  32. Router::get('/getArticleInfo', [NewsController::class, 'getArticleInfo']);
  33. // 前端-搜索资讯
  34. Router::get('/selectWebsiteCategory', [NewsController::class, 'selectWebsiteArticle']);
  35. //获取导航池信息
  36. Router::get('/getCategoryInfo', [NewsController::class, 'getCategoryInfo']);
  37. //前端-获取资讯列表
  38. Router::get('/getWebsiteArticleList', [NewsController::class, 'getWebsiteArticleList']);
  39. //检测导航池名称是否存在
  40. Router::post('/checkCategoryName', [NewsController::class, 'checkCategoryName']);
  41. //20250226 产品列表
  42. Router::post('/getGoodList', [NewsController::class, 'getGoodList']);
  43. Router::post('/getGoodInfo', [NewsController::class, 'getGoodInfo']);
  44. Router::post('/addGood', [NewsController::class, 'addGood']);
  45. Router::post('/updateGood', [NewsController::class, 'updateGood']);
  46. Router::post('/delGood', [NewsController::class, 'delGood']);
  47. //20250226 产品列表
  48. // 20250306 招聘
  49. Router::get('/getJobRecruitingList', [NewsController::class, 'getJobRecruitingList']);
  50. Router::get('/getJobRecruitingInfo', [NewsController::class, 'getJobRecruitingInfo']);
  51. Router::post('/addJobRecruiting', [NewsController::class, 'addJobRecruiting']);
  52. Router::post('/upJobRecruiting', [NewsController::class, 'upJobRecruiting']);
  53. Router::post('/delJobRecruiting', [NewsController::class, 'delJobRecruiting']);
  54. // 菜单
  55. Router::get('/getJobRecruitingArea', [NewsController::class, 'getJobRecruitingArea']);
  56. Router::get('/getIndustry', [NewsController::class, 'getIndustry']);
  57. Router::get('/getPositionList', [NewsController::class, 'getPositionList']);
  58. Router::get('/getJobNature', [NewsController::class, 'getJobNature']);
  59. Router::get('/getExperience', [NewsController::class, 'getExperience']);
  60. Router::get('/getEducation', [NewsController::class, 'getEducation']);
  61. Router::get('/getSalary', [NewsController::class, 'getSalary']);
  62. Router::get('/getLanguage', [NewsController::class, 'getLanguage']);
  63. Router::get('/getLevel', [NewsController::class, 'getLevel']);
  64. Router::get('/getCompanySize', [NewsController::class, 'getCompanySize']);
  65. Router::get('/getCompanyNature', [NewsController::class, 'getCompanyNature']);
  66. // 20250306 招聘
  67. //后端-获取调查问卷列表
  68. Router::post('/getSurveyList', [NewsController::class, 'getSurveyList']);
  69. //后端-获取调查问卷详情
  70. Router::post('/getSurveyInfo', [NewsController::class, 'getSurveyInfo']);
  71. //20250226 产品列表
  72. //20250306 求职信息
  73. Router::post('/getJobHuntingList', [NewsController::class, 'getJobHuntingList']);
  74. Router::post('/getJobHuntingInfo', [NewsController::class, 'getJobHuntingInfo']);
  75. Router::post('/addJobHunting', [NewsController::class, 'addJobHunting']);
  76. Router::post('/updateJobHunting', [NewsController::class, 'updateJobHunting']);
  77. Router::post('/delJobHunting', [NewsController::class, 'delJobHunting']);
  78. Router::post('/getJobHuntingData', [NewsController::class, 'getJobHuntingData']);
  79. //20250306 求职信息
  80. },
  81. ['middleware' => [FooMiddleware::class]]
  82. );