nk-lihaink-cn/app/admin/route/merchant.php
2023-03-17 16:43:27 +08:00

269 lines
11 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('system/merchant', function () {
Route::get('index', '.Merchant/index')->name('systemMerchantLst')->option([
'_alias' => '商户列表页',
]);
Route::get('lst', '.Merchant/list')->name('systemMerchantLst')->option([
'_alias' => '商户列表',
]);
Route::get('count', '.Merchant/count')->name('systemMerchantCount')->option([
'_alias' => '商户列表统计',
]);
Route::get('add', '.Merchant/add')->name('systemMerchantCreateForm')->option([
'_alias' => '商户添加表单页',
]);
Route::post('add', '.Merchant/add')->name('systemMerchantCreate')->option([
'_alias' => '商户添加',
]);
Route::get('edit', '.Merchant/edit')->name('systemMerchantUpdateForm')->option([
'_alias' => '商户编辑表单页',
'_auth' => false,
'_form' => 'systemMerchantUpdate',
]);
Route::post('edit', '.Merchant/edit')->name('systemMerchantUpdate')->option([
'_alias' => '商户编辑',
]);
Route::post('status', '.Merchant/switchStatus')->name('systemMerchantStatus')->option([
'_alias' => '商户修改推荐',
]);
Route::post('close', '.Merchant/switchClose')->name('systemMerchantClose')->option([
'_alias' => '商户开启/关闭',
]);
Route::delete('del', '.Merchant/del')->name('systemMerchantDelete')->option([
'_alias' => '商户删除',
]);
Route::post('password', '.MerchantAdmin/password')->name('systemMerchantAdminPassword')->option([
'_alias' => '商户修改密码',
]);
Route::get('password', '.MerchantAdmin/passwordForm')->name('systemMerchantAdminPasswordForm')->option([
'_alias' => '商户修改密码表单页',
'_auth' => false,
'_form' => 'systemMerchantAdminPassword',
]);
Route::post('login', '.Merchant/login')->name('systemMerchantLogin')->option([
'_alias' => '商户登录',
]);
Route::get('changecopy', '/changeCopyNumForm')->name('systemMerchantChangeCopyForm')->option([
'_alias' => '修改采集商品次数表单页',
'_auth' => false,
'_form' => 'systemMerchantChangeCopy',
]);
Route::post('changecopy', '.Merchant/changeCopyNum')->name('systemMerchantChangeCopy')->option([
'_alias' => '修改采集商品次数',
]);
})->prefix('merchant.system.merchant')->option([
'_path' => '/merchant/list',
'_auth' => true,
'_append'=> [
[
'_name' =>'uploadImage',
'_path' =>'/merchant/list',
'_alias' => '上传图片',
'_auth' => true,
],
[
'_name' =>'systemAttachmentLst',
'_path' =>'/merchant/list',
'_alias' => '图片列表',
'_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('show', '/refundShow')->name('systemMarginRefundShow')->option([
'_alias' => '退款申请详情',
]);
// //审核
Route::get('status', '/statusForm')->name('systemMarginRefundSwitchStatusForm')->option([
'_alias' => '审核表单',
'_auth' => false,
'_form' => 'systemMarginRefundSwitchStatus',
]);
Route::post('status', '/switchStatus')->name('systemMarginRefundSwitchStatus')->append(['type' => 1])->option([
'_alias' => '审核',//type=1 保证金
]);
//备注
Route::get('mark', '/markForm')->name('systemMarginRefundMarkForm')->option([
'_alias' => '备注表单',
'_auth' => false,
'_form' => 'systemMarginRefundMark',
]);
Route::post('mark', '/mark')->name('systemMarginRefundMark')->option([
'_alias' => '备注',
]);
})->prefix('merchant.system.financial.Financial')->option([
'_path' => '/margin',
'_auth' => true,
]);
});