123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <?php
- // +----------------------------------------------------------------------
- // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
- // +----------------------------------------------------------------------
- // | Author: CRMEB Team <admin@crmeb.com>
- // +----------------------------------------------------------------------
- use app\common\middleware\AllowOriginMiddleware;
- use app\common\middleware\LogMiddleware;
- use app\common\middleware\MerchantAuthMiddleware;
- use app\common\middleware\MerchantTokenMiddleware;
- use think\facade\Route;
- use app\common\middleware\MerchantCheckBaseInfoMiddleware;
- Route::group(function () {
- //快递公司
- Route::group('expr',function(){
- Route::get('/lst','/lst')->name('merchantServeExportLst')->option([
- '_alias' => '列表',
- ]);
- Route::get('/options','/options')->option([
- '_alias' => '列表',
- '_auth' => false,
- ]);
- Route::get('/partner/:id/form','/partnerForm')->name('merchantExpressPratnerUpdateForm')->option([
- '_alias' => '月结账号编辑表单',
- '_auth' => false,
- '_form' => 'merchantExpressPratnerUpdate',
- ]);
- Route::post('/partner/:id','/partner')->name('merchantExpressPratnerUpdate')->option([
- '_alias' => '月结账号编辑',
- ]);
- })->prefix('admin.store.Express')->option([
- '_path' => '/config/freight/express',
- '_auth' => true,
- ]);
- //同城配送
- Route::group('delivery/station', function () {
- //获取分类
- Route::get('business','/getBusiness')->name('merchantStoreDeliveryBusiness')->option([
- '_alias' => '获取分类',
- ]);
- //添加
- Route::post('create','/create')->name('merchantStoreDeliveryCreate')->option([
- '_alias' => '添加',
- ]);
- //编辑
- Route::post('update/:id','/update')->name('merchantStoreDeliveryUpdate')->option([
- '_alias' => '编辑',
- ]);
- //编辑状态
- Route::post('status/:id','/switchWithStatus')->name('merchantStoreDeliveryStatus')->option([
- '_alias' => '编辑状态',
- ]);
- //列表
- Route::get('lst','/lst')->name('merchantStoreDeliveryLst')->option([
- '_alias' => '列表',
- ]);
- //详情
- Route::get('detail/:id','/detail')->name('merchantStoreDeliveryDetail')->option([
- '_alias' => '详情',
- ]);
- //删除
- Route::delete('delete/:id','/delete')->name('merchantStoreDeliveryDelete')->option([
- '_alias' => '删除',
- ]);
- //备注
- Route::get('mark/:id/form','/markForm')->name('merchantStoreDeliveryMarkForm')->option([
- '_alias' => '备注表单',
- '_auth' => false,
- '_form' => 'merchantStoreDeliveryMark',
- ]);
- Route::post('mark/:id','/mark')->name('merchantStoreDeliveryMark')->option([
- '_alias' => '备注',
- ]);
- Route::get('options','/options')->option([
- '_alias' => '列表',
- '_auth' => false,
- ]);
- Route::get('select','/select')->option([
- '_alias' => '列表',
- '_auth' => false,
- ]);
- //城市列表
- Route::get('getCity','/getCityLst')->name('merchantStoreDeliveryCityList')->option([
- '_alias' => '城市列表',
- ]);
- //充值记录
- Route::get('payLst','/payLst')->name('merchantStoreDeliveryPayLst')->option([
- '_alias' => '充值记录',
- '_path' => '/delivery/recharge_record',
- ]);
- Route::get('code','/getQrcode')->name('merchantStoreDeliveryGetQrcode')->option([
- '_alias' => '充值二维码',
- '_path' => '/delivery/recharge_record',
- '_auth' => false,
- ]);
- })->prefix('merchant.store.delivery.DeliveryStation')->option([
- '_path' => '/delivery/store_manage',
- '_auth' => true,
- ]);
- //同城配送
- Route::group('delivery/order', function () {
- //
- Route::get('lst','/lst')
- ->name('merchantStoreDeliveryOrderLst')->option([
- '_alias' => '列表',
- ]);
- //取消
- Route::get('cancel/:id/form','/cancelForm')
- ->name('merchantStoreDeliveryOrderCancelForm')->option([
- '_alias' => '取消表单',
- '_auth' => false,
- '_form' => 'merchantStoreDeliveryOrderCancel',
- ]);
- Route::post('cancel/:id','/cancel')
- ->name('merchantStoreDeliveryOrderCancel')->option([
- '_alias' => '取消',
- ]);
- //详情
- Route::get('detail/:id','/detail')
- ->name('merchantStoreDeliveryOrderDetail')->option([
- '_alias' => '详情',
- ]);
- })->prefix('merchant.store.delivery.DeliveryOrder')->option([
- '_path' => '/delivery/usage_record',
- '_auth' => true,
- ]);
- //运费模板
- Route::group('store/shipping', function () {
- Route::get('lst', '/lst')->name('merchantStoreShippingTemplateLst')->option([
- '_alias' => '列表',
- '_auth' => false,
- ]);
- Route::get('list', '/getList')->option([
- '_alias' => '列表 ',
- ]);
- Route::post('create', '/create')->name('merchantStoreShippingTemplateCreate')->option([
- '_alias' => '添加 ',
- ]);
- Route::post('update/:id', '/update')->name('merchantStoreShippingTemplateUpdate')->option([
- '_alias' => '编辑',
- ]);
- Route::get('detail/:id', '/detail')->name('merchantStoreShippingTemplateDetail')->option([
- '_alias' => '详情',
- ]);
- Route::delete('delete/:id', '/delete')->name('merchantStoreShippingTemplateDelete')->option([
- '_alias' => '删除',
- ]);
- })->prefix('merchant.store.shipping.ShippingTemplate')->option([
- '_path' => '/config/freight/shippingTemplates',
- '_auth' => true,
- ]);
- //地址信息
- Route::get('system/city/lst', 'merchant.store.shipping.City/lst')->option([
- '_alias' => '列表',
- '_auth' => false,
- ]);
- Route::get('v2/system/city/lst/:pid', 'merchant.store.shipping.City/lstV2')->option([
- '_alias' => '列表',
- '_auth' => false,
- ]);
- })->middleware(AllowOriginMiddleware::class)
- ->middleware(MerchantTokenMiddleware::class, true)
- ->middleware(MerchantAuthMiddleware::class)
- ->middleware(MerchantCheckBaseInfoMiddleware::class)
- ->middleware(LogMiddleware::class);
|