merchant.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. use think\facade\Route;
  12. /**
  13. * 运费模板 相关路由
  14. */
  15. Route::group('merchant', function () {
  16. /** 门店 */
  17. Route::group(function () {
  18. //门店设置详情
  19. Route::get('store', 'v1.merchant.SystemStore/index')->option(['real_name' => '门店列表']);
  20. //门店列表数量
  21. Route::get('store/get_header', 'v1.merchant.SystemStore/get_header')->option(['real_name' => '门店列表头部数据']);
  22. //门店列表数量
  23. Route::put('store/set_show/:id/:is_show', 'v1.merchant.SystemStore/set_show')->option(['real_name' => '门店上下架']);
  24. //门店列表数量
  25. Route::delete('store/del/:id', 'v1.merchant.SystemStore/delete')->option(['real_name' => '门店删除']);
  26. //位置选择
  27. Route::get('store/address', 'v1.merchant.SystemStore/select_address')->option(['real_name' => '门店位置选择']);
  28. //门店设置详情
  29. Route::get('store/get_info/:id', 'v1.merchant.SystemStore/get_info')->option(['real_name' => '门店详情']);
  30. //保存修改门店信息
  31. Route::post('store/:id', 'v1.merchant.SystemStore/save')->option(['real_name' => '保存修改门店信息']);
  32. })->option(['parent' => 'merchant', 'cate_name' => '门店']);
  33. /** 店员 */
  34. Route::group(function () {
  35. //获取店员列表
  36. Route::get('store_staff', 'v1.merchant.SystemStoreStaff/index')->option(['real_name' => '获取门店店员列表']);
  37. //添加店员表单
  38. Route::get('store_staff/create', 'v1.merchant.SystemStoreStaff/create')->option(['real_name' => '添加门店店员表单']);
  39. //门店搜索列表
  40. Route::get('store_list', 'v1.merchant.SystemStoreStaff/store_list')->option(['real_name' => '门店搜索列表']);
  41. //修改店员状态
  42. Route::put('store_staff/set_show/:id/:is_show', 'v1.merchant.SystemStoreStaff/set_show')->option(['real_name' => '修改店员状态']);
  43. //修改店员表单
  44. Route::get('store_staff/:id/edit', 'v1.merchant.SystemStoreStaff/edit')->option(['real_name' => '修改店员表单']);
  45. //保存店员
  46. Route::post('store_staff/save/:id', 'v1.merchant.SystemStoreStaff/save')->option(['real_name' => '保存店员']);
  47. //删除店员
  48. Route::delete('store_staff/del/:id', 'v1.merchant.SystemStoreStaff/delete')->option(['real_name' => '删除店员']);
  49. })->option(['parent' => 'merchant', 'cate_name' => '店员']);
  50. /** 核销订单 */
  51. Route::group(function () {
  52. //获取核销订单列表
  53. Route::get('verify_order', 'v1.merchant.SystemVerifyOrder/list')->option(['real_name' => '获取核销订单列表']);
  54. //获取核销订单头部
  55. Route::get('verify_badge', 'v1.merchant.SystemVerifyOrder/getVerifyBadge')->option(['real_name' => '获取核销订单头部']);
  56. //获取核销订单头部
  57. Route::get('verify/spread_info/:uid', 'v1.merchant.SystemVerifyOrder/order_spread_user')->option(['real_name' => '核销订单推荐人信息']);
  58. })->option(['parent' => 'merchant', 'cate_name' => '核销订单']);
  59. })->middleware([
  60. \app\http\middleware\AllowOriginMiddleware::class,
  61. \app\adminapi\middleware\AdminAuthTokenMiddleware::class,
  62. \app\adminapi\middleware\AdminCheckRoleMiddleware::class,
  63. \app\adminapi\middleware\AdminLogMiddleware::class
  64. ])->option(['mark' => 'merchant', 'mark_name' => '门店核销']);