From f707d05b27070fda4431247950e0d76f7078a8e1 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 20 Feb 2024 15:58:20 +0800 Subject: [PATCH] =?UTF-8?q?supply=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/supply/accounts.php | 243 ++++++++++++++++++ route/supply/attachment.php | 96 +++++++ route/supply/config.php | 36 +++ route/supply/coupon.php | 109 ++++++++ route/supply/delivery.php | 191 ++++++++++++++ route/supply/diy.php | 109 ++++++++ route/supply/form.php | 54 ++++ route/supply/group.php | 74 ++++++ route/supply/marketing.php | 496 ++++++++++++++++++++++++++++++++++++ route/supply/notLogin.php | 33 +++ route/supply/openapi.php | 60 +++++ route/supply/order.php | 249 ++++++++++++++++++ route/supply/product.php | 458 +++++++++++++++++++++++++++++++++ route/supply/role.php | 129 ++++++++++ route/supply/service.php | 93 +++++++ route/supply/system.php | 170 ++++++++++++ route/supply/users.php | 109 ++++++++ route/supply/yihaotong.php | 66 +++++ 18 files changed, 2775 insertions(+) create mode 100644 route/supply/accounts.php create mode 100644 route/supply/attachment.php create mode 100644 route/supply/config.php create mode 100644 route/supply/coupon.php create mode 100644 route/supply/delivery.php create mode 100644 route/supply/diy.php create mode 100644 route/supply/form.php create mode 100644 route/supply/group.php create mode 100644 route/supply/marketing.php create mode 100644 route/supply/notLogin.php create mode 100644 route/supply/openapi.php create mode 100644 route/supply/order.php create mode 100644 route/supply/product.php create mode 100644 route/supply/role.php create mode 100644 route/supply/service.php create mode 100644 route/supply/system.php create mode 100644 route/supply/users.php create mode 100644 route/supply/yihaotong.php diff --git a/route/supply/accounts.php b/route/supply/accounts.php new file mode 100644 index 00000000..eded3340 --- /dev/null +++ b/route/supply/accounts.php @@ -0,0 +1,243 @@ + +// +---------------------------------------------------------------------- +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('financial', function () { + Route::post('refund/margin', 'Financial/refundMargin')->name('supplytFinancialRefundMargin')->option([ + '_alias' => '退保证金检测', + ]); + Route::post('refund/margin_apply', 'Financial/refundMarginApply')->name('supplyFinancialRefundMarginApply')->option([ + '_alias' => '退保证金申请', + ]); + })->prefix('supply.system.financial.')->option([ + '_path' => '/systemForm/modifyStoreInfo', + '_auth' => true, + ]); + + Route::group('financial', function () { + Route::get('account/form', '/accountForm')->name('supplyFinancialAccountForm')->option([ + '_alias' => '收款方式表单', + '_auth' => false, + '_form' => 'supplyFinancialAccountSave', + ]); + Route::post('account', '/accountSave')->name('supplyFinancialAccountSave')->option([ + '_alias' => '收款方式', + ]); + })->prefix('supply.system.financial.Financial')->option([ + '_path' => '/accounts/payType', + '_auth' => true, + ]); + + //转账记录 + Route::group('financial', function () { + + Route::get('lst', 'Financial/lst')->name('supplyFinancialLst')->option([ + '_alias' => '转账记录', + ]); + Route::get('detail/:id', 'Financial/detail')->name('supplyFinancialDetail')->option([ + '_alias' => '详情', + ]); + Route::get('create/form', 'Financial/createForm')->name('supplyFinancialCreateForm')->option([ + '_alias' => '申请表单', + '_auth' => false, + '_form' => 'supplyFinancialCreateSave', + ]); + Route::post('create', 'Financial/createSave')->name('supplyFinancialCreateSave')->option([ + '_alias' => '申请', + ]); + Route::delete('delete/:id', 'Financial/delete')->name('supplyFinancialDelete')->option([ + '_alias' => '删除', + ]); + Route::get('mark/:id/form', 'Financial/markForm')->name('supplyFinancialMarkForm')->option([ + '_alias' => '备注表单', + '_auth' => false, + '_form' => 'supplyFinancialMark', + ]); + Route::post('mark/:id', 'Financial/mark')->name('supplyFinancialMark')->option([ + '_alias' => '备注', + ]); + Route::get('export', 'Financial/export')->name('supplyFinancialExport')->option([ + '_alias' => '导出', + ]); + Route::post('refund/margin', 'Financial/refundMargin')->name('supplyFinancialRefundMargin')->option([ + '_alias' => '列表', + ]); + })->prefix('supply.system.financial.')->option([ + '_path' => '/accounts/transManagement', + '_auth' => true, + ]); + + + //资金流水 + Route::group('financial_record', function () { + //资金流水 + Route::get('list', '/lst')->name('supplyFinancialRecordList')->option([ + '_alias' => '列表', + ]); + Route::get('export', '/export')->name('supplyFinancialRecordExport')->option([ + '_alias' => '导出', + ]); + Route::get('count', '/title')->name('supplyFinancialCount')->option([ + '_alias' => '统计', + ]); + })->prefix('admin.system.supply.FinancialRecord')->option([ + '_auth' => true, + '_path' => '/accounts/capitalFlow', + '_append'=> [ + [ + '_name' =>'supplyStoreExcelLst', + '_path' =>'/accounts/capitalFlow', + '_alias' => '导出列表', + '_auth' => true, + ], + [ + '_name' =>'supplyStoreExcelDownload', + '_path' =>'/accounts/capitalFlow', + '_alias' => '导出下载', + '_auth' => true, + ], + + ] + ]); + + //账单管理 + Route::group('financial_record', function () { + //账单管理 + Route::get('lst', '/getList')->name('supplyFinanciaRecordlLst')->option([ + '_alias' => '列表', + ]); + Route::get('title', '/getTitle')->name('supplyFinancialTitle')->option([ + '_alias' => '统计', + ]); + Route::get('detail/:type', '/detail')->name('supplyFinancialRecordDetail')->option([ + '_alias' => '详情', + ]); + Route::get('detail_export/:type', '/exportDetail')->name('supplyFinancialRecordDetailExport')->option([ + '_alias' => '导出', + ]); + })->prefix('admin.system.supply.FinancialRecord')->option([ + '_auth' => true, + '_path' => '/accounts/statement', + '_append'=> [ + [ + '_name' =>'supplyStoreExcelLst', + '_path' =>'/accounts/statement', + '_alias' => '导出列表', + '_auth' => true, + ], + [ + '_name' =>'supplyStoreExcelDownload', + '_path' =>'/accounts/statement', + '_alias' => '导出下载', + '_auth' => true, + ], + + ] + ]); + + //发票 + Route::group('store/receipt', function () { + Route::get('lst', '/lst')->name('supplyOrderReceiptLst')->option([ + '_alias' => '列表', + ]); + Route::get('detail/:id', '/detail')->name('supplyOrderReceiptDetail')->option([ + '_alias' => '详情', + ]); + Route::get('set_recipt', '/setRecipt')->name('supplyOrderReceiptSetRecipt')->option([ + '_alias' => '开发票', + ]); + Route::post('save_recipt', '/saveRecipt')->name('supplyOrderReceiptSave')->option([ + '_alias' => '保存发票', + ]); + Route::get('mark/:id/form', '/markForm')->name('supplyOrderReceiptMarkForm')->option([ + '_alias' => '备注表单', + '_auth' => false, + '_form' => 'supplyOrderReceiptMark', + ]); + Route::post('mark/:id', '/mark')->name('supplyOrderReceiptMark')->option([ + '_alias' => '备注', + ]); + Route::post('update/:id', '/update')->name('supplyOrderReceiptUpdate')->option([ + '_alias' => '编辑', + ]); + })->prefix('supply.store.order.OrderReceipt')->option([ + '_path' => '/order/invoice', + '_auth' => true, + ]); + + + //分账单 + Route::group('profitsharing', function () { + Route::get('lst', '/getList')->name('supplyOrderProfitsharingLst')->option([ + '_alias' => '列表', + ]); + Route::get('export', '/export')->name('supplyOrderProfitsharingExport')->option([ + '_alias' => '导出', + ]); + })->prefix('admin.order.OrderProfitsharing')->option([ + '_path' => '/systemForm/applyList', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyStoreExcelLst', + '_path' =>'/systemForm/applyList', + '_alias' => '导出列表', + '_auth' => true, + ], + [ + '_name' =>'supplyStoreExcelDownload', + '_path' =>'/systemForm/applyList', + '_alias' => '导出下载', + '_auth' => true, + ], + + ] + ]); + + //申请分账商户 + Route::group('applyments',function(){ + Route::post('create','/create')->name('supplyApplymentsCreate')->option([ + '_alias' => '申请', + ]); + Route::get('detail','/detail')->name('supplyApplymentsDetail')->option([ + '_alias' => '详情', + ]); + Route::post('update/:id','/update')->name('supplyApplymentsUpdate')->option([ + '_alias' => '编辑', + ]); + Route::post('upload/:field','/uploadImage')->name('supplyApplymentsUpload')->option([ + '_alias' => '上传图片', + ]); + Route::get('check','/check')->name('supplyApplymentsCheck')->option([ + '_alias' => '查询审核结果', + '_auth' => false, + ]); + })->prefix('supply.system.SupplyApplyments')->option([ + '_path' => '/systemForm/applyments', + '_auth' => true, + ]); + + + + + +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/attachment.php b/route/supply/attachment.php new file mode 100644 index 00000000..54d692e3 --- /dev/null +++ b/route/supply/attachment.php @@ -0,0 +1,96 @@ + +// +---------------------------------------------------------------------- +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('system/attachment', function () { + Route::get('scan_upload/qrcode/:pid', '/scanUploadQrcode')->name('supplyAttachmentScanQrcode')->option([ + '_alias' => '上传二维码', + ]); + Route::get('scan_upload/image/:token', '/scanUploadImage')->name('supplyAttachmentScanImage')->option([ + '_alias' => '扫码上传图片', + ]); + Route::post('scan_upload/image/:token', '/scanUploadSave')->name('supplyAttachmentScanImageSave')->option([ + '_alias' => '扫码上传保存', + ]); + Route::post('online_upload', '/onlineUpload')->name('supplyAttachmentOnline')->option([ + '_alias' => '在线图片', + ]); + Route::get('lst', '/getList')->name('supplyAttachmentLst')->option([ + '_alias' => '列表', + ]); + Route::delete('delete', '/delete')->name('supplyAttachmentDelete')->option([ + '_alias' => '删除', + ]); + Route::post('category', '/batchChangeCategory')->name('supplyAttachmentBatchChangeCategory')->option([ + '_alias' => '批量修改', + ]); + Route::get('update/:id/form', '/updateForm')->name('supplyAttachmentUpdateForm')->option([ + '_alias' => '编辑表单的', + '_auth' => false, + '_form' => 'supplyAttachmentUpdate', + ]); + Route::post('update/:id', '/update')->name('supplyAttachmentUpdate')->option([ + '_alias' => '编辑', + ]); + })->prefix('admin.system.attachment.Attachment')->option([ + '_path' => '/config/picture', + '_auth' => true, + ]); + + //上传图片 + Route::post('upload/image/:id/:field', 'admin.system.attachment.Attachment/image')->name('supplyUploadImage')->option([ + '_path' => 'attachment', + '_alias' => '上传图片', + + ]); + + //附件分类管理 + Route::group('system/attachment/category', function () { + Route::get('formatLst', '/getFormatList')->name('supplyAttachmentCategoryGetFormatList')->option([ + '_alias' => '列表', + ]); + Route::get('create/form', '/createForm')->name('supplyAttachmentCategoryCreateForm')->option([ + '_alias' => '添加表单', + '_auth' => false, + '_form' => 'supplyAttachmentCategoryCreate', + ]); + Route::get('update/form/:id', '/updateForm')->name('supplyAttachmentCategoryUpdateForm')->option([ + '_alias' => '编辑表单', + '_auth' => false, + '_form' => 'supplyAttachmentCategoryUpdate', + ]); + Route::post('create', '/create')->name('supplyAttachmentCategoryCreate')->option([ + '_alias' => '添加', + ]); + Route::post('update/:id', '/update')->name('supplyAttachmentCategoryUpdate')->option([ + '_alias' => '编辑', + ]); + Route::delete('delete/:id', '/delete')->name('supplyAttachmentCategoryDelete')->option([ + '_alias' => '删除', + ]); + })->prefix('admin.system.attachment.AttachmentCategory')->option([ + '_path' => '/config/picture', + '_auth' => true, + ]); + +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/config.php b/route/supply/config.php new file mode 100644 index 00000000..85b4016c --- /dev/null +++ b/route/supply/config.php @@ -0,0 +1,36 @@ + +// +---------------------------------------------------------------------- +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::get('config/:key', 'admin.system.config.Config/form')->name('supplyConfigForm')->option([ + '_alias' => '配置获取', + '_path' => 'config', + '_auth' => false, + ]); + + Route::post('config/save/:key', 'admin.system.config.ConfigValue/save')->name('supplyConfigSave')->option([ + '_alias' => '配置保存', + '_path' => 'config', + '_auth' => false, + ]); + +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/coupon.php b/route/supply/coupon.php new file mode 100644 index 00000000..eb23f5e6 --- /dev/null +++ b/route/supply/coupon.php @@ -0,0 +1,109 @@ + +// +---------------------------------------------------------------------- +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::get('store/coupon/product/:id', 'admin.store.Coupon/product')->name('supplyCouponProduct')->option([ + '_alias' => '优惠券可用商品', + '_path' => '/user/list', + '_auth' => true, + ]); + + Route::get('store/coupon_send/lst', 'supply.store.coupon.CouponSend/lst')->name('supplyCouponSendLst')->option([ + '_alias' => '发送优惠券记录', + '_path' => '/marketing/coupon/send', + '_auth' => true, + ]); + + //优惠券 + Route::group('store/coupon', function () { + Route::get('create/form', '/createForm')->name('supplyCouponCreateForm')->option([ + '_alias' => '添加表单', + '_auth' => false, + '_form' => 'supplyCouponCreate', + ]); + Route::get('clone/form/:id', '/cloneForm')->name('supplyCouponIssueCloneForm')->option([ + '_alias' => '复制表单', + '_auth' => false, + '_form' => 'supplyCouponCreate', + ]); + Route::post('create', '/create')->name('supplyCouponCreate')->option([ + '_alias' => '添加', + ]); + Route::post('status/:id', '/changeStatus')->name('supplyCouponIssueChangeStatus')->option([ + '_alias' => '修改状态', + ]); + Route::get('lst', '/lst')->name('supplyCouponLst')->option([ + '_alias' => '列表', + ]); + Route::get('issue', '/issue')->name('supplyCouponIssue')->option([ + '_alias' => '使用记录', + '_path' => '/marketing/coupon/user', + ]); + Route::get('select', '/select')->option([ + '_alias' => '筛选', + '_auth' => false, + ]); + + Route::delete('delete/:id', '/delete')->name('supplyCouponDelete')->option([ + '_alias' => '删除', + ]); + Route::get('detail/:id', '/detail')->name('supplyCouponDetail')->option([ + '_alias' => '详情', + ]); + Route::get('update/:id/form', '/updateForm')->name('systemCouponUpdateForm')->option([ + '_alias' => '编辑表单', + '_auth' => false, + '_form' => 'systemCouponUpdate', + ]); + Route::post('update/:id', '/update')->name('systemCouponUpdate')->option([ + '_alias' => '编辑', + ]); + + })->prefix('supply.store.coupon.Coupon')->option([ + '_alias' => '配置保存', + '_path' => '/marketing/coupon/list', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyUploadImage', + '_path' =>'/marketing/coupon/list', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' =>'supplyAttachmentLst', + '_path' =>'/marketing/coupon/list', + '_alias' => '图片列表', + '_auth' => true, + ], + ] + ]); + + Route::post('store/coupon/send', 'supply.store.coupon.Coupon/send') + ->name('supplyCouponSendCoupon')->option([ + '_alias' => '发送优惠券', + '_path' => '/user/list', + '_auth' => true, + ]); + +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/delivery.php b/route/supply/delivery.php new file mode 100644 index 00000000..67f6ef0b --- /dev/null +++ b/route/supply/delivery.php @@ -0,0 +1,191 @@ + +// +---------------------------------------------------------------------- +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('supplyServeExportLst')->option([ + '_alias' => '列表', + ]); + Route::get('/options','/options')->option([ + '_alias' => '列表', + '_auth' => false, + ]); + + Route::get('/partner/:id/form','/partnerForm')->name('supplyExpressPratnerUpdateForm')->option([ + '_alias' => '月结账号编辑表单', + '_auth' => false, + '_form' => 'supplyExpressPratnerUpdate', + ]); + Route::post('/partner/:id','/partner')->name('supplyExpressPratnerUpdate')->option([ + '_alias' => '月结账号编辑', + ]); + })->prefix('admin.store.Express')->option([ + '_path' => '/config/freight/express', + '_auth' => true, + ]); + + + + + + //同城配送 + Route::group('delivery/station', function () { + //获取分类 + Route::get('business','/getBusiness')->name('supplyStoreDeliveryBusiness')->option([ + '_alias' => '获取分类', + ]); + //添加 + Route::post('create','/create')->name('supplyStoreDeliveryCreate')->option([ + '_alias' => '添加', + ]); + //编辑 + Route::post('update/:id','/update')->name('supplyStoreDeliveryUpdate')->option([ + '_alias' => '编辑', + ]); + //编辑状态 + Route::post('status/:id','/switchWithStatus')->name('supplyStoreDeliveryStatus')->option([ + '_alias' => '编辑状态', + ]); + //列表 + Route::get('lst','/lst')->name('supplyStoreDeliveryLst')->option([ + '_alias' => '列表', + ]); + //详情 + Route::get('detail/:id','/detail')->name('supplyStoreDeliveryDetail')->option([ + '_alias' => '详情', + ]); + //删除 + Route::delete('delete/:id','/delete')->name('supplyStoreDeliveryDelete')->option([ + '_alias' => '删除', + ]); + //备注 + Route::get('mark/:id/form','/markForm')->name('supplyStoreDeliveryMarkForm')->option([ + '_alias' => '备注表单', + '_auth' => false, + '_form' => 'supplyStoreDeliveryMark', + ]); + Route::post('mark/:id','/mark')->name('supplyStoreDeliveryMark')->option([ + '_alias' => '备注', + ]); + + Route::get('options','/options')->option([ + '_alias' => '列表', + '_auth' => false, + ]); + + Route::get('select','/select')->option([ + '_alias' => '列表', + '_auth' => false, + ]); + //城市列表 + Route::get('getCity','/getCityLst')->name('supplyStoreDeliveryCityList')->option([ + '_alias' => '城市列表', + ]); + + //充值记录 + Route::get('payLst','/payLst')->name('supplyStoreDeliveryPayLst')->option([ + '_alias' => '充值记录', + '_path' => '/delivery/recharge_record', + ]); + Route::get('code','/getQrcode')->name('supplyStoreDeliveryGetQrcode')->option([ + '_alias' => '充值二维码', + '_path' => '/delivery/recharge_record', + '_auth' => false, + ]); + + })->prefix('supply.store.delivery.DeliveryStation')->option([ + '_path' => '/delivery/store_manage', + '_auth' => true, + ]); + + //同城配送 + Route::group('delivery/order', function () { + // + Route::get('lst','/lst') + ->name('supplyStoreDeliveryOrderLst')->option([ + '_alias' => '列表', + ]); + //取消 + Route::get('cancel/:id/form','/cancelForm') + ->name('supplyStoreDeliveryOrderCancelForm')->option([ + '_alias' => '取消表单', + '_auth' => false, + '_form' => 'supplyStoreDeliveryOrderCancel', + ]); + + Route::post('cancel/:id','/cancel') + ->name('supplyStoreDeliveryOrderCancel')->option([ + '_alias' => '取消', + ]); + + //详情 + Route::get('detail/:id','/detail') + ->name('supplyStoreDeliveryOrderDetail')->option([ + '_alias' => '详情', + ]); + + })->prefix('supply.store.delivery.DeliveryOrder')->option([ + '_path' => '/delivery/usage_record', + '_auth' => true, + ]); + + //运费模板 + Route::group('store/shipping', function () { + Route::get('lst', '/lst')->name('supplyStoreShippingTemplateLst')->option([ + '_alias' => '列表', + '_auth' => false, + ]); + Route::get('list', '/getList')->option([ + '_alias' => '列表 ', + ]); + Route::post('create', '/create')->name('supplyStoreShippingTemplateCreate')->option([ + '_alias' => '添加 ', + ]); + Route::post('update/:id', '/update')->name('supplyStoreShippingTemplateUpdate')->option([ + '_alias' => '编辑', + ]); + Route::get('detail/:id', '/detail')->name('supplyStoreShippingTemplateDetail')->option([ + '_alias' => '详情', + ]); + Route::delete('delete/:id', '/delete')->name('supplyStoreShippingTemplateDelete')->option([ + '_alias' => '删除', + ]); + Route::get('setDefault/:id', '/setDefault')->name('supplyStoreShippingTemplateSetDefault')->option([ + '_alias' => '设置默认模板', + ]); + })->prefix('supply.store.shipping.ShippingTemplate')->option([ + '_path' => '/config/freight/shippingTemplates', + '_auth' => true, + ]); + + //地址信息 + Route::get('system/city/lst', 'supply.store.shipping.City/lst')->option([ + '_alias' => '列表', + '_auth' => false, + ]); + Route::get('v2/system/city/lst/:pid', 'supply.store.shipping.City/lstV2')->option([ + '_alias' => '列表', + '_auth' => false, + ]); + +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/diy.php b/route/supply/diy.php new file mode 100644 index 00000000..f377988c --- /dev/null +++ b/route/supply/diy.php @@ -0,0 +1,109 @@ + +// +---------------------------------------------------------------------- + +use think\facade\Route; +use app\common\middleware\LogMiddleware; +use app\common\middleware\AllowOriginMiddleware; +use app\common\middleware\MerchantAuthMiddleware; +use app\common\middleware\MerchantTokenMiddleware; +use app\common\middleware\MerchantCheckBaseInfoMiddleware; + +Route::group(function () { + + Route::get('diy/link/getLinks/:id', 'admin.system.diy.PageLink/getLinks')->option([ + '_alias' => '列表', + '_auth' => false, + ]); + + Route::get('diy/link/lst', 'admin.system.diy.PageLink/lst')->name('supplyDiyPageLinkLst')->option([ + '_alias' => '列表', + '_path' => '/devise/diy/list', + ])->append(['type' => 1]); + + + Route::get('diy/categroy/options', 'admin.system.diy.PageCategroy/options')->option([ + '_alias' => '列表 ', + '_auth' => false, + ])->append(['type' => 1]); + + + Route::group('diy/', function () { + + Route::get('lst', '/lst')->name('supplyDiyLst')->option([ + '_alias' => '列表 ', + ]); + + Route::get('review/:id', '/review'); + + Route::get('default_lst', '/defaultLst')->name('supplyDefaultDiyLst')->option([ + '_alias' => '默认模板列表 ', + ]); + + Route::get('detail/:id', '/getInfo')->name('supplyDiyDetail')->option([ + '_alias' => '详情 ', + ]); + + Route::post('create/:id', '/saveData')->name('supplyDiyCreate')->option([ + '_alias' => '添加/编辑', + ]); + + Route::post('status/:id', '/setStatus')->name('supplyDiyStatus')->option([ + '_alias' => '使用模板', + ]); + + Route::post('set_default_data/:id', '/setDefaultData')->name('supplyDiySetDefault')->option([ + '_alias' => '使用模板', + ]); + + Route::get('recovery/:id', '/recovery/')->name('supplyDiyRecovery')->option([ + '_alias' => '重置模板', + ]); + + Route::get('show', '/getDiyInfo')->name('supplyDiyInfo')->option([ + '_alias' => '当前使用模板', + ]); + + Route::delete('delete/:id', '/del')->name('supplyDiyDelete')->option([ + '_alias' => '删除', + ]); + + Route::get('product/lst', '/productLst')->name('supplyDiyProductLst')->option([ + '_alias' => '店铺街装修', + ]); + + Route::get('copy/:id', '/copy')->name('supplyDiyCopy')->option([ + '_alias' => '复制', + ]); + + })->prefix('supply.system.diy.Diy')->option([ + '_path' => '/devise/diy/list', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'uploadImage', + '_path' =>'/devise/diy/list', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' =>'systemAttachmentLst', + '_path' =>'/devise/diy/list', + '_alias' => '图片列表', + '_auth' => true, + ], + ] + ]); + +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/form.php b/route/supply/form.php new file mode 100644 index 00000000..8f82a69f --- /dev/null +++ b/route/supply/form.php @@ -0,0 +1,54 @@ + +// +---------------------------------------------------------------------- + +use think\facade\Route; +use app\common\middleware\AdminAuthMiddleware; +use app\common\middleware\AdminTokenMiddleware; +use app\common\middleware\AllowOriginMiddleware; +use app\common\middleware\LogMiddleware; + +Route::group(function () { + + Route::group('store/form',function () { + Route::post('create', '/create')->name('merFormCreate')->option([ + '_alias' => '添加', + '_auth' => true, + ]); + Route::post('update/:id', '/update')->name('merFormUpdate')->option([ + '_alias' => '编辑', + '_auth' => true, + ]); + Route::delete('delete/:id', '/delete')->name('merFormDelete')->option([ + '_alias' => '删除', + '_auth' => true, + ]); + Route::get('detail/:id', '/detail')->name('merFormDetail')->option([ + '_alias' => '详情', + '_auth' => true, + ]); + Route::get('lst', '/lst')->name('merFormLst')->option([ + '_alias' => '列表', + '_auth' => true, + ]); + + Route::get('select', '/select'); + Route::get('info/:id', '/info'); + + })->prefix('admin.system.form.Form')->option([ + '_path' => '/form', + '_auth' => true, + ]); + +})->middleware(AllowOriginMiddleware::class) + ->middleware(\app\common\middleware\MerchantTokenMiddleware::class, true) + ->middleware(\app\common\middleware\MerchantAuthMiddleware::class) + ->middleware(\app\common\middleware\MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/group.php b/route/supply/group.php new file mode 100644 index 00000000..12b1940e --- /dev/null +++ b/route/supply/group.php @@ -0,0 +1,74 @@ + +// +---------------------------------------------------------------------- + +use app\common\middleware\AllowOriginMiddleware; +use app\common\middleware\LogMiddleware; +use app\common\middleware\MerchantAuthMiddleware; +use app\common\middleware\MerchantCheckBaseInfoMiddleware; +use app\common\middleware\MerchantTokenMiddleware; +use think\facade\Route; + +Route::group(function () { + + Route::group('group', function () { + Route::get('detail/:id', '/get')->name('supplyGroupDetail')->option([ + '_alias' => '数据详情', + ]); + Route::get('data/lst/:groupId', 'Data/lst')->name('supplyGroupDataLst')->option([ + '_alias' => '数据列表', + ]); + + Route::get('data/create/table/:groupId', 'Data/createTable')->name('supplyGroupDataCreateForm')->option([ + '_alias' => '数据添加表单', + '_auth' => false, + '_form' => 'groupDataCreate', + ]); + Route::post('data/create/:groupId', 'Data/create')->name('supplyGroupDataCreate')->option([ + '_alias' => '数据添加', + ]); + + Route::get('data/update/table/:groupId/:id', 'Data/updateTable')->name('supplyGroupDataUpdateForm')->option([ + '_alias' => '数据编辑表单', + '_auth' => false, + '_form' => 'groupDataUpdate', + ]); + Route::post('data/update/:groupId/:id', 'Data/update')->name('supplyGroupDataUpdate')->option([ + '_alias' => '数据编辑', + ]); + Route::delete('data/delete/:id', 'Data/delete')->name('supplyGroupDataDelete')->option([ + '_alias' => '数据删除', + ]); + Route::post('data/status/:id', 'Data/changeStatus')->name('supplyGroupDataChangeStatus')->option([ + '_alias' => '数据修改状态', + ]); + Route::get('data/detail/:id', 'Data/baseDetail'); + })->prefix('admin.system.groupData.Group')->option([ + '_auth' => true, + '_init' => [ \crmeb\services\UpdateAuthInit::class,'groupData'], + '_append' => [ + [ + '_name' => 'uploadImage', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' => 'systemAttachmentLst', + '_alias' => '图片列表', + '_auth' => true, + ], + ] + ]); + +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/marketing.php b/route/supply/marketing.php new file mode 100644 index 00000000..b086f487 --- /dev/null +++ b/route/supply/marketing.php @@ -0,0 +1,496 @@ + +// +---------------------------------------------------------------------- +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('store/seckill_product', function () { + Route::get('lst_time', '/lst_time')->option([ + '_alias' => '时间配置', + '_auth' => false, + ]); + Route::get('lst_filter', '/getStatusFilter')->name('supplyStoreSeckillProductLstFilter')->option([ + '_alias' => '统计', + ]); + Route::get('lst', '/lst')->name('supplyStoreSeckillProductLst')->option([ + '_alias' => '列表', + ]); + Route::post('create', '/create')->name('supplyStoreSeckillProductCreate')->option([ + '_alias' => '添加 ', + ]); + Route::get('detail/:id', '/detail')->name('supplyStoreSeckillProductDetail')->option([ + '_alias' => '详情', + ]); + Route::post('update/:id', '/update')->name('supplyStoreSeckillProductUpdate')->option([ + '_alias' => '编辑', + ]); + Route::delete('delete/:id', '/delete')->name('supplyStoreSeckillProductDelete')->option([ + '_alias' => '删除', + ]); + Route::delete('destory/:id', '/destory')->name('supplyStoreSeckillProductDestory')->option([ + '_alias' => '彻底删除', + ]); + Route::post('restore/:id', '/restore')->name('supplyStoreSeckillProductRestore')->option([ + '_alias' => '恢复', + ]); + Route::post('status/:id', '/switchStatus')->name('supplyStoreSeckillProductSwitchStatus')->option([ + '_alias' => '修改状态', + ]); + Route::post('sort/:id', '/updateSort')->name('supplyStoreSeckillProductUpdateSort')->option([ + '_alias' => '排序', + ]); + Route::post('preview', '/preview')->name('supplyStoreSeckillProductPreview')->option([ + '_alias' => '预览', + ]); + Route::post('labels/:id', '/setLabels')->name('supplyStoreSeckillProductLabels')->option([ + '_alias' => '设置标签', + ]); + })->prefix('supply.store.product.ProductSeckill')->option([ + '_path' => '/marketing/seckill/list', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyUploadImage', + '_path' =>'/marketing/seckill/list', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' =>'supplyAttachmentLst', + '_path' =>'/marketing/seckill/list', + '_alias' => '图片列表', + '_auth' => true, + ], + ] + ]); + + //预售商品 + Route::group('store/product/presell', function () { + Route::get('lst', '/lst')->name('supplyStoreProductPresellLst')->option([ + '_alias' => '列表', + ]); + Route::post('create', '/create')->name('supplyStoreProductPresellCreate')->option([ + '_alias' => '添加', + ]); + Route::get('detail/:id', '/detail')->name('supplyStoreProductPresellDetail')->option([ + '_alias' => '详情', + ]); + Route::post('update/:id', '/update')->name('supplyStoreProductPresellUpdate')->option([ + '_alias' => '编辑', + ]); + Route::delete('delete/:id', '/delete')->name('supplyStoreProductPresellDelete')->option([ + '_alias' => '删除', + ]); + Route::post('status/:id', '/switchStatus')->name('supplyStoreProductPresellStatus')->option([ + '_alias' => '修改状态', + ]); + Route::get('number', '/number')->option([ + '_alias' => '统计', + '_auth' => false, + ]); + Route::post('sort/:id', '/updateSort')->name('supplyStoreProductPresellUpdateSort')->option([ + '_alias' => '排序', + ]); + Route::post('preview', '/preview')->name('supplyStoreProductPresellPreview')->option([ + '_alias' => '预览', + ]); + Route::post('labels/:id', '/setLabels')->name('supplyStoreProductPreselltLabels')->option([ + '_alias' => '设置标签', + ]); + })->prefix('supply.store.product.ProductPresell')->option([ + '_path' => '/marketing/presell/list', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyUploadImage', + '_path' =>'/marketing/presell/list', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' =>'supplyAttachmentLst', + '_path' =>'/marketing/presell/list', + '_alias' => '图片列表', + '_auth' => true, + ], + ] + ]); + + //助力商品 + Route::group('store/product/assist', function () { + Route::get('lst', '/lst')->name('supplyStoreProductAssistLst')->option([ + '_alias' => '列表 ', + ]); + Route::post('create', '/create')->name('supplyStoreProductAssistCreate')->option([ + '_alias' => '添加', + ]); + Route::get('detail/:id', '/detail')->name('supplyStoreProductAssistDetail')->option([ + '_alias' => '详情', + ]); + Route::post('update/:id', '/update')->name('supplyStoreProductAssistUpdate')->option([ + '_alias' => '编辑', + ]); + Route::delete('delete/:id', '/delete')->name('supplyStoreProductAssistDelete')->option([ + '_alias' => '删除', + ]); + Route::post('status/:id', '/switchStatus')->name('supplyStoreProductAssistStatus')->option([ + '_alias' => '修改状态', + ]); + Route::post('sort/:id', '/updateSort')->name('supplyStoreProductAssistUpdateSort')->option([ + '_alias' => '排序', + ]); + Route::post('preview', '/preview')->name('supplyStoreProductAssistPreview')->option([ + '_alias' => '预览', + ]); + Route::post('labels/:id', '/setLabels')->name('supplyStoreProductAssistLabels')->option([ + '_alias' => '设置标签', + ]); + })->prefix('supply.store.product.ProductAssist')->option([ + '_path' => '/marketing/assist/list', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyUploadImage', + '_path' =>'/marketing/assist/list', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' =>'supplyAttachmentLst', + '_path' =>'/marketing/assist/list', + '_alias' => '图片列表', + '_auth' => true, + ], + ] + ]); + + //助力活动 + Route::group('store/product/assist_set', function () { + Route::get('lst', '/lst')->name('supplyStoreProductAssistSetLst')->option([ + '_alias' => '活动列表', + ]); + Route::get('detail/:id', '/detail')->name('supplyStoreProductAssistSetDetail')->option([ + '_alias' => '活动详情', + ]); + })->prefix('supply.store.product.ProductAssistSet')->option([ + '_path' => '/marketing/assist/assist_set', + '_auth' => true, + ]); + + //拼团商品 + Route::group('store/product/group', function () { + Route::get('lst', '/lst')->name('supplyStoreProductGroupLst')->option([ + '_alias' => '列表', + ]); + Route::post('create', '/create')->name('supplyStoreProductGroupCreate')->option([ + '_alias' => '添加', + ]); + Route::get('detail/:id', '/detail')->name('supplyStoreProductGroupDetail')->option([ + '_alias' => '详情', + ]); + Route::post('update/:id', '/update')->name('supplyStoreProductGroupUpdate')->option([ + '_alias' => '编辑', + ]); + Route::delete('delete/:id', '/delete')->name('supplyStoreProductGroupDelete')->option([ + '_alias' => '删除', + ]); + Route::post('status/:id', '/switchStatus')->name('supplyStoreProductGroupStatus')->option([ + '_alias' => '修改状态', + ]); + Route::post('sort/:id', '/updateSort')->name('supplyStoreProductGroupSort')->option([ + '_alias' => '排序', + ]); + Route::post('preview', '/preview')->name('supplyStoreProductGroupPreview')->option([ + '_alias' => '预览', + ]); + Route::post('labels/:id', '/setLabels')->name('supplyStoreProductGroupLabels')->option([ + '_alias' => '设置标签', + ]); + })->prefix('supply.store.product.ProductGroup')->option([ + '_path' => '/marketing/combination/combination_goods', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyUploadImage', + '_path' =>'/marketing/combination/combination_goods', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' =>'supplyAttachmentLst', + '_path' =>'/marketing/combination/combination_goods', + '_alias' => '图片列表', + '_auth' => true, + ], + ] + ]); + + Route::get('config/others/group_buying', 'admin.system.config.ConfigOthers/getGroupBuying') + ->name('supplyConfigGroupBuying')->option([ + '_alias' => '拼团配置', + '_path' => '/marketing/combination/combination_goods', + '_auth' => true, + ]);; + + //拼团活动 + Route::group('store/product/group/buying', function () { + Route::get('lst', '/lst')->name('supplyStoreProductGroupBuyingLst')->option([ + '_alias' => '活动列表 ', + ]); + Route::get('detail/:id', '/detail')->name('supplyStoreProductGroupBuyingDetail')->option([ + '_alias' => '活动详情', + ]); + })->prefix('supply.store.product.ProductGroupBuying')->option([ + '_path' => '/marketing/combination/combination_list', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyUploadImage', + '_path' =>'/marketing/combination/combination_list', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' =>'supplyAttachmentLst', + '_path' =>'/marketing/combination/combination_list', + '_alias' => '图片列表', + '_auth' => true, + ], + ] + ]); + + + + //直播间 + Route::group('broadcast/room', function () { + Route::get('lst', '/lst')->name('supplyBroadcastRoomLst')->option([ + '_alias' => '列表 ', + ]); + Route::get('detail/:id', '/detail')->name('supplyBroadcastRoomDetail')->option([ + '_alias' => '详情', + ]); + Route::get('create/form', '/createForm')->name('supplyBroadcastRoomCreateForm')->option([ + '_alias' => '添加表单', + '_auth' => false, + '_form' => 'supplyBroadcastRoomCreate', + ]); + Route::post('create', '/create')->name('supplyBroadcastRoomCreate')->option([ + '_alias' => '添加', + ]); + Route::get('update/form/:id', '/updateForm')->name('supplyBroadcastRoomUpdateForm')->option([ + '_alias' => '编辑表单', + '_auth' => false, + '_form' => 'supplyBroadcastRoomUpdate', + ]); + Route::post('update/:id', '/update')->name('supplyBroadcastRoomUpdate')->option([ + '_alias' => '编辑', + ]); + Route::post('status/:id', '/changeStatus')->name('supplyBroadcastRoomChangeStatus')->option([ + '_alias' => '修改状态', + ]); + Route::post('export_goods', '/exportGoods')->name('supplyBroadcastRoomExportGoods')->option([ + '_alias' => '导入商品', + ]); + Route::post('rm_goods', '/rmExportGoods')->name('supplyBroadcastRoomRmExportGoods')->option([ + '_alias' => '删除商品', + ]); + Route::post('mark/:id', '/mark')->name('supplyBroadcastRoomMark')->option([ + '_alias' => '备注', + ]); + Route::get('goods/:id', '/goodsList')->name('supplyBroadcastRoomGoods')->option([ + '_alias' => '商品详情', + ]); + + Route::post('closeKf/:id', '/closeKf')->name('supplyBroadcastRoomCloseKf')->option([ + '_alias' => '关闭客服', + ]); + Route::post('comment/:id', '/banComment')->name('supplyBroadcastRoomCloseComment')->option([ + '_alias' => '禁言', + ]); + Route::post('feedsPublic/:id', '/isFeedsPublic')->name('supplyBroadcastRoomCloseFeeds')->option([ + '_alias' => '收录', + ]); + Route::post('on_sale/:id', '/onSale')->name('supplyBroadcastOnSale')->option([ + '_alias' => '商品上下架', + ]); + Route::delete('delete/:id', '/delete')->name('supplyBroadcastRoomDelete')->option([ + '_alias' => '删除', + ]); + Route::get('addassistant/form/:id', '/addAssistantForm')->name('supplyBroadcastAddAssistantForm')->option([ + '_alias' => '添加客服表单', + '_auth' => false, + '_form' => 'supplyBroadcastAddAssistant', + ]); + Route::post('addassistant/:id', '/addAssistant')->name('supplyBroadcastAddAssistant')->option([ + '_alias' => '添加 客服', + ]); + Route::get('push_message/:id', '/pushMessage')->name('supplyBroadcastPushMessage')->option([ + '_alias' => '消息推送', + ]); + + })->prefix('supply.store.broadcast.BroadcastRoom')->option([ + '_path' => '/marketing/studio/list', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyUploadImage', + '_path' =>'/marketing/studio/list', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' =>'supplyAttachmentLst', + '_path' =>'/marketing/studio/list', + '_alias' => '图片列表', + '_auth' => true, + ], + ] + ]); + + //直播小助手 + Route::group('broadcast/assistant', function () { + Route::get('lst', '/lst')->name('supplyBroadcastAssistantLst')->option([ + '_alias' => '列表', + ]); + Route::get('create/form', '/createForm')->name('supplyBroadcastAssistantCreateForm')->option([ + '_alias' => '添加表单', + '_auth' => false, + '_form' => 'supplyBroadcastAssistantCreate', + ]); + Route::post('create', '/create')->name('supplyBroadcastAssistantCreate')->option([ + '_alias' => '添加', + ]); + Route::get('update/:id/form', '/updateForm')->name('supplyBroadcastAssistantUpdateForm')->option([ + '_alias' => '编辑表单', + '_auth' => false, + '_form' => 'supplyBroadcastAssistantUpdate', + ]); + Route::post('update/:id', '/update')->name('supplyBroadcastAssistantUpdate')->option([ + '_alias' => '编辑', + ]); + Route::post('mark/:id', '/mark')->name('supplyBroadcastAssistantMark')->option([ + '_alias' => '备注', + ]); + Route::delete('delete/:id', '/delete')->name('supplyBroadcastAssistantDelete')->option([ + '_alias' => '删除', + ]); + })->prefix('supply.store.broadcast.BroadcastAssistant')->option([ + '_path' => '/marketing/studio/assistant', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyUploadImage', + '_path' =>'/marketing/studio/assistant', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' =>'supplyAttachmentLst', + '_path' =>'/marketing/studio/assistant', + '_alias' => '图片列表', + '_auth' => true, + ], + ] + ]); + + //直播间商品 + Route::group('broadcast/goods', function () { + Route::get('lst', '/lst')->name('supplyBroadcastGoodsLst')->option([ + '_alias' => '列表', + ]); + Route::get('detail/:id', '/detail')->name('supplyBroadcastGoodsDetail')->option([ + '_alias' => '详情', + ]); + Route::get('create/form', '/createForm')->name('supplyBroadcastGoodsCreateForm')->option([ + '_alias' => '添加表单', + '_auth' => false, + '_form' => 'supplyBroadcastGoodsCreate', + ]); + Route::post('create', '/create')->name('supplyBroadcastGoodsCreate')->option([ + '_alias' => '添加', + ]); + Route::get('update/form/:id', '/updateForm')->name('supplyBroadcastGoodsUpdateForm')->option([ + '_alias' => '编辑表单', + '_auth' => false, + '_form' => 'supplyBroadcastGoodsUpdate', + ]); + Route::post('update/:id', '/update')->name('supplyBroadcastGoodsUpdate')->option([ + '_alias' => '编辑', + ]); + Route::post('status/:id', '/changeStatus')->name('supplyBroadcastGoodsChangeStatus')->option([ + '_alias' => '修改状态', + ]); + Route::post('mark/:id', '/mark')->name('supplyBroadcastGoodsMark')->option([ + '_alias' => '备注', + ]); + Route::delete('delete/:id', '/delete')->name('supplyBroadcastGoodsDelete')->option([ + '_alias' => '删除', + ]); + Route::post('batch_create', '/batchCreate')->name('supplyBroadcastGoodsbatchCreate')->option([ + '_alias' => '批量添加', + ]); + })->prefix('supply.store.broadcast.BroadcastGoods')->option([ + '_path' => '/marketing/studio/list', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyUploadImage', + '_path' =>'/marketing/studio/list', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' =>'supplyAttachmentLst', + '_path' =>'/marketing/studio/list', + '_alias' => '图片列表', + '_auth' => true, + ], + ] + ]); + + //积分 + Route::group('integral',function(){ + Route::get('lst','/getList')->name('supplyIntegralList')->option([ + '_alias' => '列表', + ]); + Route::get('title','/getTitle')->name('supplyIntegralTitle')->option([ + '_alias' => '统计', + ]); + })->prefix('supply.user.UserIntegral')->option([ + '_path' => '/marketing/integral/log', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyConfigForm', + '_path' =>'/marketing/integral/log', + '_alias' => '配置获取', + '_auth' => true, + ], + [ + '_name' =>'supplyConfigSave', + '_path' =>'/marketing/integral/log', + '_alias' => '配置保存', + '_auth' => true, + ], + + ] + ]); +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/notLogin.php b/route/supply/notLogin.php new file mode 100644 index 00000000..34005e9a --- /dev/null +++ b/route/supply/notLogin.php @@ -0,0 +1,33 @@ + +// +---------------------------------------------------------------------- + +use think\facade\Route; +use app\common\middleware\AllowOriginMiddleware; + +//不带token认证 +Route::group(function () { + Route::get('test', 'supply.system.admin.Login/test'); + + //验证码 + Route::get('captcha', 'supply.system.admin.Login/getCaptcha'); + //登录 + Route::post('login', 'supply.system.admin.Login/login'); + Route::post('ajstatus', 'supply.system.admin.Login/ajCaptchaStatus'); + + Route::get('login_config', 'admin.Common/loginConfig'); + + //滑块验证码 + Route::get('ajcaptcha', 'api.Auth/ajcaptcha'); + Route::post('ajcheck', 'api.Auth/ajcheck'); + +})->middleware(AllowOriginMiddleware::class)->option([ + '_auth' => false, +]); diff --git a/route/supply/openapi.php b/route/supply/openapi.php new file mode 100644 index 00000000..927401ae --- /dev/null +++ b/route/supply/openapi.php @@ -0,0 +1,60 @@ + +// +---------------------------------------------------------------------- +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('openapi/',function(){ + Route::get('lst','OpenApi/lst')->name('supplyOpenapiLst')->option([ + '_alias' => '列表', + ]); + Route::get('create/form','OpenApi/createForm')->name('supplyOpenapiCreateForm')->option([ + '_alias' => '添加Form', + '_auth' => false, + '_form' => 'supplyOpenapiCreate', + ]); + Route::post('create','OpenApi/create')->name('supplyOpenapiCreate')->option([ + '_alias' => '添加', + ]); + Route::get('update/:id/form','OpenApi/updateForm')->name('supplyOpenapiUpdateForm')->option([ + '_alias' => '编辑Form', + '_auth' => false, + '_form' => 'supplyOpenapiUpdate', + ]); + Route::post('update/:id','OpenApi/update')->name('supplyOpenapiUpdate')->option([ + '_alias' => '编辑', + ]); + Route::post('status/:id','OpenApi/switchWithStatus')->name('supplyOpenapiStatus')->option([ + '_alias' => '修改状态', + ]); + Route::delete('delete/:id','OpenApi/delete')->name('supplyOpenapiDeleta')->option([ + '_alias' => '删除', + ]); + Route::get('get_secret_key/:id','OpenApi/getSecretKey')->name('supplyOpenapiGetSecretKey')->option([ + '_alias' => '查看', + ]); + Route::post('set_secret_key/:id','OpenApi/setSecretKey')->name('supplyOpenapiSetSecretKey')->option([ + '_alias' => '重置', + ]); + })->prefix('supply.system.openapi.')->option([ + '_path' => '/systemForm/openAuth/list', + '_auth' => true, + ]); + +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/order.php b/route/supply/order.php new file mode 100644 index 00000000..f7f94696 --- /dev/null +++ b/route/supply/order.php @@ -0,0 +1,249 @@ + +// +---------------------------------------------------------------------- + +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('/temps','/getExportTemp')->name('supplyServeExportTemps')->option([ + '_alias' => '预览', + ]); + Route::get('/dump_lst','/dumpLst')->name('supplyServeExportDumpLst')->option([ + '_alias' => '默认模板', + ]); + + })->prefix('admin.system.serve.Export')->option([ + '_path' => '/order/list', + '_auth' => true, + ]); + + //Order + Route::group('store/order', function () { + Route::get('excel', 'Order/excel')->name('supplyStoreOrderExcel')->option([ + '_alias' => '导出', + ]); + Route::get('printer/:id', 'Order/printer')->name('supplyStoreOrderPrinter')->option([ + '_alias' => '打印小票', + ]); + Route::get('chart', 'Order/chart')->name('supplyStoreOrderTitle')->option([ + '_alias' => '统计', + ]); + + Route::get('filtter', 'Order/orderType')->name('supplyStoreOrderFiltter')->option([ + '_alias' => '类型', + '_auth' => false, + ]); + Route::get('lst', 'Order/lst')->name('supplyStoreOrderLst')->option([ + '_alias' => '列表', + ]); + + Route::get('express/:id', 'Order/express')->name('supplyStoreOrderExpress')->option([ + '_alias' => '快递查询', + ]); + + Route::post('delivery/:id', 'Order/delivery')->name('supplyStoreOrderDelivery')->option([ + '_alias' => '发货', + ]); + Route::post('delivery_batch', 'Order/batchDelivery')->name('supplyStoreOrderBatchDelivery')->option([ + '_alias' => '批量发货', + ]); + + Route::get('delivery_export', 'Order/deliveryExport')->name('supplyStoreOrderDeliveryExport')->option([ + '_alias' => '导出发货单', + ]); + Route::get('title', 'Order/title')->name('supplyStoreOrderStat')->option([ + '_alias' => '头部统计', + ]); + + Route::get('update/:id/form', 'Order/updateForm')->name('supplyStoreOrderUpdateForm')->option([ + '_alias' => '编辑表单', + '_auth' => false, + '_form' => 'supplyStoreOrderUpdate', + ]); + Route::post('update/:id', 'Order/update')->name('supplyStoreOrderUpdate')->option([ + '_alias' => '编辑', + ]); + + Route::get('detail/:id', 'Order/detail')->name('supplyStoreOrderDetail')->option([ + '_alias' => '详情', + ]); + Route::get('log/:id', 'Order/status')->name('supplyStoreOrderLog')->option([ + '_alias' => '操作记录', + ]); + Route::get('remark/:id/form', 'Order/remarkForm')->name('supplyStoreOrderRemarkForm')->option([ + '_alias' => '备注表单', + '_auth' => false, + '_form' => 'supplyStoreOrderRemark', + ]); + Route::post('remark/:id', 'Order/remark')->name('supplyStoreOrderRemark')->option([ + '_alias' => '备注', + ]); + Route::get('verify/:code', 'Order/verifyDetail')->name('supplyStoreOrderVerifyDetail')->option([ + '_alias' => '核销详情', + ]); + Route::post('verify/:id', 'Order/verify')->name('supplyStoreOrderVerify')->option([ + '_alias' => '核销', + ]); + Route::post('delete/:id', 'Order/delete')->name('supplyStoreOrderDelete')->option([ + '_alias' => '删除', + ]); + Route::get('children/:id', 'Order/childrenList')->name('supplyStoreOrderChildrenList')->option([ + '_alias' => '关联订单', + ]); + })->prefix('supply.store.order.')->option([ + '_path' => '/order/list', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyStoreExcelLst', + '_path' =>'/order/list', + '_alias' => '导出列表', + '_auth' => true, + ], + [ + '_name' =>'supplyStoreExcelDownload', + '_path' =>'/order/list', + '_alias' => '导出下载', + '_auth' => true, + ], + ] + ]); + + //Order + Route::group('store/order', function () { + Route::get('takechart', 'Order/takeChart')->name('supplyStoreTakeOrderTitle')->option([ + '_alias' => '统计', + '_auth' => false, + ]); + Route::get('take_title', 'Order/takeTitle')->name('supplyStoreOrderTakeTitle')->option([ + '_alias' => '统计', + ]); + Route::get('takelst', 'Order/takeLst')->name('supplyStoreTakeOrderLst')->option([ + '_alias' => '列表', + ]); + })->prefix('supply.store.order.')->option([ + '_path' => '/order/cancellation', + '_auth' => true, + ]); + + Route::get('store/refundorder/refund_message', 'api.Common/refundMessage'); + //退款订单 + Route::group('store/refundorder', function () { + Route::get('check/:id', '/check'); + Route::post('compute', '/compute'); + Route::post('create', '/create')->name('supplyStoreRefundOrderCreate')->option([ + '_alias' => '创建', + ]); + Route::get('lst', '/lst')->name('supplyStoreRefundOrderLst')->option([ + '_alias' => '列表', + ]); + Route::get('detail/:id', '/detail')->name('supplyStoreRefundOrderDetail')->option([ + '_alias' => '详情', + ]); + Route::get('status/:id/form', '/switchStatusForm')->name('supplyStoreRefundOrderSwitchStatusForm')->option([ + '_alias' => '审核表单', + '_auth' => false, + '_form' => 'supplyStoreRefundOrderSwitchStatus', + ]); + Route::post('status/:id', '/switchStatus')->name('supplyStoreRefundOrderSwitchStatus')->option([ + '_alias' => '审核', + ]); + Route::post('refund/:id', '/refundPrice')->name('supplyStoreRefundOrderRefund')->option([ + '_alias' => '收到退回商品后确认退款', + ]); + Route::delete('delete/:id', '/delete')->name('supplyStoreRefundDelete')->option([ + '_alias' => '删除', + ]); + Route::get('mark/:id/form', '/markForm')->name('supplyStoreRefundMarkForm')->option([ + '_alias' => '备注表单', + '_auth' => false, + '_form' => 'supplyStoreRefundMark', + ]); + Route::post('mark/:id', '/mark')->name('supplyStoreRefundMark')->option([ + '_alias' => '备注', + ]); + Route::get('log/:id', '/log')->name('supplyStoreRefundLog')->option([ + '_alias' => '操作记录', + ]); + Route::get('express/:id', '/express')->name('supplyStoreRefundExpress')->option([ + '_alias' => '快递查询', + ]); + Route::get('excel', '/createExcel')->name('supplyStoreRefundCreateExcel')->option([ + '_alias' => '导出', + ]); + })->prefix('supply.store.order.RefundOrder')->option([ + '_path' => '/order/refund', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyStoreExcelLst', + '_path' =>'/order/refund', + '_alias' => '导出列表', + '_auth' => true, + ], + [ + '_name' =>'supplyStoreExcelDownload', + '_path' =>'/order/refund', + '_alias' => '导出下载', + '_auth' => true, + ], + + ] + ]); + + // 导入 + Route::group('store/import', function () { + Route::post('/:type', 'StoreImport/import')->name('supplyStoreOrderDeliveryImport')->option([ + '_alias' => '导入', + ]); + Route::get('lst', 'StoreImport/lst')->name('supplyStoreOrderDeliveryImportLst')->option([ + '_alias' => '导入记录', + ]); + Route::get('detail/:id', 'StoreImport/detail')->name('supplyStoreOrderDeliveryImportDetail')->option([ + '_alias' => '详情', + ]); + Route::get('excel/:id', 'StoreImport/export')->name('supplyStoreOrderDeliveryImportExcel')->option([ + '_alias' => '导出', + ]); + })->prefix('supply.store.')->option([ + '_path' => '/order/list', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyStoreExcelLst', + '_path' =>'/order/list', + '_alias' => '导出列表', + '_auth' => true, + ], + [ + '_name' =>'supplyStoreExcelDownload', + '_path' =>'/order/list', + '_alias' => '导出下载', + '_auth' => true, + ], + + ] + ]); + + +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/product.php b/route/supply/product.php new file mode 100644 index 00000000..3474255a --- /dev/null +++ b/route/supply/product.php @@ -0,0 +1,458 @@ + +// +---------------------------------------------------------------------- +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('store/params', function () { + Route::get('temp/lst', '/lst')->name('supplyStoreParameterTemplateLst')->option([ + '_alias' => '列表', + ]); + Route::get('temp/detail/:id', '/detail')->name('supplyStoreParameterTemplateDetail')->option([ + '_alias' => '详情', + ]); + Route::delete('temp/delete/:id', '/delete')->name('supplyStoreParameterTemplateDelete')->option([ + '_alias' => '删除', + ]); + Route::post('temp/create', '/create')->name('supplyStoreParameterTemplateCreate')->option([ + '_alias' => '添加', + ]); + Route::post('temp/update/:id', '/update')->name('supplyStoreParameterTemplateUpdate')->option([ + '_alias' => '编辑', + ]); + Route::get('temp/select', '/select')->option([ + '_alias' => '筛选列表', + '_auth' => false, + ]); + Route::get('temp/show', '/show')->option([ + '_alias' => '参数', + '_auth' => false, + ]); + })->prefix('admin.parameter.ParameterTemplate')->option([ + '_path' => '/product/specs', + '_auth' => true, + ]); + + //产品规则模板 + Route::group('store/attr/template', function () { + Route::get('lst', '/lst')->name('supplyStoreAttrTemplateLst')->option([ + '_alias' => '列表', + ]); + Route::get('list', '/getlist')->option([ + '_alias' => '筛选', + '_auth' => false, + ]); + Route::post('create', '/create')->name('supplyStoreAttrTemplateCreate')->option([ + '_alias' => '添加 ', + ]); + Route::delete(':id', '/delete')->name('supplyStoreAttrTemplateDelete')->option([ + '_alias' => '删除', + ]); + Route::post(':id', '/update')->name('supplyStoreAttrTemplateUpdate')->option([ + '_alias' => '文件类型', + ]); + })->prefix('supply.store.StoreAttrTemplate')->option([ + '_path' => '/product/attr', + '_auth' => true, + ]); + + //商品分类 + Route::group('store/category', function () { + Route::get('create/form', '/createForm')->name('supplyStoreCategoryCreateForm')->option([ + '_alias' => '添加表单', + '_auth' => false, + '_form' => 'supplyStoreCategoryCreate', + ]); + Route::get('update/form/:id', '/updateForm')->name('supplyStoreCategoryUpdateForm')->option([ + '_alias' => '编辑表单', + '_auth' => false, + '_form' => 'supplyStoreCategoryUpdate', + ]); + Route::post('update/:id', '/update')->name('supplyStoreCategoryUpdate')->option([ + '_alias' => '编辑', + ]); + Route::get('lst', '/lst')->name('supplyStoreCategoryLst')->option([ + '_alias' => '列表', + ]); + Route::get('detail/:id', '/detail')->name('supplyStoreCategoryDtailt')->option([ + '_alias' => '详情', + ]); + Route::post('create', '/create')->name('supplyStoreCategoryCreate')->option([ + '_alias' => '添加', + ]); + Route::delete('delete/:id', '/delete')->name('supplyStoreCategoryDelete')->option([ + '_alias' => '删除', + ]); + Route::post('status/:id', '/switchStatus')->name('supplyStoreCategorySwitchStatus')->option([ + '_alias' => '修改状态', + ]); + Route::get('list', '/getList')->option([ + '_alias' => '筛选', + '_auth' => false, + ])->append(['type' => 1]); + Route::get('select', '/getTreeList')->option([ + '_alias' => '树形', + '_auth' => false, + ]); + Route::get('brandlist', '/BrandList')->option([ + '_alias' => '品牌列表', + '_auth' => false, + ]); + })->prefix('admin.store.StoreCategory')->option([ + '_path' => '/product/classify', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyUploadImage', + '_path' =>'/product/classify', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' =>'supplyAttachmentLst', + '_path' =>'/product/classify', + '_alias' => '图片列表', + '_auth' => true, + ], + ] + ]); + + //商品 + Route::group('store/product', function () { + Route::get('config', '/config')->option([ + '_alias' => '配置', + '_auth' => false, + ]); + Route::get('lst_filter', '/getStatusFilter')->name('supplyStoreProductLstFilter')->option([ + '_alias' => '头部统计', + ]); + Route::get('lst', '/lst')->name('supplyStoreProductLst')->option([ + '_alias' => '列表', + ]); + Route::get('list', '/lst')->option([ + '_alias' => '列表', + '_auth' => false, + ]); + Route::post('create', '/create')->name('supplyStoreProductCreate')->option([ + '_alias' => '添加', + ]); + Route::get('detail/:id', '/detail')->name('supplyStoreProductDetail')->option([ + '_alias' => '详情', + ]); + Route::get('temp_key', '/temp_key')->name('supplyStoreProductTempKey')->option([ + '_alias' => '上传视频配置', + ]); + Route::post('update/:id', '/update')->name('supplyStoreProductUpdate')->option([ + '_alias' => '编辑', + ]); + Route::post('free_trial/:id', '/freeTrial')->name('supplyStoreProductFreeTrial')->option([ + '_alias' => '免审编辑', + ]); + Route::delete('delete/:id', '/delete')->name('supplyStoreProductDelete')->option([ + '_alias' => '删除', + ]); + Route::delete('destory/:id', '/destory')->name('supplyStoreProductDestory')->option([ + '_alias' => '加入回收站', + ]); + Route::post('restore/:id', '/restore')->name('supplyStoreProductRestore')->option([ + '_alias' => '恢复', + ]); + Route::post('status/:id', '/switchStatus')->name('supplyStoreProductSwitchStatus')->option([ + '_alias' => '上下架', + ]); + Route::post('batch_status', '/batchShow')->name('supplyStoreProductSwitchBatchStatus')->option([ + '_alias' => '批量上下架', + ]); + Route::post('batch_temp', '/batchTemplate')->name('supplyStoreProductSwitchBatchTemplate')->option([ + '_alias' => '批量设置运费模板', + ]); + Route::post('batch_labels', '/batchLabels')->name('supplyStoreProductSwitchBatchLabels')->option([ + '_alias' => '批量设置标签', + ]); + Route::post('batch_hot', '/batchHot')->name('supplyStoreProductSwitchBatchHot')->option([ + '_alias' => '批量设置推荐', + ]); + Route::post('batch_ext', '/batchExtension')->name('supplyStoreProductSwitchBatchExtension')->option([ + '_alias' => '批量设置推荐', + ]); + Route::post('batch_svip', '/batchSvipType')->name('supplyStoreProductSwitchBatchSvipType')->option([ + '_alias' => '批量设置会员价', + ]); + Route::post('sort/:id', '/updateSort')->name('supplyStoreProductUpdateSort')->option([ + '_alias' => '排序', + ]); + Route::post('preview', '/preview')->name('supplyStoreProductPreview')->option([ + '_alias' => '预览', + ]); + Route::post('labels/:id', '/setLabels')->name('supplyStoreProductLabels')->option([ + '_alias' => '标签', + ]); + Route::get('attr_value/:id', '/getAttrValue')->name('supplyStoreProductAttrValue')->option([ + '_alias' => '获取规格', + ]); + Route::post('get_attr_value/:id', '/isFormatAttr')->name('supplyStoreProductFormatAttr')->option([ + '_alias' => '获取规格', + ]); + Route::get('get_batch_list', '/getBatchList')->name('supplyStoreProductGetBatchList')->option([ + '_alias' => '获取批量修改列表', + ]); + Route::post('batch_process', '/batchProcess')->name('supplyStoreProductSwitchBatchProcess')->option([ + '_alias' => '批量修改商品属性', + ]); + Route::get('get_operate_list/:product_id', '/getOperateList')->name('supplyStoreProductGetOperateList')->option([ + '_alias' => '操作记录', + ]); + + })->prefix('supply.store.product.Product')->option([ + '_path' => '/product/list', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyUploadImage', + '_path' =>'/product/list', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' =>'supplyAttachmentLst', + '_path' =>'/product/list', + '_alias' => '图片列表', + '_auth' => true, + ], + + ] + ]); + + + //复制商品 + Route::group('store/productcopy', function () { + Route::get('lst', '/lst')->name('supplyStoreProductCopyLst')->option([ + '_alias' => '列表', + ]); + Route::get('get', '/get')->name('supplyStoreProductCopyGet')->option([ + '_alias' => '获取信息', + ]); + Route::get('count', '/count')->name('supplyStoreProductCopyCount')->option([ + '_alias' => '统计', + ]); + Route::post('save', '/save')->name('supplyStoreProductCopySave')->option([ + '_alias' => '保存', + ]); + })->prefix('supply.store.product.ProductCopy')->option([ + '_path' => '/product/list', + '_auth' => true, + ]); + + + //商品评价管理 + Route::group('store/reply', function () { + Route::get('lst', '/lst')->name('supplyProductReplyLst')->option([ + '_alias' => '列表', + ]); + Route::get('form/:id', '/replyForm')->name('supplyProductReplyForm')->option([ + '_alias' => '回复表单', + ]); + Route::post('reply/:id', '/reply')->name('supplyProductReplyReply')->option([ + '_alias' => '回复', + ]); + })->prefix('admin.store.StoreProductReply')->option([ + '_path' => '/product/reviews', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyUploadImage', + '_path' =>'/product/reviews', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' =>'supplyAttachmentLst', + '_path' =>'/product/reviews', + '_alias' => '图片列表', + '_auth' => true, + ], + ] + ]); + + Route::group('store/reply', function () { + Route::post('sort/:id', '/changeSort')->name('supplyProductReplySort')->option([ + '_alias' => '排序', + ]); + })->prefix('supply.store.StoreProductReply')->option([ + '_path' => '/product/reviews', + '_auth' => true, + ]);; + + + //商品标签 + Route::group('product/label', function () { + Route::get('lst', '/lst')->name('supplyStoreProductLabelLst')->option([ + '_alias' => '列表', + ]); + Route::get('create/form', '/createForm')->name('supplyStoreProductLabelCreateForm')->option([ + '_alias' => '添加表单', + '_auth' => false, + '_form' => 'supplyStoreProductLabelCreate', + ]); + Route::post('create', '/create')->name('supplyStoreProductLabelCreate')->option([ + '_alias' => '添加', + ]); + Route::get('update/:id/form', '/updateForm')->name('supplyStoreProductLabelUpdateForm')->option([ + '_alias' => '编辑表单', + '_auth' => false, + '_form' => 'supplyStoreProductLabelUpdate', + ]); + Route::post('update/:id', '/update')->name('supplyStoreProductLabelUpdate')->option([ + '_alias' => '编辑', + ]); + Route::get('detail/:id', '/detail')->name('supplyStoreProductLabelDetail')->option([ + '_alias' => '详情', + ]); + Route::delete('delete/:id', '/delete')->name('supplyStoreProductLabelDelete')->option([ + '_alias' => '删除', + ]); + Route::post('status/:id', '/switchWithStatus')->name('supplyStoreProductLabelStatus')->option([ + '_alias' => '修改状态', + ]); + Route::get('option', '/getOptions')->option([ + '_alias' => '筛选', + '_auth' => false, + ]); + + })->prefix('supply.store.product.ProductLabel')->option([ + '_path' => '/product/label', + '_auth' => true, + ]); + + + Route::group('discounts/', function () { + Route::post('create','/create')->name('supplyStoreDiscountsCreate')->option([ + '_alias' => '添加', + ]); + Route::post('update/:id','/update')->name('supplyStoreDiscountsUpdate')->option([ + '_alias' => '编辑', + ]); + Route::get('lst','/lst')->name('supplyStoreDiscountsLst')->option([ + '_alias' => '列表', + ]); + Route::get('detail/:id','/detail')->name('supplyStoreDiscountsDetail')->option([ + '_alias' => '详情', + ]); + Route::delete('delete/:id','/delete')->name('supplyStoreDiscountsDelete')->option([ + '_alias' => '删除', + ]); + Route::post('status/:id','/switchStatus')->name('supplyStoreDiscountsStatus')->option([ + '_alias' => '修改状态', + ]); + })->prefix('supply.store.product.Discounts')->option([ + '_path' => '/marketing/discounts/list', + '_auth' => true, + '_append'=> [ + [ + '_name' =>'supplyUploadImage', + '_path' =>'/marketing/discounts/list', + '_alias' => '上传图片', + '_auth' => true, + ], + [ + '_name' =>'supplyAttachmentLst', + '_path' =>'/marketing/discounts/list', + '_alias' => '图片列表', + '_auth' => true, + ], + ] + ]); + + //保障服务 + Route::group('guarantee',function(){ + Route::get('list','/list')->option([ + '_alias' => '列表', + '_auth' => false, + ]); + Route::get('select','/select')->option([ + '_alias' => '筛选', + '_auth' => false, + ]); + Route::get('lst','/lst')->name('supplyGuaranteeLst')->option([ + '_alias' => '列表', + ]); + Route::post('create','/create')->name('supplyGuaranteeCreate')->option([ + '_alias' => '添加', + ]); + Route::post('update/:id','/update')->name('supplyGuaranteeUpdate')->option([ + '_alias' => '编辑', + ]); + Route::get('detail/:id','/detail')->name('supplyGuaranteeDetail')->option([ + '_alias' => '详情', + ]); + Route::delete('delete/:id','/delete')->name('supplyGuaranteeDelete')->option([ + '_alias' => '删除', + ]); + Route::post('sort/:id','/sort')->name('supplyGuaranteeSort')->option([ + '_alias' => '排序', + ]); + Route::post('status/:id','/switchStatus')->name('supplyGuaranteeStatus')->option([ + '_alias' => '修改状态', + ]); + })->prefix('supply.store.guarantee.GuaranteeTemplate')->option([ + '_path' => '/config/guarantee', + '_auth' => true, + ]); + + + //商品单位 + Route::group('product/unit', function () { + Route::get('list', '/list')->name('supplyStoreProductUnitLst')->option([ + '_alias' => '商品单位列表', + ]); + Route::get('create/form', '/createForm')->name('supplyStoreProductUnitCreateForm')->option([ + '_alias' => '商品单位添加表单', + '_auth' => false, + '_form' => 'supplyStoreProductUnitCreate', + ]); + Route::post('create', '/create')->name('supplyStoreProductUnitCreate')->option([ + '_alias' => '商品单位添加', + ]); + Route::get('update/:id/form', '/updateForm')->name('supplyStoreProductUnitUpdateForm')->option([ + '_alias' => '商品单位编辑表单', + '_auth' => false, + '_form' => 'supplyStoreProductUnitUpdate', + ]); + Route::post('update/:id', '/update')->name('supplyStoreProductUnitUpdate')->option([ + '_alias' => '商品单位编辑', + ]); + Route::delete('delete/:id', '/delete')->name('supplyStoreProductUnitDelete')->option([ + '_alias' => '商品单位删除', + ]); + Route::get('option', '/getSelectList')->option([ + '_alias' => '筛选', + '_auth' => false, + ]); + + })->prefix('supply.store.product.ProductUnit')->option([ + '_path' => '/product/unit', + '_auth' => true, + ]); + + + + +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/role.php b/route/supply/role.php new file mode 100644 index 00000000..96941518 --- /dev/null +++ b/route/supply/role.php @@ -0,0 +1,129 @@ + +// +---------------------------------------------------------------------- +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('system/role', function () { + Route::get('lst', '/getList')->name('supplyRoleGetList')->option([ + '_alias' => '列表', + '_auth' => false, + ]); + Route::post('create', '/create')->name('supplyRoleCreate')->option([ + '_alias' => '添加', + '_auth' => false, + ]); + Route::get('create/form', '/createForm')->name('supplyRoleCreateForm')->option([ + '_alias' => '添加表单', + '_auth' => false, + '_form' => 'supplyRoleCreate', + ]); + Route::post('update/:id', '/update')->name('supplyRoleUpdate')->option([ + '_alias' => '编辑', + '_auth' => false, + ]); + Route::get('update/form/:id', '/updateForm')->name('supplyRoleUpdateForm')->option([ + '_alias' => '编辑表单', + '_auth' => false, + '_form' => 'supplyRoleUpdate', + ]); + Route::post('status/:id', '/switchStatus')->name('supplyRoleStatus')->option([ + '_alias' => '修改状态', + '_auth' => false, + ]); + Route::delete('delete/:id', '/delete')->name('supplyRoleDelete')->option([ + '_alias' => '删除', + '_auth' => false, + ]); + })->prefix('supply.system.auth.Role')->option([ + '_path' => '/setting/systemRole', + '_auth' => true, + ]); + + //Admin管理 + Route::group('system/admin', function () { + Route::get('lst', '/getList')->name('supplyAdminLst')->option([ + '_alias' => '列表', + ]); + Route::post('status/:id', '/switchStatus')->name('supplyAdminStatus')->option([ + '_alias' => '修改状态', + ]); + Route::post('create', '/create')->name('supplyAdminCreate')->option([ + '_alias' => '添加', + ]); + Route::get('create/form', '/createForm')->name('supplyAdminCreateForm')->option([ + '_alias' => '添加表单', + '_auth' => false, + '_form' => 'supplyAdminCreate', + ]); + Route::post('update/:id', '/update')->name('supplyAdminUpdate')->option([ + '_alias' => '编辑', + ]); + Route::get('update/form/:id', '/updateForm')->name('supplyAdminUpdateForm')->option([ + '_alias' => '编辑表单', + '_auth' => false, + '_form' => 'supplyAdminUpdate', + ]); + Route::post('password/:id', '/password')->name('supplyAdminPassword')->option([ + '_alias' => '修改密码', + ]); + Route::get('password/form/:id', '/passwordForm')->name('supplyAdminPasswordForm')->option([ + '_alias' => '修改密码表单', + '_auth' => false, + '_form' => 'supplyAdminPassword', + ]); + Route::delete('delete/:id', '/delete')->name('supplyAdminDelete')->option([ + '_alias' => '删除', + ]); + })->prefix('supply.system.admin.SupplyAdmin')->option([ + '_path' => '/setting/systemAdmin', + '_auth' => true, + ]); + + Route::get('system/admin/log', 'admin.system.admin.AdminLog/lst')->name('supplyAdminLog')->option([ + '_alias' => '操作日志', + '_path' => '/setting/systemLog', + + ]); + + Route::group('system/admin', function () { + Route::get('edit/form', '/editForm')->name('supplyAdminEditForm')->option([ + '_alias' => '修改信息表单', + '_auth' => false, + '_form' => 'supplyAdminEdit', + ]); + Route::post('edit', '/edit')->name('supplyAdminEdit')->option([ + '_alias' => '修改信息', + ]); + Route::get('edit/password/form', '/editPasswordForm')->name('supplyAdminEditPasswordForm')->option([ + '_alias' => '修改密码表单', + '_auth' => false, + '_form' => 'supplyAdminEditPassword', + ]); + Route::post('edit/password', '/editPassword')->name('supplyAdminEditPassword')->option([ + '_alias' => '修改密码', + ]); + })->prefix('supply.system.admin.SupplyAdmin')->option([ + '_path' => 'self', + '_auth' => true, + ]); + + +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/service.php b/route/supply/service.php new file mode 100644 index 00000000..88a6e875 --- /dev/null +++ b/route/supply/service.php @@ -0,0 +1,93 @@ + +// +---------------------------------------------------------------------- +use app\common\middleware\AllowOriginMiddleware; +use app\common\middleware\LogMiddleware; +use app\common\middleware\MerchantAuthMiddleware; +use app\common\middleware\MerchantCheckBaseInfoMiddleware; +use app\common\middleware\MerchantTokenMiddleware; +use think\facade\Route; + +Route::group(function () { + + //客服 + Route::group('service', function () { + Route::get('list', 'StoreService/lst')->name('supplyServiceLst')->option([ + '_alias' => '列表', + ]); + Route::post('login/:id', 'StoreService/login')->name('supplyServiceLogin')->option([ + '_alias' => '登录', + ]); + Route::post('create', 'StoreService/create')->name('supplyServiceCreate')->option([ + '_alias' => '添加', + ]); + Route::get('create/form', 'StoreService/createForm')->name('supplyServiceCreateForm')->option([ + '_alias' => '添加表单', + '_auth' => false, + '_form' => 'supplyServiceCreate', + ]); + Route::post('update/:id', 'StoreService/update')->name('supplyServiceUpdate')->option([ + '_alias' => '编辑', + ]); + Route::get('update/form/:id', 'StoreService/updateForm')->name('supplyServiceUpdateForm')->option([ + '_alias' => '编辑表单', + '_auth' => false, + '_form' => 'supplyServiceUpdate', + ]); + Route::post('status/:id', 'StoreService/changeStatus')->name('supplyServiceSwitchStatus')->option([ + '_alias' => '修改状态', + ]); + Route::delete('delete/:id', 'StoreService/delete')->name('supplyServiceDelete')->option([ + '_alias' => '删除', + ]); + Route::get('/:id/user', 'StoreService/serviceUserList')->name('supplyServiceServiceUserList')->option([ + '_alias' => '客服的全部用户 ', + ]); + Route::get('/:id/:uid/lst', 'StoreService/getUserMsnByService')->name('supplyServiceServiceUserLogLst')->option([ + '_alias' => '用户与客服聊天记录', + ]); + Route::get('mer/:id/user', 'StoreService/supplyUserList')->name('supplyServiceServiceSupplyUserList')->option([ + '_alias' => '客服的聊天用户列表', + ]); + Route::get('/:id/lst', 'StoreService/getUserMsnBySupply')->name('supplyServiceSupplyUserLogLst')->option([ + '_alias' => '用户与商户聊天记录', + ]); + })->prefix('supply.store.service.')->option([ + '_path' => '/config/service', + '_auth' => true, + ]); + //客服自动回复 + Route::group('service/reply', function () { + Route::get('list', 'StoreServiceReply/lst')->name('supplyServiceReplyLst')->option([ + '_alias' => '列表', + ]); + Route::post('create', 'StoreServiceReply/create')->name('supplyServiceReplyCreate')->option([ + '_alias' => '添加', + ]); + Route::post('update/:id', 'StoreServiceReply/update')->name('supplyServiceReplyUpdate')->option([ + '_alias' => '编辑', + ]); + Route::post('status/:id', 'StoreServiceReply/changeStatus')->name('supplyServiceReplyStatus')->option([ + '_alias' => '切换状态', + ]); + Route::delete('delete/:id', 'StoreServiceReply/delete')->name('supplyServiceReplyDelete')->option([ + '_alias' => '删除', + ]); + })->prefix('supply.store.service.')->option([ + '_path' => '/systemForm/customer_keyword', + '_auth' => true, + ]); + + +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/system.php b/route/supply/system.php new file mode 100644 index 00000000..dc736341 --- /dev/null +++ b/route/supply/system.php @@ -0,0 +1,170 @@ + +// +---------------------------------------------------------------------- +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::get('excel/download/express', 'supply.store.Excel/downloadExpress'); + //打印机 + Route::group('store/printer', function () { + //lst + Route::get('lst','/lst')->name('supplyStorePrinterLst')->option([ + '_alias' => '列表', + ]); + + //添加 + Route::get('create/form','/createForm') + ->name('supplyStorePrinterCreateForm')->option([ + '_alias' => '添加表单', + '_auth' => false, + '_form' => 'supplyStorePrinterCreate', + ]); + Route::post('create','/create') + ->name('supplyStorePrinterCreate')->option([ + '_alias' => '添加', + ]); + //编辑 + Route::get('update/:id/form','/updateForm') + ->name('supplyStorePrinterCreate')->option([ + '_alias' => '编辑表单', + '_auth' => false, + '_form' => 'supplyStorePrinterUpdate', + ]); + Route::post('update/:id','/update') + ->name('supplyStorePrinterUpdate')->option([ + '_alias' => '编辑', + ]); + + //取消 + Route::post('status/:id','/switchWithStatus') + ->name('supplyStorePrinterStatus')->option([ + '_alias' => '取消', + ]); + + Route::delete('delete/:id','/delete') + ->name('supplyStorePrinterDelete')->option([ + '_alias' => '删除', + ]); + + })->prefix('supply.store.StorePrinter')->option([ + '_path' => '/setting/printer/list', + '_auth' => true, + ]); + + Route::group('statistics', function () { + Route::get('main', '/main')->name('supplyStatisticsMain')->option([ + '_alias' => '所有数据', + ]); + Route::get('order', '/order')->name('supplyStatisticsOrder')->option([ + '_alias' => '支付订单', + ]); + Route::get('user', '/user')->name('supplyStatisticsUser')->option([ + '_alias' => '成交客户', + ]); + Route::get('user_rate', '/userRate')->name('supplyStatisticsUserRate')->option([ + '_alias' => '成交客户比', + ]); + Route::get('product', '/product')->name('supplyStatisticsProduct')->option([ + '_alias' => '商品支付排行', + ]); + Route::get('product_visit', '/productVisit')->name('supplyStatisticsProductVisit')->option([ + '_alias' => '商品访问排行', + ]); + Route::get('product_cart', '/productCart')->name('supplyStatisticsProductCart')->option([ + '_alias' => '商品加购排行', + ]); + Route::get('get_supply_count', '/getSupplyCount')->name('supplyStatisticsSupplyCount')->option([ + '_alias' => '首页未处理业务统计', + ]); + Route::get('get_supply_todo', '/getSupplyTodo')->name('supplyStatisticsSupplyTodo')->option([ + '_alias' => '待办事项', + ]); + Route::get('get_product_sales_price_top', '/getProductSalesPriceTop')->name('supplyStatisticsProductSalesPriceTop')->option([ + '_alias' => '获取商户代办统计', + ]); + })->prefix('supply.Common')->option([ + '_path' => '/dashboard', + '_auth' => true, + ]); + + //系统公告 + Route::group('notice', function () { + Route::get('lst', '/lst')->name('systemNoticeLogList')->option([ + '_alias' => '列表', + ]); + Route::post('read/:id', '/read')->name('systemNoticeLogRead')->option([ + '_alias' => '已读', + ]); + Route::delete('del/:id', '/del')->name('systemNoticeLogDel')->option([ + '_alias' => '删除', + ]); + Route::get('unread_count', '/unreadCount')->name('systemNoticeLogUnreadCount')->option([ + '_alias' => '未读统计', + ]); + })->prefix('supply.system.notice.SystemNoticeLog')->option([ + '_path' => '/station/notice', + '_auth' => true, + ]); + + //配置 + Route::group( function () { + Route::get('config', 'supply.Common/config'); + Route::get('menus', 'admin.system.auth.Menu/supplyMenus')->append(['merchant' => 1]); + Route::get('logout', 'supply.system.admin.Login/logout'); + //获取版本号 + Route::get('version', 'admin.Common/version'); + Route::get('info', 'supply.system.Supply/info'); + Route::get('margin/code', 'supply.system.Supply/getMarginQrCode')->append(['type' => 10]); + Route::get('margin/make_code', 'supply.system.Supply/getMarginQrCode')->append(['type' => 11]); + Route::get('margin/lst', 'supply.system.Supply/getMarginLst'); + Route::post('upload/certificate', 'supply.Common/uploadCertificate'); + Route::post('upload/video', 'supply.Common/uploadVideo'); + })->option([ + '_path' => '', + '_auth' => false, + ]); + + Route::group( function () { + Route::get('update/form', 'supply.system.Supply/updateForm')->name('supplyUpdateForm')->option([ + '_alias' => '编辑', + '_auth' => false, + ]); + + Route::post('info/update', 'supply.system.Supply/update')->name('supplyUpdate')->option([ + '_alias' => '资料更新', + ]); + })->option([ + '_path' => '/systemForm/Basics/mer_base', + '_auth' => true, + ]); + + Route::group( function () { + Route::get('take/info', 'supply.system.Supply/takeInfo')->name('supplyTakeInfo')->option([ + '_alias' => '到店自提信息', + '_auth' => false, + ]); + Route::post('take/update', 'supply.system.Supply/take')->name('supplyTakeUpdate')->option([ + '_alias' => '保存到店自提信息', + ]); + })->option([ + '_path' => '/systemForm/modifyStoreInfo', + '_auth' => true, + ]); +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/users.php b/route/supply/users.php new file mode 100644 index 00000000..666697df --- /dev/null +++ b/route/supply/users.php @@ -0,0 +1,109 @@ + +// +---------------------------------------------------------------------- +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::get('user/search_log', 'admin.user.User/SearchLog')->name('supplyUserSearchLog')->option([ + '_alias' => '搜索记录', + '_path' => '/user/searchRecord', + '_auth' => true, + ]); + + //商户用户列表 + Route::group('user', function () { + Route::get('lst', '/getList')->name('supplyUserLst')->option([ + '_alias' => '列表', + ]); + //修改用户标签 + Route::get('change_label/form/:id', '/changeLabelForm')->name('supplyUserChangeLabelForm')->option([ + '_alias' => '修改标签表单', + '_auth' => false, + '_form' => 'supplyUserChangeLabel', + ]); + Route::post('change_label/:id', '/changeLabel')->name('supplyUserChangeLabel')->option([ + '_alias' => '修改标签', + ]); + Route::get('order/:uid', '/order')->name('supplyUserOrder')->option([ + '_alias' => '订单列表', + ]); + Route::get('coupon/:uid', '/coupon')->name('supplyUserCoupon')->option([ + '_alias' => '优惠券', + ]); + })->prefix('supply.user.UserSupply')->option([ + '_path' => '/user/list', + '_auth' => true, + ]); + + //用户自动标签 + Route::group('auto_label', function () { + Route::get('lst', '/getList')->name('supplyLabelRuleLst')->option([ + '_alias' => '列表', + ]); + Route::post('create', '/create')->name('supplyLabelRuleCreate')->option([ + '_alias' => '添加', + ]); + Route::post('update/:id', '/update')->name('supplyLabelRuleUpdate')->option([ + '_alias' => '编辑', + ]); + Route::delete('delete/:id', '/delete')->name('supplyLabelRuleDelete')->option([ + '_alias' => '删除', + ]); + Route::post('sync/:id', '/sync')->name('supplyLabelRuleSync')->option([ + '_alias' => '自动同步', + ]); + })->prefix('supply.user.LabelRule')->option([ + '_path' => '/user/maticlabel', + '_auth' => true, + ]); + + //手动标签 + Route::group('user/label', function () { + Route::get('lst', '/lst')->name('supplyUserLabelLst')->option([ + '_alias' => '列表', + ]); + Route::post('user/label', '/create')->name('supplyUserLabelCreate')->option([ + '_alias' => '添加', + ]); + Route::get('form', '/createForm')->name('supplyUserLabelCreateForm')->option([ + '_alias' => '添加表单', + '_auth' => false, + '_form' => 'supplyUserLabelCreate', + ]); + Route::delete(':id', '/delete')->name('supplyUserLabelDelete')->option([ + '_alias' => '删除', + ]); + Route::post(':id', '/update')->name('supplyUserLabelUpdate')->option([ + '_alias' => '编辑', + ]); + Route::get('form/:id', '/updateForm')->name('supplyUserLabelUpdateForm')->option([ + '_alias' => '编辑表单', + '_auth' => false, + '_form' => 'supplyUserLabelUpdate', + ]); + })->prefix('admin.user.UserLabel')->option([ + '_path' => '/user/label', + '_auth' => true, + ]); + + + + +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class); diff --git a/route/supply/yihaotong.php b/route/supply/yihaotong.php new file mode 100644 index 00000000..77789e66 --- /dev/null +++ b/route/supply/yihaotong.php @@ -0,0 +1,66 @@ + +// +---------------------------------------------------------------------- +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('serve',function(){ + Route::get('meal','Serve/meal')->name('supplyServeMeal')->option([ + '_alias' => '套餐列表', + ]); + Route::get('code','Serve/getQrCode')->name('supplyServeCode')->option([ + '_alias' => '支付二维码', + ]); + Route::get('paylst','Serve/lst')->name('supplyServeLst')->option([ + '_alias' => '购买记录', + ]); + Route::get('detail/:id','Serve/detail')->name('supplyServeDetail')->option([ + '_alias' => '详情', + ]); + Route::get('info','Config/info')->name('supplyServeInfo')->option([ + '_alias' => '账号信息', + ]); + })->prefix('supply.system.serve.')->option([ + '_path' => '/setting/sms/sms_config/index', + '_auth' => true, + ]); + + Route::group('serve',function(){ + Route::get('config','Config/getConfig')->name('supplyServeGetConfig')->option([ + '_alias' => '配置', + '_auth' => false, + '_form' => 'supplyServeSetConfig', + ]); + Route::post('config','Config/setConfig')->name('supplyServeSetConfig')->option([ + '_alias' => '保存配置', + ]); + })->prefix('supply.system.serve.')->option([ + '_path' => '/setting/sms/dumpConfig', + '_auth' => true, + ]); + + Route::get('/dump_lst','admin.system.serve.Export/dumpLst')->name('supplyServeExportDumpLst')->option([ + '_alias' => '使用记录', + '_path' => '/setting/sms/sms_config/index', + ]); + + +})->middleware(AllowOriginMiddleware::class) + ->middleware(MerchantTokenMiddleware::class, true) + ->middleware(MerchantAuthMiddleware::class) + ->middleware(MerchantCheckBaseInfoMiddleware::class) + ->middleware(LogMiddleware::class);