483 lines
20 KiB
PHP
483 lines
20 KiB
PHP
<?php
|
|
|
|
|
|
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('user/integral', function () {
|
|
Route::get('config', '.UserIntegral/getConfig')->name('systemUserIntegralConfig')->option([
|
|
'_alias' => '积分配置获取',
|
|
'_auth' => false,
|
|
'_form' => 'systemUserIntegralConfigSave',
|
|
]);
|
|
Route::post('config', '.UserIntegral/saveConfig')->name('systemUserIntegralConfigSave')->option([
|
|
'_alias' => '积分配置保存',
|
|
]);
|
|
})->prefix('admin.user')->option([
|
|
'_path' => '/marketing/integral/config',
|
|
'_auth' => true,
|
|
]);
|
|
Route::group('user/integral', function () {
|
|
Route::get('title', '.UserIntegral/getTitle')->name('systemUserIntegralTitle')->option([
|
|
'_alias' => '积分统计',
|
|
]);
|
|
Route::get('lst', '.UserIntegral/getList')->name('systemUserIntegralLst')->option([
|
|
'_alias' => '积分日志',
|
|
]);
|
|
Route::get('excel', '.UserIntegral/excel')->name('systemUserIntegralExcel')->option([
|
|
'_alias' => '积分导出',
|
|
]);
|
|
})->prefix('admin.user')->option([
|
|
'_path' => '/marketing/integral/log',
|
|
'_auth' => true,
|
|
'_append'=> [
|
|
[
|
|
'_name' =>'systemStoreExcelLst',
|
|
'_path' =>'/marketing/integral/log',
|
|
'_alias' => '导出列表',
|
|
'_auth' => true,
|
|
],
|
|
[
|
|
'_name' =>'systemStoreExcelDownload',
|
|
'_path' =>'/marketing/integral/log',
|
|
'_alias' => '导出下载',
|
|
'_auth' => true,
|
|
],
|
|
]
|
|
]);
|
|
Route::group('user/integral', function () {
|
|
Route::get('hold_list', '.UserIntegral/holdIntegral')->name('systemUserIntegralHoldList')->option([
|
|
'_alias' => '持有积分',
|
|
]);
|
|
Route::get('hold_list_title','.UserIntegral/holdListTitle')->name('systemUserIntegralHoldListTitle')->option([
|
|
'_alias' => '持有积分统计',
|
|
]);
|
|
Route::get('give_list', '.UserIntegral/giveIntegral')->name('systemUserIntegralGiveList')->option([
|
|
'_alias' => '赠送积分',
|
|
]);
|
|
|
|
})->prefix('admin.user')->option([
|
|
'_path' => '/marketing/integral/hold',
|
|
'_auth' => true,
|
|
]);
|
|
//预售商品
|
|
Route::group('store/product/presell', function () {
|
|
Route::get('lst', 'StoreProductPresell/lst')->name('systemStoreProductPresellLst')->option([
|
|
'_alias' => '列表',
|
|
]);
|
|
Route::post('is_show/:id', 'StoreProductPresell/switchStatus')->name('systemStoreProductPresellShow')->option([
|
|
'_alias' => '显示/隐藏',
|
|
]);
|
|
Route::get('detail/:id', 'StoreProductPresell/detail')->name('systemStoreProductPresellDetail')->option([
|
|
'_alias' => '详情',
|
|
]);
|
|
Route::get('get/:id', 'StoreProductPresell/get')->name('systemStoreProductPresellGet')->option([
|
|
'_alias' => '编辑数据',
|
|
]);
|
|
Route::post('update/:id', 'StoreProductPresell/update')->name('systemStoreProductPresellUpdate')->option([
|
|
'_alias' => '编辑',
|
|
]);
|
|
Route::post('status', 'StoreProductPresell/switchAudit')->name('systemStoreProductPresellSwitchStatus')->option([
|
|
'_alias' => '审核',
|
|
]);
|
|
Route::post('labels/:id', 'StoreProductPresell/setLabels')->name('systemStoreProductPresellLabels')->option([
|
|
'_alias' => '设置标签',
|
|
]);
|
|
})->prefix('admin.store.')->option([
|
|
'_path' => '/marketing/presell/list',
|
|
'_auth' => true,
|
|
]);
|
|
//助力商品
|
|
Route::group('store/product/assist', function () {
|
|
Route::get('lst', 'StoreProductAssist/lst')->name('systemStoreProductAssistLst')->option([
|
|
'_alias' => '列表',
|
|
]);
|
|
Route::post('is_show/:id', 'StoreProductAssist/switchStatus')->name('systemStoreProductAssistShow')->option([
|
|
'_alias' => '显示/隐藏',
|
|
]);
|
|
Route::get('detail/:id', 'StoreProductAssist/detail')->name('systemStoreProductAssistDetail')->option([
|
|
'_alias' => '详情',
|
|
]);
|
|
Route::post('update/:id', 'StoreProductAssist/update')->name('systemStoreProductAssistProductUpdate')->option([
|
|
'_alias' => '编辑',
|
|
]);
|
|
Route::post('status', 'StoreProductAssist/switchAudit')->name('systemStoreProductAssistStatus')->option([
|
|
'_alias' => '审核',
|
|
]);
|
|
Route::get('get/:id', 'StoreProductAssist/get')->name('systemStoreProductAssistGet')->option([
|
|
'_alias' => '编辑数据',
|
|
]);
|
|
Route::post('labels/:id', 'StoreProductAssist/setLabels')->name('systemStoreProductAssistLabels')->option([
|
|
'_alias' => '设置标签',
|
|
]);
|
|
})->prefix('admin.store.')->option([
|
|
'_path' => '/marketing/assist/goods_list',
|
|
'_auth' => true,
|
|
]);
|
|
//助力活动
|
|
Route::group('store/product/assist', function () {
|
|
|
|
Route::get('set/lst', 'StoreProductAssistSet/lst')->name('systemStoreProductAssistSetLst')->option([
|
|
'_alias' => '列表',
|
|
]);
|
|
Route::get('set/detail/:id', 'StoreProductAssistSet/detail')->name('systemStoreProductAssistSetDetail')->option([
|
|
'_alias' => '详情',
|
|
]);
|
|
})->prefix('admin.store.')->option([
|
|
'_path' => '/marketing/assist/list',
|
|
'_auth' => true,
|
|
]);
|
|
//拼团商品
|
|
Route::group('store/product/group', function () {
|
|
Route::get('lst', 'StoreProductGroup/lst')->name('systemStoreProductGroupLst')->option([
|
|
'_alias' => '列表',
|
|
]);
|
|
Route::post('is_show/:id', 'StoreProductGroup/switchStatus')->name('systemStoreProductGroupShow')->option([
|
|
'_alias' => '显示/隐藏',
|
|
]);
|
|
Route::get('detail/:id', 'StoreProductGroup/detail')->name('systemStoreProductGroupDetail')->option([
|
|
'_alias' => '详情',
|
|
]);
|
|
Route::post('update/:id', 'StoreProductGroup/update')->name('systemStoreProductGroupProductUpdate')->option([
|
|
'_alias' => '编辑',
|
|
]);
|
|
Route::post('status', 'StoreProductGroup/switchAudit')->name('systemStoreProductGroupStatus')->option([
|
|
'_alias' => '审核',
|
|
]);
|
|
Route::get('get/:id', 'StoreProductGroup/get')->name('systemStoreProductGroupGet')->option([
|
|
'_alias' => '编辑数据',
|
|
]);
|
|
Route::post('sort/:id', 'StoreProductGroup/updateSort')->name('systemStoreProductGroupSort')->option([
|
|
'_alias' => '排序',
|
|
]);
|
|
Route::post('labels/:id', 'StoreProductGroup/setLabels')->name('systemStoreProductGroupLabels')->option([
|
|
'_alias' => '设置标签',
|
|
]);
|
|
})->prefix('admin.store.')->option([
|
|
'_path' => '/marketing/combination/combination_goods',
|
|
'_auth' => true,
|
|
]);
|
|
//拼团活动
|
|
Route::group('store/product/group', function () {
|
|
Route::get('buying/lst', '/lst')->name('systemStoreProductGroupBuyingLst')->option([
|
|
'_alias' => '列表',
|
|
]);
|
|
Route::get('buying/detail/:id', '/detail')->name('systemStoreProductGroupBuyingDetail')->option([
|
|
'_alias' => '详情',
|
|
]);
|
|
})->prefix('admin.store.StoreProductGroupBuying')->option([
|
|
'_path' => '/marketing/combination/combination_list',
|
|
'_auth' => true,
|
|
]);
|
|
Route::group('config/others', function () {
|
|
Route::get('group_buying', '/getGroupBuying')->name('configOthersGroupBuyingDetail')->option([
|
|
'_alias' => '配置信息',
|
|
'_auth' => false,
|
|
'_form' => 'configOthersGroupBuyingUpdate',
|
|
]);
|
|
Route::post('group_buying', '/setGroupBuying')->name('configOthersGroupBuyingUpdate')->option([
|
|
'_alias' => '配置保存',
|
|
]);
|
|
})->prefix('admin.system.config.ConfigOthers')->option([
|
|
'_path' => '/marketing/combination/combination_set',
|
|
'_auth' => true,
|
|
]);
|
|
//直播间
|
|
Route::group('broadcast/room', function () {
|
|
Route::get('lst', '/lst')->name('systemBroadcastRoomLst')->option([
|
|
'_alias' => '列表',
|
|
]);
|
|
Route::get('detail/:id', '/detail')->name('systemBroadcastRoomDetail')->option([
|
|
'_alias' => '详情',
|
|
]);
|
|
Route::get('apply/form/:id', '/applyForm')->name('systemBroadcastRoomApplyForm')->option([
|
|
'_alias' => '申请审核表单',
|
|
'_auth' => false,
|
|
'_form' => 'systemBroadcastRoomApply',
|
|
]);
|
|
Route::post('apply/:id', '/apply')->name('systemBroadcastRoomApply')->option([
|
|
'_alias' => '申请',
|
|
]);
|
|
Route::post('status/:id', '/changeStatus')->name('systemBroadcastRoomChangeStatus')->option([
|
|
'_alias' => '修改状态',
|
|
]);
|
|
Route::post('sort/:id', '/sort')->name('systemBroadcastRoomSort')->option([
|
|
'_alias' => '排序',
|
|
]);
|
|
Route::post('live_status/:id', '/changeLiveStatus')->name('systemBroadcastRoomChangeLiveStatus')->option([
|
|
'_alias' => '修改状态',
|
|
]);
|
|
Route::delete('delete/:id', '/delete')->name('systemBroadcastRoomDelete')->option([
|
|
'_alias' => '删除',
|
|
]);
|
|
Route::get('goods/:id', '/goodsList')->name('systemBroadcastRoomGoods')->option([
|
|
'_alias' => '商品列表',
|
|
]);
|
|
Route::post('closeKf/:id', '/closeKf')->name('systemBroadcastRoomCloseKf')->option([
|
|
'_alias' => '客服开关',
|
|
]);
|
|
Route::post('comment/:id', '/banComment')->name('systemBroadcastRoomCloseComment')->option([
|
|
'_alias' => '禁言开关',
|
|
]);
|
|
Route::post('feedsPublic/:id', '/isFeedsPublic')->name('systemBroadcastRoomClosesFeeds')->option([
|
|
'_alias' => '收录开关',
|
|
]);
|
|
})->prefix('admin.store.BroadcastRoom')->option([
|
|
'_path' => '/marketing/studio/list',
|
|
'_auth' => true,
|
|
]);
|
|
//直播间商品
|
|
Route::group('broadcast/goods', function () {
|
|
Route::get('lst', '/lst')->name('systemBroadcastGoodsLst')->option([
|
|
'_alias' => '列表',
|
|
]);
|
|
Route::get('detail/:id', '/detail')->name('systemBroadcastGoodsDetail')->option([
|
|
'_alias' => '详情',
|
|
]);
|
|
Route::get('apply/form/:id', '/applyForm')->name('systemBroadcastGoodsApplyForm')->option([
|
|
'_alias' => '审核表单',
|
|
'_auth' => false,
|
|
'_form' => 'systemBroadcastRoomApply',
|
|
]);
|
|
Route::post('apply/:id', '/apply')->name('systemBroadcastGoodsApply')->option([
|
|
'_alias' => '审核',
|
|
]);
|
|
Route::post('status/:id', '/changeStatus')->name('systemBroadcastGoodsChangeStatus')->option([
|
|
'_alias' => '修改状态',
|
|
]);
|
|
Route::post('sort/:id', '/sort')->name('systemBroadcastGoodsSort')
|
|
->option([
|
|
'_alias' => '排序',
|
|
|
|
]);
|
|
Route::delete('delete/:id', '/delete')->name('systemBroadcastGoodsDelete')->option([
|
|
'_alias' => '删除',
|
|
]);
|
|
})->prefix('admin.store.BroadcastGoods')->option([
|
|
'_path' => '/marketing/broadcast/list',
|
|
'_auth' => true,
|
|
]);
|
|
//秒杀配置管理
|
|
Route::group('seckill/config', function () {
|
|
Route::get('lst', '/lst')->name('systemSeckillConfigLst')->option([
|
|
'_alias' => '列表',
|
|
]);
|
|
Route::get('select', '/select')->option([
|
|
'_alias' => '筛选',
|
|
'_auth' => false,
|
|
]);
|
|
Route::get('create/form', '/createForm')->name('systemSeckillConfigCreateForm')->option([
|
|
'_alias' => '添加表单',
|
|
'_auth' => false,
|
|
'_form' => 'systemSeckillConfigCreate',
|
|
]);
|
|
Route::post('create', '/create')->name('systemSeckillConfigCreate')->option([
|
|
'_alias' => '添加',
|
|
]);
|
|
Route::get('update/:id/form', '/updateForm')->name('systemSeckillConfigUpdateForm')->option([
|
|
'_alias' => '编辑表单',
|
|
'_auth' => false,
|
|
'_form' => 'systemSeckillConfigUpdate',
|
|
]);
|
|
Route::post('update/:id', '/update')->name('systemSeckillConfigUpdate')->option([
|
|
'_alias' => '编辑',
|
|
]);
|
|
Route::post('status/:id', '/switchStatus')->name('systemSeckillConfigStatus')->option([
|
|
'_alias' => '排序',
|
|
]);
|
|
Route::delete('delete/:id', '/delete')->name('systemSeckillConfigDelete')->option([
|
|
'_alias' => '删除',
|
|
]);
|
|
})->prefix('admin.store.StoreSeckill')->option([
|
|
'_path' => '/marketing/seckill/seckillConfig',
|
|
'_auth' => true,
|
|
'_append'=> [
|
|
[
|
|
'_name' =>'uploadImage',
|
|
'_path' =>'/marketing/seckill/seckillConfig',
|
|
'_alias' => '上传图片',
|
|
'_auth' => true,
|
|
],
|
|
[
|
|
'_name' =>'systemAttachmentLst',
|
|
'_path' =>'/marketing/seckill/seckillConfig',
|
|
'_alias' => '图片列表',
|
|
'_auth' => true,
|
|
],
|
|
]
|
|
]);
|
|
//秒杀商品管理
|
|
Route::group('seckill/product', function () {
|
|
Route::get('mer_select', '/lists')->option([
|
|
'_alias' => '列表 ',
|
|
'_auth' => false,
|
|
]);
|
|
Route::get('lst_filter', '/getStatusFilter')->name('systemStoreSeckillProductLstFilter')->option([
|
|
'_alias' => '统计',
|
|
]);
|
|
Route::get('lst', '/lst')->name('systemStoreSeckillProductLst')->option([
|
|
'_alias' => '列表',
|
|
]);
|
|
Route::get('list', '/lst')->option([
|
|
'_alias' => '列表',
|
|
'_auth' => false,
|
|
]);
|
|
Route::get('detail/:id', '/detail')->name('systemStoreSeckillProductDetail')->option([
|
|
'_alias' => '权限',
|
|
]);
|
|
Route::post('update/:id', '/update')->name('systemStoreSeckillProductUpdate')->option([
|
|
'_alias' => '编辑',
|
|
]);
|
|
Route::post('status', '/switchStatus')->name('systemStoreSeckillProductSwitchStatus')->option([
|
|
'_alias' => '审核',
|
|
]);
|
|
Route::post('change/:id', '/changeUsed')->name('systemStoreSeckillProductChangeUsed')->option([
|
|
'_alias' => '显示/隐藏',
|
|
]);
|
|
Route::post('labels/:id', '/setLabels')->name('systemStoreSeckillProductLabels')->option([
|
|
'_alias' => '设置标签',
|
|
]);
|
|
})->prefix('admin.store.StoreProductSeckill')->option([
|
|
'_path' => '/marketing/seckill/list',
|
|
'_auth' => true,
|
|
]);
|
|
//商品列表
|
|
Route::get('marketing/spu/lst', 'admin.store.marketing.StoreAtmosphere/markLst');
|
|
//活动氛围图 - 详情下边框图
|
|
Route::group('activity/atmosphere/', function () {
|
|
Route::post('create', '/create')->name('systemActivityAtmosphereCreate')->option([
|
|
'_alias' => '添加',
|
|
]);
|
|
Route::get('lst', '/lst')->name('systemActivityAtmosphereLst')->option([
|
|
'_alias' => '列表',
|
|
]);
|
|
Route::post('update/:id', '/update')->name('systemActivityAtmosphereUpdate')->option([
|
|
'_alias' => '编辑',
|
|
]);
|
|
Route::get('detail/:id', '/detail')->name('systemActivityAtmosphereDetail')->option([
|
|
'_alias' => '详情',
|
|
]);
|
|
Route::delete('delete/:id', '/delete')->name('systemActivityAtmosphereDelete')->option([
|
|
'_alias' => '删除',
|
|
]);
|
|
Route::post('status/:id', '/statusSwitch')->name('systemActivityAtmosphereStatus')->option([
|
|
'_alias' => '修改状态',
|
|
]);
|
|
})->prefix('admin.store.marketing.StoreAtmosphere')->option([
|
|
'_path' => '/marketing/atmosphere/list',
|
|
'_auth' => true,
|
|
'_append'=> [
|
|
[
|
|
'_name' =>'uploadImage',
|
|
'_path' =>'/marketing/atmosphere/list',
|
|
'_alias' => '上传图片',
|
|
'_auth' => true,
|
|
],
|
|
[
|
|
'_name' =>'systemAttachmentLst',
|
|
'_path' =>'/marketing/atmosphere/list',
|
|
'_alias' => '图片列表',
|
|
'_auth' => true,
|
|
],
|
|
]
|
|
]);
|
|
//活动氛围图-列表边框
|
|
Route::group('activity/border/', function () {
|
|
Route::post('create', '/create')->name('systemActivityBorderCreate')->option([
|
|
'_alias' => '添加',
|
|
]);
|
|
Route::get('lst', '/lst')->name('systemActivityBorderLst')->option([
|
|
'_alias' => '列表',
|
|
]);
|
|
Route::post('update/:id', '/update')->name('systemActivityBorderUpdate')->option([
|
|
'_alias' => '编辑',
|
|
]);
|
|
Route::get('detail/:id', '/detail')->name('systemActivityBorderDetail')->option([
|
|
'_alias' => '详情',
|
|
]);
|
|
Route::delete('delete/:id', '/delete')->name('systemActivityBorderDelete')->option([
|
|
'_alias' => '删除',
|
|
]);
|
|
Route::post('status/:id', '/statusSwitch')->name('systemActivityBorderStatus')->option([
|
|
'_alias' => '修改状态',
|
|
]);
|
|
})->prefix('admin.store.marketing.StoreBorder')->option([
|
|
'_path' => '/marketing/border/list',
|
|
'_auth' => true,
|
|
'_append'=> [
|
|
[
|
|
'_name' =>'uploadImage',
|
|
'_path' =>'/marketing/border/list',
|
|
'_alias' => '上传图片',
|
|
'_auth' => true,
|
|
],
|
|
[
|
|
'_name' =>'systemAttachmentLst',
|
|
'_path' =>'/marketing/border/list',
|
|
'_alias' => '图片列表',
|
|
'_auth' => true,
|
|
],
|
|
]
|
|
]);
|
|
// 平台抽成
|
|
Route::group('marketing/platformCommission', function () {
|
|
// 设置处理
|
|
Route::get('config', '.platformCommission/getConfig')->name('platformCommissionConfig')->option([
|
|
'_alias' => '设置获取',
|
|
]);
|
|
Route::post('config', '.platformCommission/saveConfig')->name('platformCommissionConfigSave')->option([
|
|
'_alias' => '设置保存',
|
|
]);
|
|
// 抽成记录
|
|
Route::get('record_title','.platformCommission/recordTitle')->name('platformCommissionRecordTitle')->option([
|
|
'_alias' => '抽成统计',
|
|
]);
|
|
Route::get('record_list', '.platformCommission/recordList')->name('platformCommissionRecordList')->option([
|
|
'_alias' => '抽成记录',
|
|
]);
|
|
// 权重值
|
|
Route::get('weight_value_hold_list', '.platformCommissionWeightValue/holdList')->name('platformCommissionWeightValueHoldList')->option([
|
|
'_alias' => '持有信息',
|
|
]);
|
|
Route::get('weight_value_change_record', '.platformCommissionWeightValue/changeRecord')->name('platformCommissionWeightValueChangeRecord')->option([
|
|
'_alias' => '变更记录',
|
|
]);
|
|
// 合伙人佣金结算信息
|
|
Route::get('partner_cycle_list', '.platformCommission/partnerCycleList')->name('platformCommissionPartnerCycleList')->option([
|
|
'_alias' => '结算周期',
|
|
]);
|
|
Route::get('partner_list', '.platformCommission/partnerList')->name('platformCommissionPartnerList')->option([
|
|
'_alias' => '结算周期明细',
|
|
]);
|
|
// 豆豆和积分
|
|
Route::get('legumes_title', '.platformCommission/legumesTitle')->name('platformCommissionLegumesTitle')->option([
|
|
'_alias' => '豆豆统计',
|
|
]);
|
|
Route::get('legumes_cycle_list', '.platformCommission/legumesCycleList')->name('platformCommissionLegumesCycleList')->option([
|
|
'_alias' => '豆豆结算周期',
|
|
]);
|
|
Route::get('legumes_list', '.platformCommission/legumesList')->name('platformCommissionLegumesList')->option([
|
|
'_alias' => '豆豆结算周期明细',
|
|
]);
|
|
Route::get('legumes_hold_list', '.platformCommission/holdList')->name('platformCommissionHoldList')->option([
|
|
'_alias' => '豆豆持有信息',
|
|
]);
|
|
|
|
|
|
|
|
|
|
})->prefix('admin.store.marketing')->option([
|
|
'_path' => '/marketing/platformCommission/index',
|
|
'_auth' => true,
|
|
]);
|
|
|
|
})->middleware(AllowOriginMiddleware::class)
|
|
->middleware(AdminTokenMiddleware::class, true)
|
|
->middleware(AdminAuthMiddleware::class)
|
|
->middleware(LogMiddleware::class);
|