pub.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2018-2020 rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Author: TABLE ME
  8. // +----------------------------------------------------------------------
  9. // | Date: 2020-09-05 09:21
  10. // +----------------------------------------------------------------------
  11. use app\api\middleware\AllowOriginMiddleware;
  12. use app\api\middleware\SeretKeyMiddleware;
  13. use think\facade\Route;
  14. Route::group('pub', function () {
  15. //获取皮肤模板列表
  16. Route::rule('getShowTemplateList','Pub/getShowTemplateList');
  17. //获取模板详情
  18. Route::rule('getShowTemplateItem','Pub/getShowTemplateItem');
  19. //获取服务类型列表
  20. Route::rule('getServiceTypeList','Pub/getServiceTypeList');
  21. //获取收费时长类型
  22. Route::rule('getServiceTimeTypeList','Pub/getServiceTimeTypeList');
  23. //获取轮播图列表
  24. Route::rule('getBannerList','Pub/getBannerList');
  25. //获取支付类型
  26. Route::rule('getPayTypeData','Pub/getPayTypeData');
  27. //获取用户服务类型
  28. Route::rule('getUserWorkTypeList','Pub/getUserWorkTypeList');
  29. //获取用户服务标签列表
  30. Route::rule('getServiceLabelList','Pub/getServiceLabelList');
  31. //获取其他用户名片详情
  32. Route::rule('getCommonUserCardInfo','Pub/getCommonUserCardInfo');
  33. //获取名片浏览量排行榜
  34. Route::rule('getCardLookCountRank', 'Pub/getCardLookCountRank');
  35. //获取分享信息
  36. Route::rule('getShareInfo','Pub/getShareInfo');
  37. //获取精选列表
  38. Route::rule('getWorkerList','Pub/getWorkerList');
  39. //获取文章详情
  40. Route::rule('getArtDetail','pub/getArtDetail');
  41. //bug提交
  42. Route::rule('appBugSub', 'Pub/appBugSub');
  43. //接口测试
  44. Route::rule('appTest', 'Pub/appTest');
  45. })->middleware([
  46. AllowOriginMiddleware::class,
  47. SeretKeyMiddleware::class
  48. ]);