123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490 |
- <?php
- // +----------------------------------------------------------------------
- // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2016~2020 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\CheckSiteOpenMiddleware;
- use app\common\middleware\InstallMiddleware;
- 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(config('admin.merchant_prefix'), function () {
- Route::miss(function () {
- $DB = DIRECTORY_SEPARATOR;
- return view(app()->getRootPath() . 'public' . $DB . 'mer.html');
- });
- })->middleware(InstallMiddleware::class)
- ->middleware(CheckSiteOpenMiddleware::class);
- Route::group(config('admin.api_merchant_prefix') . '/', function () {
- Route::group(function () {
- Route::get('menus', 'admin.system.auth.Menu/menus')->append(['merchant' => 1]);
- Route::get('logout', 'merchant.system.admin.Login/logout');
- //获取版本号
- Route::get('version', 'admin.Common/version');
- Route::get('info', 'merchant.system.Merchant/info');
- //Route::get('user/list', 'merchant.user.User/getUserList');
- Route::get('update/form', 'merchant.system.Merchant/updateForm')->name('merchantUpdateForm');
- Route::post('info/update', 'merchant.system.Merchant/update')->name('merchantUpdate');
- //导出文件
- Route::get('excel/lst', 'merchant.store.Excel/lst')->name('merchantStoreExcelLst');
- Route::get('excel/download/:id', 'merchant.store.Excel/download')->name('merchantStoreExcelDownload');
- Route::get('excel/download_express', 'merchant.store.Excel/downloadExpress')->name('merchantStoreExcelDownloadExpress');
- //配置
- Route::get('config/:key', 'admin.system.config.Config/form')->name('merchantConfigForm');
- Route::get('config/others/group_buying', 'admin.system.config.ConfigOthers/getGroupBuying')->name('merchantConfigGroupBuying');
- Route::post('config/save/:key', 'admin.system.config.ConfigValue/save')->name('merchantConfigSave');
- Route::group('take', function () {
- Route::get('info', 'merchant.system.Merchant/takeInfo')->name('merchantTakeInfo');
- Route::post('update', 'merchant.system.Merchant/take')->name('merchantTakeUpdate');
- });
- Route::group('service', function () {
- Route::get('list', 'StoreService/lst')->name('merchantServiceLst');
- Route::post('create', 'StoreService/create')->name('merchantServiceCreate');
- Route::get('create/form', 'StoreService/createForm')->name('merchantServiceCreateForm');
- Route::post('update/:id', 'StoreService/update')->name('merchantServiceUpdate');
- Route::get('update/form/:id', 'StoreService/updateForm')->name('merchantServiceUpdateForm');
- Route::post('status/:id', 'StoreService/changeStatus')->name('merchantServiceSwitchStatus');
- Route::delete('delete/:id', 'StoreService/delete')->name('merchantServiceDelete');
- Route::get('/:id/user', 'StoreService/serviceUserList')->name('merchantServiceServiceUserList');
- Route::get('/:id/:uid/lst', 'StoreService/getUserMsnByService')->name('merchantServiceServiceUserLogLst');
- Route::get('mer/:id/user', 'StoreService/merchantUserList')->name('merchantServiceServiceMerchantUserList');
- Route::get('/:id/lst', 'StoreService/getUserMsnByMerchant')->name('merchantServiceMerchantUserLogLst');
- })->prefix('merchant.store.service.');
- //身份规则
- Route::group('system/role', function () {
- Route::get('lst', '/getList')->name('merchantRoleGetList');
- Route::post('create', '/create')->name('merchantRoleCreate');
- Route::get('create/form', '/createForm')->name('merchantRoleCreateForm');
- Route::post('update/:id', '/update')->name('merchantRoleUpdate');
- Route::get('update/form/:id', '/updateForm')->name('merchantRoleUpdateForm');
- Route::post('status/:id', '/switchStatus')->name('merchantRoleStatus');
- Route::delete('delete/:id', '/delete')->name('merchantRoleDelete');
- })->prefix('merchant.system.auth.Role');
- //Admin管理
- Route::group('system/admin', function () {
- Route::get('lst', '/getList')->name('merchantAdminLst');
- Route::post('status/:id', '/switchStatus')->name('merchantAdminStatus');
- Route::post('create', '/create')->name('merchantAdminCreate');
- Route::get('create/form', '/createForm')->name('merchantAdminCreateForm');
- Route::post('update/:id', '/update')->name('merchantAdminUpdate');
- Route::get('update/form/:id', '/updateForm')->name('merchantAdminUpdateForm');
- Route::post('password/:id', '/password')->name('merchantAdminPassword');
- Route::get('password/form/:id', '/passwordForm')->name('merchantAdminPasswordForm');
- Route::delete('delete/:id', '/delete')->name('merchantAdminDelete');
- Route::get('edit/form', '/editForm')->name('merchantAdminEditForm');
- Route::post('edit', '/edit')->name('merchantAdminEdit');
- Route::get('edit/password/form', '/editPasswordForm')->name('merchantAdminEditPasswordForm');
- Route::post('edit/password', '/editPassword')->name('merchantAdminEditPassword');
- })->prefix('merchant.system.admin.MerchantAdmin');
- //附件管理
- Route::group('system/attachment', function () {
- Route::get('lst', '/getList')->name('merchantAttachmentLst');
- Route::delete('delete', '/delete')->name('merchantAttachmentDelete');
- Route::post('category', '/batchChangeCategory')->name('merchantAttachmentBatchChangeCategory');
- Route::get('update/:id/form', '/updateForm')->name('merchantAttachmentUpdateForm');
- Route::post('update/:id', '/update')->name('merchantAttachmentUpdate');
- })->prefix('admin.system.attachment.Attachment');
- //上传图片
- Route::post('upload/image/:id/:field', 'admin.system.attachment.Attachment/image')->name('merchantUploadImage');
- Route::get('system/admin/log', 'admin.system.admin.AdminLog/lst')->name('merchantAdminLog');
- //附件分类管理
- Route::group('system/attachment/category', function () {
- Route::get('formatLst', '/getFormatList')->name('merchantAttachmentCategoryGetFormatList');
- Route::get('create/form', '/createForm')->name('merchantAttachmentCategoryCreateForm');
- Route::get('update/form/:id', '/updateForm')->name('merchantAttachmentCategoryUpdateForm');
- Route::post('create', '/create')->name('merchantAttachmentCategoryCreate');
- Route::post('update/:id', '/update')->name('merchantAttachmentCategoryUpdate');
- Route::delete('delete/:id', '/delete')->name('merchantAttachmentCategoryDelete');
- })->prefix('admin.system.attachment.AttachmentCategory');
- //产品规则模板
- Route::group('store/attr/template', function () {
- Route::get('lst', '/lst')->name('merchantStoreAttrTemplateLst');
- Route::get('list', '/getlist');
- Route::post('create', '/create')->name('merchantStoreAttrTemplateCreate');
- Route::delete(':id', '/delete')->name('merchantStoreAttrTemplateDelete');
- Route::post(':id', '/update')->name('merchantStoreAttrTemplateUpdate');
- })->prefix('merchant.store.StoreAttrTemplate');
- //商品分类
- Route::group('store/category', function () {
- Route::get('create/form', '/createForm')->name('merchantStoreCategoryCreateForm');
- Route::get('update/form/:id', '/updateForm')->name('merchantStoreCategoryUpdateForm');
- Route::post('update/:id', '/update')->name('merchantStoreCategoryUpdate');
- Route::get('lst', '/lst')->name('merchantStoreCategoryLst');
- Route::get('detail/:id', '/detail')->name('merchantStoreCategoryDtailt');
- Route::post('create', '/create')->name('merchantStoreCategoryCreate');
- Route::delete('delete/:id', '/delete')->name('merchantStoreCategoryDelete');
- Route::post('status/:id', '/switchStatus')->name('merchantStoreCategorySwitchStatus');
- Route::get('list', '/getList');
- Route::get('select', '/getTreeList');
- Route::get('brandlist', '/BrandList');
- })->prefix('admin.store.StoreCategory');
- //发送优惠券
- Route::group('store/coupon_send', function () {
- Route::get('lst', '/lst')->name('merchantCouponSendLst');
- })->prefix('merchant.store.coupon.CouponSend');
- //优惠券
- Route::group('store/coupon', function () {
- Route::get('create/form', '/createForm')->name('merchantCouponCreateForm');
- Route::get('clone/form/:id', '/cloneForm')->name('merchantCouponIssueCloneForm');
- Route::post('create', '/create')->name('merchantCouponCreate');
- Route::post('status/:id', '/changeStatus')->name('merchantCouponIssueChangeStatus');
- Route::get('lst', '/lst')->name('merchantCouponLst');
- Route::get('issue', '/issue')->name('merchantCouponIssue');
- Route::get('select', '/select');
- Route::post('send', '/send')->name('merchantCouponSendCoupon');
- Route::delete('delete/:id', '/delete')->name('merchantCouponDelete');
- Route::get('detail/:id', '/detail')->name('merchantCouponDetail');
- })->prefix('merchant.store.coupon.Coupon');
- //地址信息
- Route::get('system/city/lst', 'merchant.store.shipping.City/lst');
- //运费模板
- Route::group('store/shipping', function () {
- Route::get('lst', '/lst')->name('merchantStoreShippingTemplateLst');
- Route::get('list', '/getList');
- Route::post('create', '/create')->name('merchantStoreShippingTemplateCreate');
- Route::post('update/:id', '/update')->name('merchantStoreShippingTemplateUpdate');
- Route::get('detail/:id', '/detail')->name('merchantStoreShippingTemplateDetail');
- Route::delete('delete/:id', '/delete')->name('merchantStoreShippingTemplateDelete');
- })->prefix('merchant.store.shipping.ShippingTemplate');
- /* 未使用
- Route::group('store/shipping',function(){
- Route::delete('region/delete/:id','merchant.store.ShippingTemplateRegion/delete')->name('storeShippingTemplateRegionDelete');
- Route::delete('free/delete/:id','merchant.store.ShippingTemplateFree/delete')->name('storeShippingTemplateFreeDelete');
- Route::delete('undelive/delete/:id','merchant.store.ShippingTemplateUndelive/delete')->name('storeShippingTemplateUndeliveDelete');
- });
- */
- //商品
- Route::group('store/product', function () {
- Route::get('config', '/config');
- Route::get('lst_filter', '/getStatusFilter')->name('merchantStoreProductLstFilter');
- Route::get('lst', '/lst')->name('merchantStoreProductLst');
- Route::get('list', '/lst');
- Route::post('create', '/create')->name('merchantStoreProductCreate');
- Route::get('detail/:id', '/detail')->name('merchantStoreProductDetail');
- Route::get('temp_key', '/temp_key')->name('merchantStoreProductTempKey');
- Route::post('update/:id', '/update')->name('merchantStoreProductUpdate');
- Route::delete('delete/:id', '/delete')->name('merchantStoreProductDelete');
- Route::delete('destory/:id', '/destory')->name('merchantStoreProductDestory');
- Route::post('restore/:id', '/restore')->name('merchantStoreProductRestore');
- Route::post('status/:id', '/switchStatus')->name('merchantStoreProductSwitchStatus');
- Route::post('sort/:id', '/updateSort')->name('merchantStoreProductUpdateSort');
- })->prefix('merchant.store.product.Product');
- //秒杀商品
- Route::group('store/seckill_product', function () {
- Route::get('lst_time', '/lst_time');
- Route::get('lst_filter', '/getStatusFilter')->name('merchantStoreSeckillProductLstFilter');
- Route::get('lst', '/lst')->name('merchantStoreSeckillProductLst');
- Route::post('create', '/create')->name('merchantStoreSeckillProductCreate');
- Route::get('detail/:id', '/detail')->name('merchantStoreSeckillProductDetail');
- Route::post('update/:id', '/update')->name('merchantStoreSeckillProductUpdate');
- Route::delete('delete/:id', '/delete')->name('merchantStoreSeckillProductDelete');
- Route::delete('destory/:id', '/destory')->name('merchantStoreSeckillProductDestory');
- Route::post('restore/:id', '/restore')->name('merchantStoreSeckillProductRestore');
- Route::post('status/:id', '/switchStatus')->name('merchantStoreSeckillProductSwitchStatus');
- Route::post('sort/:id', '/updateSort')->name('merchantStoreSeckillProductUpdateSort');
- })->prefix('merchant.store.product.ProductSeckill');
- //预售商品
- Route::group('store/product/presell', function () {
- Route::get('lst', '/lst')->name('merchantStoreProductPresellLst');
- Route::post('create', '/create')->name('merchantStoreProductPresellCreate');
- Route::get('detail/:id', '/detail')->name('merchantStoreProductPresellDetail');
- Route::post('update/:id', '/update')->name('merchantStoreProductPresellUpdate');
- Route::delete('delete/:id', '/delete')->name('merchantStoreProductPresellDelete');
- Route::post('status/:id', '/switchStatus')->name('merchantStoreProductPresellStatus');
- Route::get('number', '/number');
- Route::post('sort/:id', '/updateSort')->name('merchantStoreProductPresellUpdateSort');
- })->prefix('merchant.store.product.ProductPresell');
- //助力商品
- Route::group('store/product/assist', function () {
- Route::get('lst', '/lst')->name('merchantStoreProductAssistLst');
- Route::post('create', '/create')->name('merchantStoreProductAssistCreate');
- Route::get('detail/:id', '/detail')->name('merchantStoreProductAssistDetail');
- Route::post('update/:id', '/update')->name('merchantStoreProductAssistUpdate');
- Route::delete('delete/:id', '/delete')->name('merchantStoreProductAssistDelete');
- Route::post('status/:id', '/switchStatus')->name('merchantStoreProductAssistStatus');
- Route::post('sort/:id', '/updateSort')->name('merchantStoreProductAssistUpdateSort');
- })->prefix('merchant.store.product.ProductAssist');
- //助力活动
- Route::group('store/product/assist_set', function () {
- Route::get('lst', '/lst')->name('merchantStoreProductAssistSetLst');
- Route::get('detail/:id', '/detail')->name('merchantStoreProductAssistSetDetail');
- })->prefix('merchant.store.product.ProductAssistSet');
- //拼团商品
- Route::group('store/product/group', function () {
- Route::get('lst', '/lst')->name('merchantStoreProductGroupLst');
- Route::post('create', '/create')->name('merchantStoreProductGroupCreate');
- Route::get('detail/:id', '/detail')->name('merchantStoreProductGroupDetail');
- Route::post('update/:id', '/update')->name('merchantStoreProductGroupUpdate');
- Route::delete('delete/:id', '/delete')->name('merchantStoreProductGroupDelete');
- Route::post('status/:id', '/switchStatus')->name('merchantStoreProductGroupStatus');
- Route::post('sort/:id', '/updateSort')->name('merchantStoreProductGroupSort');
- })->prefix('merchant.store.product.ProductGroup');
- //拼团活动
- Route::group('store/product/group/buying', function () {
- Route::get('lst', '/lst')->name('merchantStoreProductGroupBuyingLst');
- Route::get('detail/:id', '/detail')->name('merchantStoreProductGroupBuyingDetail');
- })->prefix('merchant.store.product.ProductGroupBuying');
- //复制商品
- Route::group('store/productcopy', function () {
- Route::get('lst', '/lst')->name('merchantStoreProductCopyLst');
- Route::get('get', '/get')->name('merchantStoreProductCopyGet');
- Route::get('count', '/count')->name('merchantStoreProductCopyCount');
- Route::post('save', '/save')->name('merchantStoreProductCopySave');
- })->prefix('merchant.store.product.ProductCopy');
- //直播间
- Route::group('broadcast/room', function () {
- Route::get('lst', '/lst')->name('merchantBroadcastRoomLst');
- Route::get('detail/:id', '/detail')->name('merchantBroadcastRoomDetail');
- Route::get('create/form', '/createForm')->name('merchantBroadcastRoomCreateForm');
- Route::post('create', '/create')->name('merchantBroadcastRoomCreate');
- Route::get('update/form/:id', '/updateForm')->name('merchantBroadcastRoomUpdateForm');
- Route::post('update/:id', '/update')->name('merchantBroadcastRoomUpdate');
- Route::post('status/:id', '/changeStatus')->name('merchantBroadcastRoomChangeStatus');
- Route::post('export_goods', '/exportGoods')->name('merchantBroadcastRoomExportGoods');
- Route::post('rm_goods', '/rmExportGoods')->name('merchantBroadcastRoomRmExportGoods');
- Route::post('mark/:id', '/mark')->name('merchantBroadcastRoomMark');
- Route::get('goods/:id', '/goodsList')->name('merchantBroadcastRoomGoods');
- Route::delete('delete/:id', '/delete')->name('merchantBroadcastRoomDelete');
- })->prefix('merchant.store.broadcast.BroadcastRoom');
- //直播间商品
- Route::group('broadcast/goods', function () {
- Route::get('lst', '/lst')->name('merchantBroadcastGoodsLst');
- Route::get('detail/:id', '/detail')->name('merchantBroadcastGoodsDetail');
- Route::get('create/form', '/createForm')->name('merchantBroadcastGoodsCreateForm');
- Route::post('create', '/create')->name('merchantBroadcastGoodsCreate');
- Route::get('update/form/:id', '/updateForm')->name('merchantBroadcastGoodsUpdateForm');
- Route::post('update/:id', '/update')->name('merchantBroadcastGoodsUpdate');
- Route::post('status/:id', '/changeStatus')->name('merchantBroadcastGoodsChangeStatus');
- Route::post('mark/:id', '/mark')->name('merchantBroadcastGoodsMark');
- Route::delete('delete/:id', '/delete')->name('merchantBroadcastGoodsDelete');
- Route::post('batch_create', '/batchCreate')->name('merchantBroadcastGoodsbatchCreate');
- })->prefix('merchant.store.broadcast.BroadcastGoods');
- // 导入
- Route::group('store/import', function () {
- Route::post('/:type', 'StoreImport/import')->name('merchantStoreOrderDeliveryImport');
- Route::get('lst', 'StoreImport/lst')->name('merchantStoreOrderDeliveryImportLst');
- Route::get('detail/:id', 'StoreImport/detail')->name('merchantStoreOrderDeliveryImportDetail');
- Route::get('excel/:id', 'StoreImport/export')->name('merchantStoreOrderDeliveryImportExcel');
- })->prefix('merchant.store.');
- //Order
- Route::group('store/order', function () {
- Route::get('excel', 'Order/excel')->name('merchantStoreOrderExcel');
- Route::get('printer/:id', 'Order/printer')->name('merchantStoreOrderPrinter');
- Route::get('chart', 'Order/chart')->name('merchantStoreOrderTitle');
- Route::get('takechart', 'Order/takeChart')->name('merchantStoreTakeOrderTitle');
- Route::get('filtter', 'Order/orderType')->name('merchantStoreOrderFiltter');
- Route::get('lst', 'Order/lst')->name('merchantStoreOrderLst');
- Route::get('takelst', 'Order/takeLst')->name('merchantStoreTakeOrderLst');
- Route::get('express/:id', 'Order/express')->name('merchantStoreOrderExpress');
- Route::get('delivery/:id/form', 'Order/deliveryForm')->name('merchantStoreOrderDeliveryForm');
- Route::post('delivery/:id', 'Order/delivery')->name('merchantStoreOrderDelivery');
- Route::get('delivery_export', 'Order/deliveryExport')->name('merchantStoreOrderDeliveryExport');
- Route::get('update/:id/form', 'Order/updateForm')->name('merchantStoreOrderUpdateForm');
- Route::post('update/:id', 'Order/update')->name('merchantStoreOrderUpdate');
- Route::get('detail/:id', 'Order/detail')->name('merchantStoreOrderDetail');
- Route::get('log/:id', 'Order/status')->name('merchantStoreOrderLog');
- Route::get('remark/:id/form', 'Order/remarkForm')->name('merchantStoreOrderRemarkForm');
- Route::post('remark/:id', 'Order/remark')->name('merchantStoreOrderRemark');
- Route::post('verify/:code', 'Order/verify')->name('merchantStoreOrderVerify');
- Route::post('delete/:id', 'Order/delete')->name('merchantStoreOrderDelete');
- Route::get('reconciliation/lst', 'Reconciliation/lst')->name('sysMerchantReconciliationLst');
- Route::get('reconciliation/mark/:id/form', 'Reconciliation/markForm')->name('merchantReconciliationMarkForm');
- Route::post('reconciliation/mark/:id', 'Reconciliation/mark')->name('merchantReconciliationMark');
- Route::post('reconciliation/status/:id', 'Reconciliation/switchStatus')->name('merchantReconciliationSwitchStatus');
- Route::get('reconciliation/:id/order', 'Order/reList')->name('merchantReconciliationOrderReList');
- Route::get('reconciliation/:id/refund', 'RefundOrder/reList')->name('merchantReconciliationRefundReList');
- })->prefix('merchant.store.order.');
- //退款订单
- Route::group('store/refundorder', function () {
- Route::get('lst', '/lst')->name('merchantStoreRefundOrderLst');
- Route::get('detail/:id', '/detail')->name('merchantStoreRefundOrderDetail');
- Route::get('status/:id/form', '/switchStatusForm')->name('merchantStoreRefundOrderSwitchStatusForm');
- Route::post('status/:id', '/switchStatus')->name('merchantStoreRefundOrderSwitchStatus');
- Route::post('refund/:id', '/refundPrice')->name('merchantStoreRefundOrderRefund');
- Route::delete('delete/:id', '/delete')->name('merchantStoreRefundDelete');
- Route::get('mark/:id/form', '/markForm')->name('merchantStoreRefundMarkForm');
- Route::post('mark/:id', '/mark')->name('merchantStoreRefundMark');
- Route::get('log/:id', '/log')->name('merchantStoreRefundLog');
- Route::get('express/:id', '/express')->name('merchantStoreRefundExpress');
- })->prefix('merchant.store.order.RefundOrder');
- Route::group('statistics', function () {
- Route::get('main', '/main')->name('merchantStatisticsMain');
- Route::get('order', '/order')->name('merchantStatisticsOrder');
- Route::get('user', '/user')->name('merchantStatisticsUser');
- Route::get('user_rate', '/userRate')->name('merchantStatisticsUserRate');
- Route::get('product', '/product')->name('merchantStatisticsProduct');
- Route::get('product_visit', '/productVisit')->name('merchantStatisticsProductVisit');
- Route::get('product_cart', '/productCart')->name('merchantStatisticsProductCart');
- })->prefix('merchant.Common');
- //资金明细
- Route::group('financial_record', function () {
- Route::get('list', '/lst')->name('merchantFinancialRecordList');
- Route::get('export', '/export')->name('merchantFinancialRecordExport');
- Route::get('lst', '/getList')->name('merchantFinanciaRecordlLst');
- Route::get('title', '/getTitle')->name('merchantFinancialTitle');
- Route::get('count', '/title')->name('merchantFinancialCount');
- Route::get('detail/:type', '/detail')->name('merchantFinancialRecordDetail');
- Route::get('detail_export/:type', '/exportDetail')->name('merchantFinancialRecordDetailExport');
- })->prefix('admin.system.merchant.FinancialRecord');
- //发票
- Route::group('store/receipt', function () {
- Route::get('lst', '/lst')->name('merchantOrderReceiptLst');
- Route::get('detail/:id', '/detail')->name('merchantOrderReceiptDetail');
- Route::get('set_recipt', '/setRecipt')->name('merchantOrderReceiptSetRecipt');
- Route::post('save_recipt', '/saveRecipt')->name('merchantOrderReceiptSave');
- Route::get('mark/:id/form', '/markForm')->name('merchantOrderReceiptMarkForm');
- Route::post('mark/:id', '/mark')->name('merchantOrderReceiptMark');
- Route::post('update/:id', '/update')->name('merchantOrderReceiptUpdate');
- })->prefix('merchant.store.order.OrderReceipt');
- //商品评价管理
- Route::group('store/reply', function () {
- Route::get('lst', '/lst')->name('merchantProductReplyLst');
- Route::get('form/:id', '/replyForm')->name('merchantProductReplyForm');
- Route::post('reply/:id', '/reply')->name('merchantProductReplyReply');
- })->prefix('admin.store.StoreProductReply');
- //用户自动标签
- Route::group('auto_label', function () {
- Route::get('lst', '/getList')->name('merchantLabelRuleLst');
- Route::post('create', '/create')->name('merchantLabelRuleCreate');
- Route::post('update/:id', '/update')->name('merchantLabelRuleUpdate');
- Route::delete('delete/:id', '/delete')->name('merchantLabelRuleDelete');
- Route::post('sync/:id', '/sync')->name('merchantLabelRuleSync');
- })->prefix('merchant.user.LabelRule');
- //用户标签
- Route::group('user/label', function () {
- Route::get('lst', '/lst')->name('merchantUserLabelLst');
- Route::post('user/label', '/create')->name('merchantUserLabelCreate');
- Route::get('form', '/createForm')->name('merchantUserLabelCreateForm');
- Route::delete(':id', '/delete')->name('merchantUserLabelDelete');
- Route::post(':id', '/update')->name('merchantUserLabelUpdate');
- Route::get('form/:id', '/updateForm')->name('merchantUserLabelUpdateForm');
- })->prefix('admin.user.UserLabel');
- //系统公告
- Route::group('notice', function () {
- Route::get('lst', '/lst')->name('systemNoticeLogList');
- Route::post('read/:id', '/read')->name('systemNoticeLogRead');
- Route::delete('del/:id', '/del')->name('systemNoticeLogDel');
- Route::get('unread_count', '/unreadCount')->name('systemNoticeLogUnreadCount');
- })->prefix('merchant.system.notice.SystemNoticeLog');
- //商户用户列表
- Route::group('user', function () {
- Route::get('lst', '/getList')->name('merchantUserLst');
- //修改用户标签
- Route::get('change_label/form/:id', '/changeLabelForm')->name('merchantUserChangeLabelForm');
- Route::post('change_label/:id', '/changeLabel')->name('merchantUserChangeLabel');
- Route::get('order/:uid', '/order')->name('merchantUserOrder');
- Route::get('coupon/:uid', '/coupon')->name('merchantUserCoupon');
- })->prefix('merchant.user.UserMerchant');
- //商户财务
- Route::group('financial', function () {
- Route::get('lst', 'Financial/lst')->name('merchantFinancialLst');
- Route::get('account/form', 'Financial/accountForm')->name('merchantFinancialAccountForm');
- Route::post('account', 'Financial/accountSave')->name('merchantFinancialAccountSave');
- Route::get('detail/:id', 'Financial/detail')->name('merchantFinancialDetail');
- Route::get('create/form', 'Financial/createForm')->name('merchantFinancialCreateForm');
- Route::post('create', 'Financial/createSave')->name('merchantFinancialCreateSave');
- Route::delete('delete/:id', 'Financial/delete')->name('merchantFinancialDelete');
- Route::get('mark/:id/form', 'Financial/markForm')->name('merchantFinancialMarkForm');
- Route::post('mark/:id', 'Financial/mark')->name('merchantFinancialMark');
- })->prefix('merchant.system.financial.');
- //组合数据
- Route::get('group/detail/:id', 'admin.system.groupData.Group/get')->name('merchantGroupDetail');
- Route::group('group', function () {
- Route::get('data/lst/:groupId', '/lst')->name('merchantGroupDataLst');
- Route::get('data/create/table/:groupId', '/createTable')->name('merchantGroupDataCreateForm');
- Route::post('data/create/:groupId', '/create')->name('merchantGroupDataCreate');
- Route::get('data/update/table/:groupId/:id', '/updateTable')->name('merchantGroupDataUpdateForm');
- Route::post('data/update/:groupId/:id', '/update')->name('merchantGroupDataUpdate');
- Route::delete('data/delete/:id', '/delete')->name('merchantGroupDataDelete');
- Route::post('data/status/:id', '/changeStatus')->name('merchantGroupDataChangeStatus');
- })->prefix('admin.system.groupData.GroupData');
- })->middleware(AllowOriginMiddleware::class)
- ->middleware(MerchantTokenMiddleware::class, true)
- ->middleware(MerchantAuthMiddleware::class)
- ->middleware(MerchantCheckBaseInfoMiddleware::class)
- ->middleware(LogMiddleware::class);
- //不带token认证
- Route::group(function () {
- Route::get('test', 'merchant.system.admin.Login/test');
- //验证码
- Route::get('captcha', 'merchant.system.admin.Login/getCaptcha');
- //登录
- Route::post('login', 'merchant.system.admin.Login/login');
- Route::get('login_config', 'admin.Common/loginConfig');
- Route::group(function () {
- })->middleware(MerchantTokenMiddleware::class, false);
- })->middleware(AllowOriginMiddleware::class);
- Route::miss(function () {
- return app('json')->fail('接口不存在');
- })->middleware(AllowOriginMiddleware::class);
- })->middleware(InstallMiddleware::class)
- ->middleware(CheckSiteOpenMiddleware::class);
|