杨总惠通宝
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
htb_backend/route/merchant/delivery.php

188 lines
6.9 KiB

<?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);