nk-lihaink-cn/app/admin/route/merchant.php
2023-03-16 16:19:42 +08:00

197 lines
7.6 KiB
PHP

<?php
use think\facade\Route;
/**
* 路由访问示例: http://nk1.lihaink.cn/admin/merchant/type/lst
* 物理地址: http://nk1.lihaink.cn/admin/merchant.system.merchant.MerchantType/index
*/
Route::group(function(){
// 商户分类
Route::group('/merchant/classify', function(){
Route::get('index', '/index')->name('systemMerchantCategoryLst')->option([
'_alias' => '商户分类列表',
]);
Route::get('lst', '/list')->name('systemMerchantCategoryLst')->option([
'_alias' => '商户分类列表',
]);
Route::post('add', '/add')->name('systemMerchantCategoryCreate')->option([
'_alias' => '商户分类添加',
]);
Route::get('add', '/addForm')->name('systemMerchantCategoryCreateForm')->option([
'_alias' => '商户分类添加表单',
'_auth' => false,
'_form' => 'systemMerchantCategoryCreate',
]);
Route::delete('del', '/del')->name('systemMerchantCategoryDelete')->option([
'_alias' => '商户分类删除',
]);
Route::post('edit', '/edit')->name('systemMerchantCategoryUpdate')->option([
'_alias' => '商户分类编辑',
]);
Route::get('edit', '/editForm')->name('systemMerchantCategoryUpdateForm')->option([
'_alias' => '商户分类编辑表单',
'_auth' => false,
'_form' => 'systemMerchantCategoryUpdate',
]);
Route::get('options', '/getOptions')->option([
'_alias' => '商户分类筛选',
'_auth' => false,
]);
})->prefix('merchant.system.merchant.MerchantCategory')->option([
'_path' => '/merchant/classify',
'_auth' => true,
]);
//入驻申请列表
Route::group('merchant/intention', function () {
Route::get('index', '/index')->name('systemMerchantIntentionLst')->option([
'_alias' => '列表',
]);
Route::get('lst', '/lst')->name('systemMerchantIntentionLst')->option([
'_alias' => '列表',
]);
Route::post('status', '/switchStatus')->name('systemMerchantIntentionStatus')->option([
'_alias' => '审核',
]);
Route::delete('del', '/del')->name('systemMerchantIntentionDelete')->option([
'_alias' => '删除',
]);
Route::get('markform', '/markform')->name('systemMerchantIntentionMarkForm')->option([
'_alias' => '备注',
'_auth' => false,
'_form' => 'systemMerchantIntentionMark',
]);
Route::get('statusform', '/statusForm')->name('systemMerchantIntentionStatusForm')->option([
'_alias' => '申请商户',
'_auth' => false,
'_form' => 'systemMerchantIntentionStatus',
]);
Route::post('mark', '/setmark')->name('systemMerchantIntentionMark')->option([
'_alias' => '备注',
]);
Route::get('excel', '/excel');
})->prefix('merchant.system.merchant.MerchantIntention')->option([
'_path' => '/merchant/application',
'_auth' => true,
]);
// 店铺类型
Route::group('/merchant/type',function(){
Route::get('index', '/index')->name('systemMerchantTypeLst')->option([
'_alias' => '列表',
]);
Route::get('lst', '/lst')->name('systemMerchantTypeLst')->option([
'_alias' => '列表',
]);
Route::get('read', '/read')->name('systemMerchantTypeDetail')->option([
'_alias' => '详情',
]);
Route::get('form', '/form')->name('systemMerchantTypeAdd')->option([
'_alias' => '添加/编辑页',
]);
Route::post('add', '/add')->name('systemMerchantTypeAdd')->option([
'_alias' => '添加',
]);
Route::put('edit', '/edit')->name('systemMerchantTypeUpdate')->option([
'_alias' => '编辑',
]);
Route::delete('del', '/del')->name('systemMerchantTypeDelete')->option([
'_alias' => '删除',
]);
Route::get('mark/:id', '/mark')->name('systemMerchantTypeMarkForm')->option([
'_alias' => '备注',
'_auth' => false,
'_form' => 'systemMerchantTypeMark',
]);
Route::post('mark', '/mark')->name('systemMerchantTypeMark')->option([
'_alias' => '备注',
]);
Route::get('descr', '/description')->name('systemMerchantTypeDescrForm')->option([
'_alias' => '店铺类型说明',
]);
Route::post('description', '/description')->name('systemMerchantTypeDescr')->option([
'_alias' => '店铺类型说明',
]);
})->prefix('merchant.system.merchant.MerchantType')->option([
'_path' => '/merchant/type',
'_auth' => true,
]);
//店铺保证金
Route::group('/margin', function(){
// 主页
Route::get('index', '/index')->name('systemMerchantMarginIndex'
)->option([
'_alias'=>'主页列表 ',
]);
//缴纳记录
Route::get('lst', '/lst')->name('systemMerchantMarginLst')->option([
'_alias' => '缴纳记录',
]);
//扣费记录页
Route::get('read', '/GetMarginLstForm')->name('systemMarginList')->option([
'_alias' => '扣费记录页',
]);
//扣费记录帐单接口
Route::get('reductlst', '/GetMarginLst')->name('systemMarginList')->option([
'_alias' => '扣费记录',
]);
//扣除保证金
Route::get('form', '/setMarginForm')->name('systemMarginSetForm')->option([
'_alias' => '扣除保证金表单',
'_auth' => false,
'_form' => 'systemMarginSet',
]);
Route::post('reduct', '/setMargin')->name('systemMarginSet')->option([
'_alias' => '扣除保证金',
]);
})->prefix('merchant.system.merchant.MerchantMargin')->option([
'_path' => '/margin',
'_auth' => true,
]);
// 保证金退还
Route::group('margin/refund', function(){
//退款申请
Route::get('lst', '/getMarginLst')->name('systemMarginRefundList')->option([
'_alias' => '退款申请列表',
]);
Route::get('refund/show/:id', '/refundShow')->name('systemMarginRefundShow')->option([
'_alias' => '退款申请详情',
]);
// //审核
Route::get('refund/status/:id/form', '/statusForm')->name('systemMarginRefundSwitchStatusForm')->option([
'_alias' => '审核表单',
'_auth' => false,
'_form' => 'systemMarginRefundSwitchStatus',
]);
Route::post('refund/status/:id', '/switchStatus')->name('systemMarginRefundSwitchStatus')->append(['type' => 1])->option([
'_alias' => '审核',
]);
//备注
Route::get('refund/mark/:id/form', '/markMarginForm')->name('systemMarginRefundMarkForm')->option([
'_alias' => '备注表单',
'_auth' => false,
'_form' => 'systemMarginRefundMark',
]);
Route::post('refund/mark/:id', '/mark')->name('systemMarginRefundMark')->option([
'_alias' => '备注',
]);
})->prefix('merchant.system.financial.Financial')->option([
'_path' => '/margin',
'_auth' => true,
]);
});