middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/sms', function () { Route::post('/quotaWriteOffCode', [\app\admin\controller\sms\SmsController::class, 'sendSmsCodeByQuota']); Route::post('/benefitWriteOffCode', [\app\admin\controller\sms\SmsController::class, 'sendSmsCodeByBenefit']); Route::post('/writeOffCode', [\app\admin\controller\sms\SmsController::class, 'sendSmsCodeByWriteOff']); Route::post('/orderPay', [\app\admin\controller\sms\SmsController::class, 'sendSmsByOrderPay']); Route::post('/dishesWriteOffCode', [\app\admin\controller\sms\SmsController::class, 'dishesWriteOffCode']); }); /* 鉴权 */ Route::group('/auth', function () { Route::post('/login', [\app\admin\controller\auth\AuthController::class, 'login']); Route::post('/logout', [\app\admin\controller\auth\AuthController::class, 'logout']); Route::get('/userInfo', [\app\admin\controller\auth\AuthController::class, 'userInfo']); Route::get('/refreshToken', [\app\admin\controller\auth\AuthController::class, 'refreshToken']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/content', function () { Route::group('/special', function () { Route::get('/list', [\app\admin\controller\content\SpecialController::class, 'select']); Route::post('/add', [\app\admin\controller\content\SpecialController::class, 'insert']); Route::post('/update', [\app\admin\controller\content\SpecialController::class, 'update']); Route::delete('/delete', [\app\admin\controller\content\SpecialController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/subject', function () { Route::get('/list', [\app\admin\controller\content\SubjectController::class, 'select']); Route::get('/info', [\app\admin\controller\content\SubjectController::class, 'info']); Route::post('/add', [\app\admin\controller\content\SubjectController::class, 'insert']); Route::post('/update', [\app\admin\controller\content\SubjectController::class, 'update']); Route::delete('/delete', [\app\admin\controller\content\SubjectController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/activity', function () { Route::get('/list', [\app\admin\controller\content\ActivityController::class, 'select']); Route::post('/add', [\app\admin\controller\content\ActivityController::class, 'insert']); Route::post('/update', [\app\admin\controller\content\ActivityController::class, 'update']); Route::delete('/delete', [\app\admin\controller\content\ActivityController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); Route::group('/goods', function () { /* 实物商品管理 */ Route::group('/entity', function () { Route::get('/selectAll', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAll']); Route::get('/selectIdNameList', [\app\admin\controller\goods\EntityGoodsController::class, 'selectIdNameList']); Route::get('/selectAllByGoodsName', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAllByGoodsName']); Route::get('/selectAllByCategoryForRuleAddComponent', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAllByCategoryForRuleAddComponent']); Route::get('/getPremises', [\app\admin\controller\goods\EntityGoodsController::class, 'selectPremisesByGoodsId']); Route::get('/list', [\app\admin\controller\goods\EntityGoodsController::class, 'select']); Route::get('/info', [\app\admin\controller\goods\EntityGoodsController::class, 'info']); Route::post('/add', [\app\admin\controller\goods\EntityGoodsController::class, 'insert']); Route::post('/update', [\app\admin\controller\goods\EntityGoodsController::class, 'update']); Route::delete('/delete', [\app\admin\controller\goods\EntityGoodsController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/recharge', function () { Route::get('/list', [\app\admin\controller\goods\RechargeGoodsController::class, 'select']); Route::post('/add', [\app\admin\controller\goods\RechargeGoodsController::class, 'insert']); Route::post('/update', [\app\admin\controller\goods\RechargeGoodsController::class, 'update']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 业务服务商品管理 */ Route::group('/service', function () { Route::get('/list', [\app\admin\controller\goods\ServiceGoodsController::class, 'select']); Route::get('/selectList', [\app\admin\controller\goods\ServiceGoodsController::class, 'selectList']); Route::get('/selectCascaderList', [\app\admin\controller\goods\ServiceGoodsController::class, 'selectCascaderList']); Route::get('/selectPicking', [\app\admin\controller\goods\ServiceGoodsController::class, 'selectPicking']); Route::get('/info', [\app\admin\controller\goods\ServiceGoodsController::class, 'info']); Route::post('/add', [\app\admin\controller\goods\ServiceGoodsController::class, 'insert']); Route::post('/update', [\app\admin\controller\goods\ServiceGoodsController::class, 'update']); Route::post('/changeStatus', [\app\admin\controller\goods\ServiceGoodsController::class, 'changeStatus']); Route::delete('/delete', [\app\admin\controller\goods\ServiceGoodsController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 营销专题商品管理 */ Route::group('/special', function () { Route::get('/list', [\app\admin\controller\goods\SpecialGoodsController::class, 'select']); Route::get('/info', [\app\admin\controller\goods\SpecialGoodsController::class, 'info']); Route::post('/add', [\app\admin\controller\goods\SpecialGoodsController::class, 'insert']); Route::post('/update', [\app\admin\controller\goods\SpecialGoodsController::class, 'update']); Route::delete('/delete', [\app\admin\controller\goods\SpecialGoodsController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /*套包商品管理 */ Route::group('/package', function () { Route::get('/list', [\app\admin\controller\goods\PackageGoodsController::class, 'select']); Route::get('/selectList', [\app\admin\controller\goods\PackageGoodsController::class, 'selectList']); Route::get('/info', [\app\admin\controller\goods\PackageGoodsController::class, 'info']); Route::post('/add', [\app\admin\controller\goods\PackageGoodsController::class, 'insert']); Route::post('/update', [\app\admin\controller\goods\PackageGoodsController::class, 'update']); Route::delete('/delete', [\app\admin\controller\goods\PackageGoodsController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /*康旅商品管理 */ Route::group('/travel', function () { Route::get('/list', [\app\admin\controller\goods\TravelGoodsController::class, 'select']); Route::post('/add', [\app\admin\controller\goods\TravelGoodsController::class, 'insert']); Route::post('/update', [\app\admin\controller\goods\TravelGoodsController::class, 'update']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 新客专享 */ Route::group('/newCustomer', function () { Route::get('/info', [\app\admin\controller\goods\NewCustomerController::class, 'info']); Route::post('/update', [\app\admin\controller\goods\NewCustomerController::class, 'update']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 合伙人 */ Route::group('/partner', function () { Route::get('/info', [\app\admin\controller\goods\PartnerController::class, 'info']); Route::post('/update', [\app\admin\controller\goods\PartnerController::class, 'update']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 推荐官 */ Route::group('/referrer', function () { Route::get('/info', [\app\admin\controller\goods\ReferrerController::class, 'info']); Route::post('/update', [\app\admin\controller\goods\ReferrerController::class, 'update']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 会员充值权益 */ Route::group('/memberRechargeBenefit', function () { Route::get('/list', [\app\admin\controller\goods\MemberRechargeBenefitController::class, 'select']); Route::get('/selectCascaderList', [\app\admin\controller\goods\MemberRechargeBenefitController::class, 'selectCascaderList']); Route::get('/info', [\app\admin\controller\goods\MemberRechargeBenefitController::class, 'info']); Route::post('/update', [\app\admin\controller\goods\MemberRechargeBenefitController::class, 'update']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); /* 财务管理 */ Route::group('/finance', function () { Route::group('/writeOff', function () { Route::get('/list', [\app\admin\controller\finance\WriteOffController::class, 'list']); Route::get('/statistics', [\app\admin\controller\finance\WriteOffController::class, 'statistics']); }); Route::group('/goodsSales', function () { Route::get('/info', [\app\admin\controller\finance\GoodsSalesController::class, 'info']); Route::get('/list', [\app\admin\controller\finance\GoodsSalesController::class, 'list']); Route::get('/export', [\app\admin\controller\finance\GoodsSalesController::class, 'exportGoodsSales']); }); Route::group('/memberAccount', function () { Route::get('/list', [\app\admin\controller\finance\MemberAccountController::class, 'list']); Route::get('/export', [\app\admin\controller\finance\MemberAccountController::class, 'exportMemberAccount']); }); Route::group('/premisesMember', function () { Route::get('/list', [\app\admin\controller\finance\PremisesMemberController::class, 'list']); }); Route::group('/incomeAndExpend', function () { Route::get('/list', [\app\admin\controller\finance\IncomeAndExpendController::class, 'list']); }); /* 提成管理 */ Route::group('/commissionList', function () { Route::get('/list', [\app\admin\controller\finance\CommissionListController::class, 'select']); Route::get('/statistics', [\app\admin\controller\finance\CommissionListController::class, 'statistics']); Route::get('/info', [\app\admin\controller\finance\CommissionListController::class, 'info']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 提现管理 */ Route::group('/withdrawalList', function () { Route::get('/list', [\app\admin\controller\finance\WithdrawalListController::class, 'select']); Route::get('/statistics', [\app\admin\controller\finance\WithdrawalListController::class, 'statistics']); Route::get('/info', [\app\admin\controller\finance\WithdrawalListController::class, 'info']); Route::post('/changeStatus', [\app\admin\controller\finance\WithdrawalListController::class, 'changeStatus']); Route::get('/export', [\app\admin\controller\finance\WithdrawalListController::class, 'export']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 充值管理 */ Route::group('/recharge', function () { Route::get('/list', [\app\admin\controller\finance\RechargeController::class, 'list']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); /* 系统管理中心 */ Route::group('/sys', function () { /* API管理 */ Route::group('/api', function () { Route::get('/list', [\app\admin\controller\sys_manage\ApiController::class, 'select']); Route::post('/add', [\app\admin\controller\sys_manage\ApiController::class, 'insert']); Route::post('/update', [\app\admin\controller\sys_manage\ApiController::class, 'update']); Route::delete('/delete', [\app\admin\controller\sys_manage\ApiController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 铃铛提醒 */ Route::group('/bells', function () { Route::get('/orderNum', [\app\admin\controller\sys_manage\BellsController::class, 'orderNum']); Route::get('/orderList', [\app\admin\controller\sys_manage\BellsController::class, 'orderList']); Route::post('/closeOrderBell', [\app\admin\controller\sys_manage\BellsController::class, 'closeOrderBell']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 绿通医院 */ Route::group('/greenChannel', function () { Route::get('/list', [\app\admin\controller\sys_manage\GreenChannelController::class, 'select']); Route::post('/add', [\app\admin\controller\sys_manage\GreenChannelController::class, 'insert']); Route::post('/update', [\app\admin\controller\sys_manage\GreenChannelController::class, 'update']); Route::delete('/delete', [\app\admin\controller\sys_manage\GreenChannelController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 角色管理 */ Route::group('/role', function () { Route::get('/select', [\app\admin\controller\sys_manage\RoleController::class, 'select']); Route::get('/list', [\app\admin\controller\sys_manage\RoleController::class, 'roleList']); Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\RoleController::class, 'roleInfo']); Route::post('/add', [\app\admin\controller\sys_manage\RoleController::class, 'addRole']); Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\RoleController::class, 'updateRole']); Route::delete('/delete', [\app\admin\controller\sys_manage\RoleController::class, 'delRole']); Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\RoleController::class, 'updateStatus']); Route::post('/updatePermission/{id:\d+}', [\app\admin\controller\sys_manage\RoleController::class, 'updatePermission']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 部门管理 */ Route::group('/dept', function () { Route::get('/list', [\app\admin\controller\sys_manage\DeptController::class, 'deptList']); Route::get('/select', [\app\admin\controller\sys_manage\DeptController::class, 'select']); Route::get('/selectList', [\app\admin\controller\sys_manage\DeptController::class, 'selectList']); Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\DeptController::class, 'deptInfo']); Route::post('/add', [\app\admin\controller\sys_manage\DeptController::class, 'addDept']); Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\DeptController::class, 'updateDept']); Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\DeptController::class, 'updateStatus']); Route::delete('/delete/{id:\d+}', [\app\admin\controller\sys_manage\DeptController::class, 'delDept']); Route::get('/getPrinterByPremiseName', [\app\admin\controller\sys_manage\DeptController::class, 'getPrinterByPremiseName']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 餐厅管理 */ Route::group('/restaurant', function () { Route::get('/list', [\app\admin\controller\sys_manage\RestaurantController::class, 'select']); Route::post('/add', [\app\admin\controller\sys_manage\RestaurantController::class, 'insert']); Route::post('/update', [\app\admin\controller\sys_manage\RestaurantController::class, 'update']); Route::delete('/delete', [\app\admin\controller\sys_manage\RestaurantController::class, 'delete']); Route::get('/getPrinterByPremiseName', [\app\admin\controller\sys_manage\RestaurantController::class, 'getPrinterByPremiseName']); Route::get('/getByUser', [\app\admin\controller\sys_manage\RestaurantController::class, 'getByUser']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 桌台管理 */ Route::group('/restaurantTable', function () { Route::get('/list', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'select']); Route::get('/statistics', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'statistics']); Route::post('/add', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'insert']); Route::post('/batchAdd', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'batchInsert']); Route::post('/update', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'update']); Route::delete('/delete', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'delete']); Route::get('/exportTable', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'exportTable']); Route::get('/downQrcode', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'downloadQrcode']); Route::get('/selectListByPremiseName', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'selectListByPremiseName']); Route::get('/batchDownloadQrcode', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'batchDownloadQrcode']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 用户管理 */ Route::group('/user', function () { Route::get('/list', [\app\admin\controller\sys_manage\UserController::class, 'userList']); Route::get('/selectTeacherList', [\app\admin\controller\sys_manage\UserController::class, 'selectTeacherList']); Route::get('/info/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'userInfo']); Route::post('/add', [\app\admin\controller\sys_manage\UserController::class, 'addUser']); Route::post('/update/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'updateUser']); Route::post('/updateStatus/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'updateStatus']); Route::post('/updatePassword/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'updatePassword']); Route::delete('/delete', [\app\admin\controller\sys_manage\UserController::class, 'delUser']); Route::post('/correlationMember', [\app\admin\controller\sys_manage\UserController::class, 'correlationMember']); Route::get('/selectDoctorList', [\app\admin\controller\sys_manage\UserController::class, 'selectDoctorList']); Route::get('/selectSalesmanList', [\app\admin\controller\sys_manage\UserController::class, 'selectSalesmanList']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 分类管理 */ Route::group('/category', function () { Route::get('/index', [\app\admin\controller\sys_manage\CategoryController::class, 'index']); Route::get('/list', [\app\admin\controller\sys_manage\CategoryController::class, 'categoryList']); Route::get('/goodsCategory', [\app\admin\controller\sys_manage\CategoryController::class, 'goodsCategory']); Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\CategoryController::class, 'categoryInfo']); Route::post('/add', [\app\admin\controller\sys_manage\CategoryController::class, 'addCategory']); Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\CategoryController::class, 'updateCategory']); Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\CategoryController::class, 'updateStatus']); Route::delete('/delete', [\app\admin\controller\sys_manage\CategoryController::class, 'delCategory']); Route::get('/categoryTree', [\app\admin\controller\sys_manage\CategoryController::class, 'getCategoryTree']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 字段管理 */ Route::group('/field', function () { Route::get('/list', [\app\admin\controller\sys_manage\FieldController::class, 'fieldList']); Route::get('/selectList', [\app\admin\controller\sys_manage\FieldController::class, 'selectList']); Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\FieldController::class, 'fieldInfo']); Route::post('/add', [\app\admin\controller\sys_manage\FieldController::class, 'addField']); Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\FieldController::class, 'updateFields']); Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\FieldController::class, 'updateStatus']); Route::delete('/delete', [\app\admin\controller\sys_manage\FieldController::class, 'delField']); }); /* 配置管理 */ Route::group('/config', function () { Route::get('/list', [\app\admin\controller\sys_manage\ConfigController::class, 'configList']); Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\ConfigController::class, 'configInfo']); Route::post('/add', [\app\admin\controller\sys_manage\ConfigController::class, 'addConfig']); Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\ConfigController::class, 'updateConfig']); Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\ConfigController::class, 'updateStatus']); Route::delete('/delete', [\app\admin\controller\sys_manage\ConfigController::class, 'delConfig']); // 参数配置 Route::get('/paramsList', [\app\admin\controller\sys_manage\ConfigController::class, 'paramsList']); Route::post('/paramsSave', [\app\admin\controller\sys_manage\ConfigController::class, 'paramsSave']); Route::get('/partnerParams', [\app\admin\controller\sys_manage\ConfigController::class, 'partnerParamsInfo']); Route::post('/setPartnerParams', [\app\admin\controller\sys_manage\ConfigController::class, 'setPartnerParams']); Route::get('/franchiseeParams', [\app\admin\controller\sys_manage\ConfigController::class, 'franchiseeParamsInfo']); Route::post('/setFranchiseeParams', [\app\admin\controller\sys_manage\ConfigController::class, 'setFranchiseeParams']); Route::get('/referrerParams', [\app\admin\controller\sys_manage\ConfigController::class, 'referrerParamsInfo']); Route::post('/setReferrerParams', [\app\admin\controller\sys_manage\ConfigController::class, 'setReferrerParams']); }); /* 运费模板管理 */ Route::group('/postageTemplate', function () { Route::get('/list', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'select']); Route::post('/add', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'insert']); Route::post('/update', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'update']); Route::post('/updateStatus', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'updateStatus']); Route::delete('/delete', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'delete']); }); Route::group('/adv', function () { Route::get('/list', [\app\admin\controller\sys_manage\AdvController::class, 'select']); Route::post('/add', [\app\admin\controller\sys_manage\AdvController::class, 'insert']); Route::post('/update', [\app\admin\controller\sys_manage\AdvController::class, 'update']); Route::delete('/delete', [\app\admin\controller\sys_manage\AdvController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/protocol', function () { Route::get('/list', [\app\admin\controller\sys_manage\ProtocolController::class, 'select']); Route::post('/add', [\app\admin\controller\sys_manage\ProtocolController::class, 'insert']); Route::post('/update', [\app\admin\controller\sys_manage\ProtocolController::class, 'update']); Route::delete('/delete', [\app\admin\controller\sys_manage\ProtocolController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/healthyClassroom', function () { Route::get('/list', [\app\admin\controller\sys_manage\HealthyClassroomController::class, 'select']); Route::post('/add', [\app\admin\controller\sys_manage\HealthyClassroomController::class, 'insert']); Route::post('/update', [\app\admin\controller\sys_manage\HealthyClassroomController::class, 'update']); Route::delete('/delete', [\app\admin\controller\sys_manage\HealthyClassroomController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/finance', function () { Route::get('/info', [\app\admin\controller\sys_manage\FinanceController::class, 'info']); Route::post('/update', [\app\admin\controller\sys_manage\FinanceController::class, 'update']); }); Route::group('/apartment', function () { Route::get('/info', [\app\admin\controller\content\ApartmentController::class, 'info']); Route::post('/update', [\app\admin\controller\content\ApartmentController::class, 'update']); }); Route::group('/banner', function () { Route::get('/list', [\app\admin\controller\sys_manage\BannerController::class, 'select']); Route::post('/add', [\app\admin\controller\sys_manage\BannerController::class, 'insert']); Route::post('/update', [\app\admin\controller\sys_manage\BannerController::class, 'update']); Route::delete('/delete', [\app\admin\controller\sys_manage\BannerController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/article', function () { Route::get('/list', [\app\admin\controller\sys_manage\ArticleController::class, 'select']); Route::post('/add', [\app\admin\controller\sys_manage\ArticleController::class, 'insert']); Route::post('/update', [\app\admin\controller\sys_manage\ArticleController::class, 'update']); Route::delete('/delete', [\app\admin\controller\sys_manage\ArticleController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/news', function () { Route::get('/list', [\app\admin\controller\sys_manage\NewsController::class, 'select']); Route::post('/add', [\app\admin\controller\sys_manage\NewsController::class, 'insert']); Route::post('/update', [\app\admin\controller\sys_manage\NewsController::class, 'update']); Route::delete('/delete', [\app\admin\controller\sys_manage\NewsController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/question', function () { Route::get('/list', [\app\admin\controller\sys_manage\QuestionController::class, 'select']); Route::post('/add', [\app\admin\controller\sys_manage\QuestionController::class, 'insert']); Route::post('/update', [\app\admin\controller\sys_manage\QuestionController::class, 'update']); Route::delete('/delete', [\app\admin\controller\sys_manage\QuestionController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/menu', function () { Route::get('/my', [\app\admin\controller\sys_manage\MenuController::class, 'myMenu']); Route::get('/list', [\app\admin\controller\sys_manage\MenuController::class, 'select']); Route::post('/save', [\app\admin\controller\sys_manage\MenuController::class, 'save']); Route::post('/add', [\app\admin\controller\sys_manage\MenuController::class, 'insert']); Route::post('/update', [\app\admin\controller\sys_manage\MenuController::class, 'update']); Route::delete('/delete', [\app\admin\controller\sys_manage\MenuController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 供应商管理 */ Route::group('/supplier', function () { Route::get('/list', [\app\admin\controller\sys_manage\SupplierController::class, 'select']); Route::post('/add', [\app\admin\controller\sys_manage\SupplierController::class, 'insert']); Route::post('/update', [\app\admin\controller\sys_manage\SupplierController::class, 'update']); Route::delete('/delete', [\app\admin\controller\sys_manage\SupplierController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 日志管理 */ Route::group('/log', function () { Route::get('/list', [\app\admin\controller\sys_manage\LogsController::class, 'select']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 工单管理 */ Route::group('/task', function () { Route::get('/list', [\app\admin\controller\sys_manage\TaskController::class, 'select']); Route::get('/info', [\app\admin\controller\sys_manage\TaskController::class, 'info']); Route::post('/update', [\app\admin\controller\sys_manage\TaskController::class, 'update']); Route::post('/process', [\app\admin\controller\sys_manage\TaskController::class, 'process']); Route::get('/processLog', [\app\admin\controller\sys_manage\TaskController::class, 'processLog']); Route::delete('/delete', [\app\admin\controller\sys_manage\TaskController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); /* 业务支撑 */ Route::group('/life', function () { /* 演职人员管理 */ Route::group('/cinemaPerformers', function () { Route::get('/list', [\app\admin\controller\life\CinemaPerformersController::class, 'select']); Route::post('/add', [\app\admin\controller\life\CinemaPerformersController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\CinemaPerformersController::class, 'update']); Route::delete('/delete', [\app\admin\controller\life\CinemaPerformersController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 影片类型管理 */ Route::group('/cinemaIlk', function () { Route::get('/list', [\app\admin\controller\life\CinemaIlkController::class, 'select']); Route::post('/add', [\app\admin\controller\life\CinemaIlkController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\CinemaIlkController::class, 'update']); Route::delete('/delete', [\app\admin\controller\life\CinemaIlkController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 影片管理 */ Route::group('/cinema', function () { Route::get('/list', [\app\admin\controller\life\CinemaController::class, 'select']); Route::post('/add', [\app\admin\controller\life\CinemaController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\CinemaController::class, 'update']); Route::delete('/delete', [\app\admin\controller\life\CinemaController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 教师管理 */ Route::group('/teacher', function () { Route::get('/list', [\app\admin\controller\life\CollegeTeacherController::class, 'select']); Route::post('/add', [\app\admin\controller\life\CollegeTeacherController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\CollegeTeacherController::class, 'update']); Route::delete('/delete', [\app\admin\controller\life\CollegeTeacherController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 课程管理 */ Route::group('/courses', function () { Route::get('/list', [\app\admin\controller\life\CollegeCoursesController::class, 'select']); Route::post('/add', [\app\admin\controller\life\CollegeCoursesController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\CollegeCoursesController::class, 'update']); Route::delete('/delete', [\app\admin\controller\life\CollegeCoursesController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 课程安排管理 */ Route::group('/teaching', function () { Route::get('/list', [\app\admin\controller\life\CollegeTeachingController::class, 'select']); Route::post('/add', [\app\admin\controller\life\CollegeTeachingController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\CollegeTeachingController::class, 'update']); Route::delete('/delete', [\app\admin\controller\life\CollegeTeachingController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 地块管理 */ Route::group('/farmLand', function () { Route::get('/list', [\app\admin\controller\life\FarmLandController::class, 'select']); Route::get('/info', [\app\admin\controller\life\FarmLandController::class, 'info']); Route::post('/add', [\app\admin\controller\life\FarmLandController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\FarmLandController::class, 'update']); Route::delete('/delete', [\app\admin\controller\life\FarmLandController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 菜园管理 */ Route::group('/farmPlot', function () { Route::get('/list', [\app\admin\controller\life\FarmPlotController::class, 'select']); Route::get('/info', [\app\admin\controller\life\FarmPlotController::class, 'info']); Route::post('/add', [\app\admin\controller\life\FarmPlotController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\FarmPlotController::class, 'update']); Route::delete('/delete', [\app\admin\controller\life\FarmPlotController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 菜园农事操作管理 */ Route::group('/farmPlotRunning', function () { Route::get('/list', [\app\admin\controller\life\FarmPlotRunningController::class, 'select']); Route::get('/info', [\app\admin\controller\life\FarmPlotRunningController::class, 'info']); Route::post('/add', [\app\admin\controller\life\FarmPlotRunningController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\FarmPlotRunningController::class, 'update']); Route::post('/addProcess', [\app\admin\controller\life\FarmPlotRunningController::class, 'addProcess']); Route::post('/addHarvest', [\app\admin\controller\life\FarmPlotRunningController::class, 'addHarvest']); Route::delete('/delete', [\app\admin\controller\life\FarmPlotRunningController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 农场商品管理 */ Route::group('/farmGoods', function () { // Route::get('/list', [\app\admin\controller\life\FarmGoodsController::class, 'select']); Route::post('/add', [\app\admin\controller\life\FarmGoodsController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\FarmGoodsController::class, 'update']); // Route::post('/updateStatus', [\app\admin\controller\life\FarmGoodsController::class, 'updateStatus']); // Route::delete('/delete', [\app\admin\controller\life\FarmGoodsController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 农场套餐管理 */ Route::group('/farmPackage', function () { Route::get('/list', [\app\admin\controller\life\FarmPackageController::class, 'select']); Route::post('/add', [\app\admin\controller\life\FarmPackageController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\FarmPackageController::class, 'update']); Route::delete('/delete', [\app\admin\controller\life\FarmPackageController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 农场套餐商品管理 */ Route::group('/farmPackageGoods', function () { Route::get('/list', [\app\admin\controller\life\FarmPackageGoodsController::class, 'select']); Route::post('/add', [\app\admin\controller\life\FarmPackageGoodsController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\FarmPackageGoodsController::class, 'update']); Route::delete('/delete', [\app\admin\controller\life\FarmPackageGoodsController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 健康美食管理 */ Route::group('/healthyFood', function () { Route::get('/list', [\app\admin\controller\life\HealthyFoodController::class, 'select']); Route::post('/add', [\app\admin\controller\life\HealthyFoodController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\HealthyFoodController::class, 'update']); Route::post('/updateStatus', [\app\admin\controller\life\HealthyFoodController::class, 'updateStatus']); Route::delete('/delete', [\app\admin\controller\life\HealthyFoodController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 康旅路线管理 */ Route::group('/travelLine', function () { Route::get('/list', [\app\admin\controller\life\TravelLineController::class, 'select']); Route::post('/add', [\app\admin\controller\life\TravelLineController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\TravelLineController::class, 'update']); Route::delete('/delete', [\app\admin\controller\life\TravelLineController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 康旅排期管理 */ Route::group('/travelScheduling', function () { Route::get('/list', [\app\admin\controller\life\TravelSchedulingController::class, 'select']); Route::post('/add', [\app\admin\controller\life\TravelSchedulingController::class, 'insert']); Route::post('/update', [\app\admin\controller\life\TravelSchedulingController::class, 'update']); Route::delete('/delete', [\app\admin\controller\life\TravelSchedulingController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); /* 医疗 */ Route::group('/medical', function () { /* 医生管理 */ Route::group('/doctor', function () { Route::get('/list', [\app\admin\controller\medical\DoctorController::class, 'select']); Route::post('/add', [\app\admin\controller\medical\DoctorController::class, 'insert']); Route::post('/update', [\app\admin\controller\medical\DoctorController::class, 'update']); Route::delete('/delete', [\app\admin\controller\medical\DoctorController::class, 'delete']); Route::post('/relationUser', [\app\admin\controller\medical\DoctorController::class, 'relationUser']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 店铺管理 */ Route::group('/shop', function () { Route::get('/select', [\app\admin\controller\medical\ShopController::class, 'selectList']); Route::get('/list', [\app\admin\controller\medical\ShopController::class, 'select']); Route::post('/add', [\app\admin\controller\medical\ShopController::class, 'insert']); Route::post('/update', [\app\admin\controller\medical\ShopController::class, 'update']); Route::delete('/delete', [\app\admin\controller\medical\ShopController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 可预约的服务管理 */ Route::group('/reservationService', function () { Route::get('/list', [\app\admin\controller\medical\ReservationServiceController::class, 'select']); Route::post('/add', [\app\admin\controller\medical\ReservationServiceController::class, 'insert']); Route::post('/update', [\app\admin\controller\medical\ReservationServiceController::class, 'update']); Route::post('/updateStatus', [\app\admin\controller\medical\ReservationServiceController::class, 'updateStatus']); Route::delete('/delete', [\app\admin\controller\medical\ReservationServiceController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 可预约的科室管理 */ Route::group('/dept', function () { Route::get('/list', [\app\admin\controller\medical\DeptController::class, 'select']); Route::post('/add', [\app\admin\controller\medical\DeptController::class, 'insert']); Route::post('/update', [\app\admin\controller\medical\DeptController::class, 'update']); Route::delete('/delete', [\app\admin\controller\medical\DeptController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 预约业务员管理 */ Route::group('/salesman', function () { Route::get('/list', [\app\admin\controller\medical\SalesmanController::class, 'select']); Route::post('/add', [\app\admin\controller\medical\SalesmanController::class, 'insert']); Route::post('/update', [\app\admin\controller\medical\SalesmanController::class, 'update']); Route::post('/updateStatus', [\app\admin\controller\medical\SalesmanController::class, 'updateStatus']); Route::delete('/delete', [\app\admin\controller\medical\SalesmanController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 医疗团队管理 */ Route::group('/team', function () { Route::get('/list', [\app\admin\controller\medical\TeamController::class, 'deptList']); Route::get('/info/{id:\d+}', [\app\admin\controller\medical\TeamController::class, 'deptInfo']); Route::post('/add', [\app\admin\controller\medical\TeamController::class, 'addDept']); Route::post('/update/{id:\d+}', [\app\admin\controller\medical\TeamController::class, 'updateDept']); Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\medical\TeamController::class, 'updateStatus']); Route::delete('/delete', [\app\admin\controller\medical\TeamController::class, 'delDept']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); /* 服务团队管理 */ Route::group('/serviceTeam', function () { Route::get('/list', [\app\admin\controller\ServiceTeamController::class, 'deptList']); Route::get('/info/{id:\d+}', [\app\admin\controller\ServiceTeamController::class, 'deptInfo']); Route::post('/add', [\app\admin\controller\ServiceTeamController::class, 'addDept']); Route::post('/update/{id:\d+}', [\app\admin\controller\ServiceTeamController::class, 'updateDept']); Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\ServiceTeamController::class, 'updateStatus']); Route::delete('/delete', [\app\admin\controller\ServiceTeamController::class, 'delDept']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 健康 */ Route::group('/healthy', function () { /* 健康产品管理管理 */ Route::group('/product', function () { Route::get('/list', [\app\admin\controller\healthy\ProductController::class, 'select']); Route::post('/add', [\app\admin\controller\healthy\ProductController::class, 'insert']); Route::post('/update', [\app\admin\controller\healthy\ProductController::class, 'update']); Route::post('/updateStatus', [\app\admin\controller\healthy\ProductController::class, 'updateStatus']); Route::delete('/delete', [\app\admin\controller\healthy\ProductController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); /* 居家 */ Route::group('/atHome', function () { /* 商品管理 */ Route::group('/goods', function () { Route::get('/list', [\app\admin\controller\at_home\GoodsController::class, 'select']); Route::post('/add', [\app\admin\controller\at_home\GoodsController::class, 'insert']); Route::post('/update', [\app\admin\controller\at_home\GoodsController::class, 'update']); Route::delete('/delete', [\app\admin\controller\at_home\GoodsController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); /* 资产管理 */ Route::group('/asset', function () { /* 户型管理 */ Route::group('/houseType', function () { Route::get('/list', [\app\admin\controller\asset\HouseTypeController::class, 'select']); Route::post('/add', [\app\admin\controller\asset\HouseTypeController::class, 'insert']); Route::post('/update', [\app\admin\controller\asset\HouseTypeController::class, 'update']); Route::delete('/delete', [\app\admin\controller\asset\HouseTypeController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); /* 营销团队管理 */ Route::group('/market', function () { /* 团队管理 */ Route::group('/team', function () { Route::get('/list', [\app\admin\controller\consultant\TeamController::class, 'select']); Route::post('/add', [\app\admin\controller\consultant\TeamController::class, 'addDept']); Route::post('/update', [\app\admin\controller\consultant\TeamController::class, 'updateDept']); Route::delete('/delete', [\app\admin\controller\consultant\TeamController::class, 'delDept']); Route::get('/parent', [\app\admin\controller\consultant\TeamController::class, 'parentList']); Route::get('/check', [\app\admin\controller\consultant\TeamController::class, 'checkDept']); }); /* 员工管理 */ Route::group('/consultant', function () { Route::get('/list', [\app\admin\controller\consultant\IndexController::class, 'select']); Route::post('/add', [\app\admin\controller\consultant\IndexController::class, 'addConsultant']); Route::post('/update', [\app\admin\controller\consultant\IndexController::class, 'updateConsultant']); Route::delete('/delete', [\app\admin\controller\consultant\IndexController::class, 'deleteConsultant']); Route::get('/user', [\app\admin\controller\consultant\IndexController::class, 'getUserList']); }); /* 客户管理 */ Route::group('/custom', function () { Route::get('/config', [\app\admin\controller\consultant\CustomController::class, 'getOptionConfig']); Route::post('/add', [\app\admin\controller\consultant\CustomController::class, 'addCustom']); Route::post('/update', [\app\admin\controller\consultant\CustomController::class, 'updateCustom']); Route::get('/list', [\app\admin\controller\consultant\CustomController::class, 'select']); Route::delete('/delete', [\app\admin\controller\consultant\CustomController::class, 'deleteCustom']); Route::get('/follow', [\app\admin\controller\consultant\CustomController::class, 'followList']); Route::delete('/deleteFollow', [\app\admin\controller\consultant\CustomController::class, 'deleteFollow']); Route::post('/move', [\app\admin\controller\consultant\CustomController::class, 'moveCustom']); Route::get('/moveLogs', [\app\admin\controller\consultant\CustomController::class, 'moveLogs']); Route::post('/check', [\app\admin\controller\consultant\CustomController::class, 'checkCustom']); Route::get('/statistics', [\app\admin\controller\consultant\CustomController::class, 'statisticsIndex']); Route::get('/statistics_month', [\app\admin\controller\consultant\CustomController::class, 'statisticsByMonth']); Route::get('/export', [\app\admin\controller\consultant\CustomController::class, 'exportData']); Route::post('/appoint', [\app\admin\controller\consultant\CustomController::class, 'appointConsultant']); Route::post('/import', [\app\admin\controller\consultant\CustomController::class, 'importCustom']); }); }); Route::group('/customer', function () { Route::get('/selectList', [\app\admin\controller\customer\IndexController::class, 'selectList']); Route::get('/list', [\app\admin\controller\customer\IndexController::class, 'select']); Route::post('/add', [\app\admin\controller\customer\IndexController::class, 'insert']); Route::post('/update', [\app\admin\controller\customer\IndexController::class, 'update']); Route::delete('/delete', [\app\admin\controller\customer\IndexController::class, 'delete']); Route::post('/conversion', [\app\admin\controller\customer\IndexController::class, 'conversion']); }); /* 用户管理 */ Route::group('/member', function () { /* 家庭管理 */ Route::group('/family', function () { Route::get('/list', [\app\admin\controller\member\FamilyController::class, 'list']); Route::get('/list/{id:\w+}', [\app\admin\controller\member\FamilyController::class, 'selectList']); Route::get('/info/{id:\w+}', [\app\admin\controller\member\FamilyController::class, 'selectInfo']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/account', function () { Route::get('/my/{id:\w+}', [\app\admin\controller\member\AccountController::class, 'my']); Route::post('/incomeExpend', [\app\admin\controller\member\AccountController::class, 'incomeExpend']); Route::post('/updateStatus', [\app\admin\controller\member\AccountController::class, 'updateStatus']); Route::post('/bindCard', [\app\admin\controller\member\AccountController::class, 'bindCard']); Route::get('/selectMemberAccount', [\app\admin\controller\member\AccountController::class, 'selectMemberAccount']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/writeOff', function () { Route::get('/list', [\app\admin\controller\member\WriteOffController::class, 'list']); Route::get('/info', [\app\admin\controller\member\WriteOffController::class, 'info']); Route::post('/remark', [\app\admin\controller\member\WriteOffController::class, 'remark']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 用户管理 Route::group('', function () { Route::get('/selectList', [\app\admin\controller\member\MemberController::class, 'selectList']); Route::get('/selectWriteOffMember', [\app\admin\controller\member\MemberController::class, 'selectWriteOffMember']); Route::get('/selectFamilyMemberList', [\app\admin\controller\member\MemberController::class, 'selectFamilyMemberList']); Route::get('/selectMemberAllQuota', [\app\admin\controller\member\MemberController::class, 'selectMemberAllQuota']); Route::get('/selectMemberAllQuotaByAppointment', [\app\admin\controller\member\MemberController::class, 'selectMemberAllQuotaByAppointment']); Route::get('/welfareInfo', [\app\admin\controller\member\MemberController::class, 'welfareInfo']); Route::post('/clearWelfare', [\app\admin\controller\member\MemberController::class, 'clearWelfare']); Route::get('/vipInfo', [\app\admin\controller\member\MemberController::class, 'vipInfo']); Route::get('/cardInfo', [\app\admin\controller\member\MemberController::class, 'cardInfo']); Route::get('/coupon', [\app\admin\controller\member\MemberController::class, 'coupon']); Route::get('/allCoupon', [\app\admin\controller\member\MemberController::class, 'allCoupon']); Route::get('/couponCount', [\app\admin\controller\member\MemberController::class, 'couponCount']); Route::get('/couponDetail', [\app\admin\controller\member\MemberController::class, 'couponDetail']); Route::get('/balanceInfo', [\app\admin\controller\member\MemberController::class, 'balanceInfo']); Route::get('/pointInfo', [\app\admin\controller\member\MemberController::class, 'pointInfo']); Route::get('/list', [\app\admin\controller\member\MemberController::class, 'list']); Route::get('/info', [\app\admin\controller\member\MemberController::class, 'info']); Route::get('/statistics', [\app\admin\controller\member\MemberController::class, 'statistics']); Route::post('/add', [\app\admin\controller\member\MemberController::class, 'add']); Route::post('/update', [\app\admin\controller\member\MemberController::class, 'update']); Route::get('/exportMember', [\app\admin\controller\member\MemberController::class, 'exportMember']); Route::get('/fansList', [\app\admin\controller\member\MemberController::class, 'fansList']); Route::get('/commissionList', [\app\admin\controller\member\MemberController::class, 'commissionList']); Route::get('/rechargeBackupsList', [\app\admin\controller\member\MemberController::class, 'rechargeBackupsList']); Route::get('/roleBenefitUsedList', [\app\admin\controller\member\MemberController::class, 'roleBenefitUsedList']); Route::get('/consumptionList', [\app\admin\controller\member\MemberController::class, 'consumptionList']); Route::post('/roleBenefitExport', [\app\admin\controller\member\MemberController::class, 'roleBenefitExport']); Route::post('/roleBenefitRefund', [\app\admin\controller\member\MemberController::class, 'roleBenefitRefund']); Route::post('/refundOrder', [\app\admin\controller\member\MemberController::class, 'refundOrder']); Route::post('/exportConsumptionList', [\app\admin\controller\member\MemberController::class, 'exportConsumptionList']); Route::post('/crownContinue', [\app\admin\controller\member\MemberController::class, 'crownContinue']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 会员合伙人 Route::group('/partner', function () { Route::get('/list', [\app\admin\controller\member\PartnerController::class, 'list']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 加盟合伙人 Route::group('/franchisee', function () { Route::get('/list', [\app\admin\controller\member\FranchiseeController::class, 'list']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 康养推荐官 Route::group('/referrer', function () { Route::get('/list', [\app\admin\controller\member\ReferrerController::class, 'list']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 业主管理 Route::group('/owner', function () { Route::get('/selectList', [\app\admin\controller\member\OwnerController::class, 'selectList']); Route::get('/list', [\app\admin\controller\member\OwnerController::class, 'list']); Route::post('/add', [\app\admin\controller\member\OwnerController::class, 'add']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 核销管理 */ Route::group('/benefit', function () { Route::get('/list', [\app\admin\controller\member\BenefitController::class, 'select']); Route::get('/my', [\app\admin\controller\member\BenefitController::class, 'my']); Route::get('/service', [\app\admin\controller\member\BenefitController::class, 'service']); Route::post('/add', [\app\admin\controller\member\BenefitController::class, 'insert']); Route::post('/writeOff', [\app\admin\controller\member\BenefitController::class, 'writeOff']); Route::post('/update', [\app\admin\controller\member\BenefitController::class, 'update']); Route::delete('/delete', [\app\admin\controller\member\BenefitController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 档案管理 */ Route::group('/wellnessRecord', function () { Route::get('/my/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'my']); Route::get('/advice/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'advice']); Route::get('/archives/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'archives']); Route::get('/checkup/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'checkup']); Route::get('/visit/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'visit']); Route::get('/list', [\app\admin\controller\member\WellnessRecordController::class, 'select']); Route::get('/info', [\app\admin\controller\member\WellnessRecordController::class, 'info']); Route::post('/add', [\app\admin\controller\member\WellnessRecordController::class, 'insert']); Route::post('/update', [\app\admin\controller\member\WellnessRecordController::class, 'update']); Route::delete('/delete', [\app\admin\controller\member\WellnessRecordController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 体检管理 */ Route::group('/checkup', function () { Route::get('/list', [\app\admin\controller\member\CheckupController::class, 'select']); Route::post('/add', [\app\admin\controller\member\CheckupController::class, 'insert']); Route::post('/update', [\app\admin\controller\member\CheckupController::class, 'update']); Route::delete('/delete', [\app\admin\controller\member\CheckupController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 来访管理 */ Route::group('/visiting', function () { Route::get('/list', [\app\admin\controller\member\VisitingController::class, 'select']); Route::post('/add', [\app\admin\controller\member\VisitingController::class, 'insert']); Route::post('/update', [\app\admin\controller\member\VisitingController::class, 'update']); Route::delete('/delete', [\app\admin\controller\member\VisitingController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 设备管理 */ Route::group('/device', function () { Route::get('/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\MemberController::class, 'device']); Route::post('/add', [\app\admin\controller\member\MemberController::class, 'addDevice']); Route::post('/update', [\app\admin\controller\member\MemberController::class, 'updateDevice']); Route::delete('/delete', [\app\admin\controller\member\MemberController::class, 'deleteDevice']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 等级计价规则 */ Route::group('/rulePricing', function () { Route::get('/selectList', [\app\admin\controller\member\RulePricingController::class, 'selectList']); Route::get('/list', [\app\admin\controller\member\RulePricingController::class, 'select']); Route::post('/add', [\app\admin\controller\member\RulePricingController::class, 'insert']); Route::post('/update', [\app\admin\controller\member\RulePricingController::class, 'update']); Route::delete('/delete', [\app\admin\controller\member\RulePricingController::class, 'delete']); }); /* 等级 */ Route::group('/role', function () { Route::get('/list', [\app\admin\controller\member\RoleController::class, 'select']); Route::post('/add', [\app\admin\controller\member\RoleController::class, 'insert']); Route::post('/update', [\app\admin\controller\member\RoleController::class, 'update']); Route::delete('/delete', [\app\admin\controller\member\RoleController::class, 'delete']); Route::delete('/selectList', [\app\admin\controller\member\RoleController::class, 'selectList']); }); /* 增值包-主记录 */ Route::group('/ruleAdded', function () { Route::get('/list', [\app\admin\controller\member\RuleAddedController::class, 'select']); Route::post('/add', [\app\admin\controller\member\RuleAddedController::class, 'insert']); Route::post('/update', [\app\admin\controller\member\RuleAddedController::class, 'update']); Route::delete('/delete', [\app\admin\controller\member\RuleAddedController::class, 'delete']); }); /* 增值包-组件 */ Route::group('/ruleAddedComponent', function () { Route::get('/list', [\app\admin\controller\member\RuleAddedComponentController::class, 'select']); Route::post('/add', [\app\admin\controller\member\RuleAddedComponentController::class, 'insert']); Route::post('/update', [\app\admin\controller\member\RuleAddedComponentController::class, 'update']); Route::delete('/delete', [\app\admin\controller\member\RuleAddedComponentController::class, 'delete']); }); /* 会员额度明细 */ Route::group('/quota', function () { Route::get('/list', [\app\admin\controller\member\QuotaController::class, 'select']); Route::get('/writeOffList', [\app\admin\controller\member\QuotaController::class, 'writeOffList']); Route::post('/add', [\app\admin\controller\member\QuotaController::class, 'insert']); Route::post('/update', [\app\admin\controller\member\QuotaController::class, 'update']); Route::post('/writeOff', [\app\admin\controller\member\QuotaController::class, 'writeOff']); Route::delete('/delete', [\app\admin\controller\member\QuotaController::class, 'delete']); Route::get('/chooseList', [\app\admin\controller\member\QuotaController::class, 'chooseList']); Route::post('/writeOffBatch', [\app\admin\controller\member\QuotaController::class, 'writeOffBatch']); }); }); /* 营销管理 */ Route::group('/marketing', function () { /* 营业场所管理(独立表) */ Route::group('/premises', function () { Route::get('/list', [\app\admin\controller\marketing\PremisesController::class, 'select']); Route::post('/add', [\app\admin\controller\marketing\PremisesController::class, 'insert']); Route::post('/update', [\app\admin\controller\marketing\PremisesController::class, 'update']); Route::delete('/delete', [\app\admin\controller\marketing\PremisesController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 营业场所管理(部门表) */ Route::group('/deptPremises', function () { Route::get('/selectList', [\app\admin\controller\marketing\DeptPremisesController::class, 'selectList']); Route::get('/list', [\app\admin\controller\marketing\DeptPremisesController::class, 'select']); Route::get('/info', [\app\admin\controller\marketing\DeptPremisesController::class, 'info']); Route::post('/add', [\app\admin\controller\marketing\DeptPremisesController::class, 'insert']); Route::post('/update', [\app\admin\controller\marketing\DeptPremisesController::class, 'update']); Route::delete('/delete', [\app\admin\controller\marketing\DeptPremisesController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 营销团队管理 */ Route::group('/team', function () { Route::get('/list', [\app\admin\controller\marketing\TeamController::class, 'deptList']); Route::get('/info/{id:\d+}', [\app\admin\controller\marketing\TeamController::class, 'deptInfo']); Route::post('/add', [\app\admin\controller\marketing\TeamController::class, 'addDept']); Route::post('/update/{id:\d+}', [\app\admin\controller\marketing\TeamController::class, 'updateDept']); Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\marketing\TeamController::class, 'updateStatus']); Route::delete('/delete', [\app\admin\controller\marketing\TeamController::class, 'delDept']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); /* 康养设备管理 */ Route::group('/device', function () { Route::group('/ledger', function () { Route::get('/list', [\app\admin\controller\device\LedgerController::class, 'select']); Route::get('/select', [\app\admin\controller\device\LedgerController::class, 'selectList']); Route::post('/add', [\app\admin\controller\device\LedgerController::class, 'insert']); Route::post('/update', [\app\admin\controller\device\LedgerController::class, 'update']); Route::delete('/delete', [\app\admin\controller\device\LedgerController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('', function () { Route::get('/list', [\app\admin\controller\device\DeviceController::class, 'select']); Route::get('/select', [\app\admin\controller\device\DeviceController::class, 'selectList']); Route::post('/add', [\app\admin\controller\device\DeviceController::class, 'insert']); Route::post('/update', [\app\admin\controller\device\DeviceController::class, 'update']); Route::delete('/delete', [\app\admin\controller\device\DeviceController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/meta', function () { Route::get('/list', [\app\admin\controller\device\MetadataController::class, 'select']); Route::get('/select', [\app\admin\controller\device\MetadataController::class, 'selectList']); Route::post('/add', [\app\admin\controller\device\MetadataController::class, 'insert']); Route::post('/update', [\app\admin\controller\device\MetadataController::class, 'update']); Route::delete('/delete', [\app\admin\controller\device\MetadataController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); /* 优惠券管理 */ Route::group('/coupon', function () { Route::group('', function () { Route::get('/list', [\app\admin\controller\coupon\CouponController::class, 'select']); Route::get('/statistics', [\app\admin\controller\coupon\CouponController::class, 'statistics']); Route::get('/selectList', [\app\admin\controller\coupon\CouponController::class, 'selectList']); Route::get('/info', [\app\admin\controller\coupon\CouponController::class, 'info']); Route::post('/add', [\app\admin\controller\coupon\CouponController::class, 'insert']); Route::post('/customSend', [\app\admin\controller\coupon\CouponController::class, 'customSend']); Route::post('/update', [\app\admin\controller\coupon\CouponController::class, 'update']); Route::delete('/delete', [\app\admin\controller\coupon\CouponController::class, 'delete']); Route::post('/disable', [\app\admin\controller\coupon\CouponController::class, 'disableCoupon']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/detail', function () { Route::get('/list', [\app\admin\controller\coupon\CouponDetailController::class, 'select']); Route::get('/statistics', [\app\admin\controller\coupon\CouponDetailController::class, 'statistics']); Route::get('/info', [\app\admin\controller\coupon\CouponDetailController::class, 'info']); Route::post('/updateStatus', [\app\admin\controller\coupon\CouponDetailController::class, 'updateStatus']); Route::get('/myCouponGrouping', [\app\admin\controller\coupon\CouponDetailController::class, 'myCouponGrouping']); Route::get('/promotionCoupon', [\app\admin\controller\coupon\CouponDetailController::class, 'promotionCoupon']); Route::get('/export', [\app\admin\controller\coupon\CouponDetailController::class, 'export']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 券包 */ Route::group('/packet', function () { Route::get('/list', [\app\admin\controller\coupon\CouponPacketController::class, 'select']); Route::post('/add', [\app\admin\controller\coupon\CouponPacketController::class, 'insert']); Route::post('/update', [\app\admin\controller\coupon\CouponPacketController::class, 'update']); Route::get('/info', [\app\admin\controller\coupon\CouponPacketController::class, 'info']); Route::delete('/delete', [\app\admin\controller\coupon\CouponPacketController::class, 'delete']); Route::post('/packetIssue', [\app\admin\controller\coupon\CouponPacketController::class, 'packetIssue']); Route::post('/packetReIssue', [\app\admin\controller\coupon\CouponPacketController::class, 'packetReIssue']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/packetSequence', function () { Route::get('/list', [\app\admin\controller\coupon\CouponPacketSequenceController::class, 'select']); Route::get('/info', [\app\admin\controller\coupon\CouponPacketSequenceController::class, 'info']); Route::post('/updateStatus', [\app\admin\controller\coupon\CouponPacketSequenceController::class, 'updateStatus']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); /* 储值卡 */ Route::group('/card', function () { Route::group('/main', function () { Route::get('/list', [\app\admin\controller\coupon\CardMainController::class, 'select']); // Route::get('/statistics', [\app\admin\controller\coupon\CouponController::class, 'statistics']); Route::get('/selectList', [\app\admin\controller\coupon\CardMainController::class, 'selectList']); Route::get('/info', [\app\admin\controller\coupon\CardMainController::class, 'info']); Route::post('/add', [\app\admin\controller\coupon\CardMainController::class, 'insert']); Route::post('/update', [\app\admin\controller\coupon\CardMainController::class, 'update']); // Route::post('/issue', [\app\admin\controller\coupon\CardMainController::class, 'issue']); Route::delete('/delete', [\app\admin\controller\coupon\CardMainController::class, 'delete']); // Route::post('/disable', [\app\admin\controller\coupon\CouponController::class, 'disableCoupon']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/issue', function () { Route::get('/list', [\app\admin\controller\coupon\CardIssueController::class, 'select']); Route::get('/selectList', [\app\admin\controller\coupon\CardIssueController::class, 'getIssueList']); // Route::get('/statistics', [\app\admin\controller\coupon\CouponController::class, 'statistics']); // Route::get('/selectList', [\app\admin\controller\coupon\CouponController::class, 'selectList']); Route::get('/info', [\app\admin\controller\coupon\CardIssueController::class, 'info']); Route::post('/add', [\app\admin\controller\coupon\CardIssueController::class, 'insert']); Route::post('/update', [\app\admin\controller\coupon\CardIssueController::class, 'update']); Route::delete('/delete', [\app\admin\controller\coupon\CardIssueController::class, 'delete']); // Route::post('/disable', [\app\admin\controller\coupon\CouponController::class, 'disableCoupon']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('', function () { Route::get('/list', [\app\admin\controller\coupon\CardController::class, 'select']); Route::get('/info', [\app\admin\controller\coupon\CardController::class, 'info']); Route::get('/export', [\app\admin\controller\coupon\CardController::class, 'exportCard']); Route::get('/getCardIdsByMainId', [\app\admin\controller\coupon\CardController::class, 'getCardIdsByMainId']); Route::post('/add', [\app\admin\controller\coupon\CardController::class, 'insert']); Route::post('/update', [\app\admin\controller\coupon\CardController::class, 'update']); Route::post('/issue', [\app\admin\controller\coupon\CardController::class, 'issue']); Route::post('/allocation', [\app\admin\controller\coupon\CardController::class, 'allocation']); Route::delete('/delete', [\app\admin\controller\coupon\CardController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); /* 订单管理 */ Route::group('/order', function () { // 全部订单 Route::group('/whole', function () { Route::get('/list', [\app\admin\controller\order\WholeController::class, 'select']); Route::get('/sheet', [\app\admin\controller\order\WholeController::class, 'sheet']); Route::get('/update', [\app\admin\controller\order\WholeController::class, 'update']); Route::post('/delivery', [\app\admin\controller\order\WholeController::class, 'delivery']); Route::get('/myOrder', [\app\admin\controller\order\WholeController::class, 'myOrder']); Route::post('/add', [\app\admin\controller\order\WholeController::class, 'insert']); Route::post('/addConstitute', [\app\admin\controller\order\WholeController::class, 'insertConstitute']); Route::post('/delete', [\app\admin\controller\order\WholeController::class, 'delete']); Route::post('/doRefund', [\app\admin\controller\order\WholeController::class, 'doRefund']); Route::post('/writeOffDishes', [\app\admin\controller\order\WholeController::class, 'writeOffDishes']); Route::get('/exportOrder', [\app\admin\controller\order\WholeController::class, 'exportOrder']); Route::get('/benefitList', [\app\admin\controller\order\WholeController::class, 'benefitList']); Route::get('/chooseBenefitList', [\app\admin\controller\order\WholeController::class, 'chooseBenefitList']); Route::post('/writeOffBenefit', [\app\admin\controller\order\WholeController::class, 'writeOffBenefit']); Route::post('/pay', [\app\admin\controller\order\WholeController::class, 'pay']); Route::post('/payConstitute', [\app\admin\controller\order\WholeController::class, 'payConstitute']); Route::get('/checkPayMarking', [\app\admin\controller\order\WholeController::class, 'checkPayMarking']); Route::post('/addDishes', [\app\admin\controller\order\WholeController::class, 'addDishes']); Route::post('/cutMeals', [\app\admin\controller\order\WholeController::class, 'cutMeals']); Route::post('/customPrinter', [\app\admin\controller\order\WholeController::class, 'customPrinter']); Route::post('/printerWriterOff', [\app\admin\controller\order\WholeController::class, 'printerWriterOff']); Route::post('/cancelOrder', [\app\admin\controller\order\WholeController::class, 'cancelOrder']); Route::get('/getOrderPayStatus', [\app\admin\controller\order\WholeController::class, 'getOrderPayStatus']); Route::get('/getProductOrderPayStatus', [\app\admin\controller\order\WholeController::class, 'getProductOrderPayStatus']); Route::get('/writeOffList', [\app\admin\controller\order\WholeController::class, 'writeOffList']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); Route::group('/statistics', function () { Route::get('/order', [\app\admin\controller\order\StatisticsController::class, 'order']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // Route::group('/pending', function () { Route::get('/list', [\app\admin\controller\order\PendingController::class, 'select']); Route::get('/sheet', [\app\admin\controller\order\PendingController::class, 'sheet']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 餐饮订单 Route::group('/dishes', function () { Route::get('/list', [\app\admin\controller\order\DishesController::class, 'select']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 产品订单 Route::group('/goods', function () { Route::get('/list', [\app\admin\controller\order\GoodsController::class, 'select']); Route::post('/add', [\app\admin\controller\order\GoodsController::class, 'insert']); Route::post('/addConstitute', [\app\admin\controller\order\GoodsController::class, 'insertConstitute']); Route::post('/pay', [\app\admin\controller\order\GoodsController::class, 'pay']); Route::post('/payConstitute', [\app\admin\controller\order\GoodsController::class, 'payConstitute']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 康养城订单 Route::group('/kangyangCity', function () { Route::get('/list', [\app\admin\controller\order\KangyangCityController::class, 'select']); Route::post('/add', [\app\admin\controller\order\KangyangCityController::class, 'insert']); Route::post('/pay', [\app\admin\controller\order\KangyangCityController::class, 'pay']); Route::get('/sheet', [\app\admin\controller\order\KangyangCityController::class, 'sheet']); Route::get('/getPaidOrder', [\app\admin\controller\order\KangyangCityController::class, 'getPaidOrder']); Route::post('/uploadTicket', [\app\admin\controller\order\KangyangCityController::class, 'uploadTicket']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 合伙人订单 Route::group('/partner', function () { Route::get('/list', [\app\admin\controller\order\PartnerController::class, 'select']); Route::post('/add', [\app\admin\controller\order\PartnerController::class, 'insert']); Route::post('/pay', [\app\admin\controller\order\PartnerController::class, 'pay']); Route::get('/sheet', [\app\admin\controller\order\PartnerController::class, 'sheet']); Route::get('/getPaidOrder', [\app\admin\controller\order\PartnerController::class, 'getPaidOrder']); Route::post('/uploadTicket', [\app\admin\controller\order\PartnerController::class, 'uploadTicket']); Route::get('/getOrderPayStatus', [\app\admin\controller\order\PartnerController::class, 'getOrderPayStatus']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 加盟合伙人订单 Route::group('/franchisee', function () { Route::get('/list', [\app\admin\controller\order\FranchiseeController::class, 'select']); Route::post('/add', [\app\admin\controller\order\FranchiseeController::class, 'insert']); Route::post('/pay', [\app\admin\controller\order\FranchiseeController::class, 'pay']); Route::get('/sheet', [\app\admin\controller\order\FranchiseeController::class, 'sheet']); Route::get('/getPaidOrder', [\app\admin\controller\order\FranchiseeController::class, 'getPaidOrder']); Route::post('/uploadTicket', [\app\admin\controller\order\FranchiseeController::class, 'uploadTicket']); Route::get('/getOrderPayStatus', [\app\admin\controller\order\FranchiseeController::class, 'getOrderPayStatus']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 推荐人订单 Route::group('/referrer', function () { Route::get('/list', [\app\admin\controller\order\ReferrerController::class, 'select']); Route::post('/add', [\app\admin\controller\order\ReferrerController::class, 'insert']); Route::post('/pay', [\app\admin\controller\order\ReferrerController::class, 'pay']); Route::get('/sheet', [\app\admin\controller\order\ReferrerController::class, 'sheet']); Route::get('/getPaidOrder', [\app\admin\controller\order\ReferrerController::class, 'getPaidOrder']); Route::post('/uploadTicket', [\app\admin\controller\order\ReferrerController::class, 'uploadTicket']); Route::get('/getOrderPayStatus', [\app\admin\controller\order\ReferrerController::class, 'getOrderPayStatus']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 新客专享订单 Route::group('/newCustomer', function () { Route::get('/list', [\app\admin\controller\order\NewCustomerController::class, 'select']); Route::post('/add', [\app\admin\controller\order\NewCustomerController::class, 'insert']); Route::post('/pay', [\app\admin\controller\order\NewCustomerController::class, 'pay']); Route::get('/sheet', [\app\admin\controller\order\NewCustomerController::class, 'sheet']); Route::get('/getPaidOrder', [\app\admin\controller\order\NewCustomerController::class, 'getPaidOrder']); Route::post('/uploadTicket', [\app\admin\controller\order\NewCustomerController::class, 'uploadTicket']); Route::get('/getOrderPayStatus', [\app\admin\controller\order\NewCustomerController::class, 'getOrderPayStatus']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 服务订单 Route::group('/services', function () { Route::get('/list', [\app\admin\controller\order\ServicesController::class, 'select']); Route::post('/add', [\app\admin\controller\order\ServicesController::class, 'insert']); Route::post('/addConstitute', [\app\admin\controller\order\ServicesController::class, 'insertConstitute']); Route::post('/pay', [\app\admin\controller\order\ServicesController::class, 'pay']); Route::post('/payConstitute', [\app\admin\controller\order\ServicesController::class, 'payConstitute']); Route::get('/getOrderPayStatus', [\app\admin\controller\order\WholeController::class, 'getOrderPayStatus']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 套包订单 Route::group('/packages', function () { Route::get('/list', [\app\admin\controller\order\PackagesController::class, 'select']); Route::post('/writeOff', [\app\admin\controller\order\PackagesController::class, 'writeOff']); Route::post('/add', [\app\admin\controller\order\PackagesController::class, 'insert']); Route::post('/addConstitute', [\app\admin\controller\order\PackagesController::class, 'insertConstitute']); Route::post('/pay', [\app\admin\controller\order\PackagesController::class, 'pay']); Route::post('/payConstitute', [\app\admin\controller\order\PackagesController::class, 'payConstitute']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 售后订单 Route::group('/return', function () { Route::get('/list', [\app\admin\controller\order\ReturnController::class, 'select']); Route::get('/sheet', [\app\admin\controller\order\ReturnController::class, 'sheet']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 已完成订单 Route::group('/complete', function () { Route::get('/list', [\app\admin\controller\order\CompleteController::class, 'select']); Route::get('/sheet', [\app\admin\controller\order\CompleteController::class, 'sheet']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 预约订单 Route::group('/appointment', function () { Route::get('/list', [\app\admin\controller\order\AppointmentController::class, 'select']); Route::get('/add', [\app\admin\controller\order\AppointmentController::class, 'add']); Route::get('/update', [\app\admin\controller\order\AppointmentController::class, 'update']); Route::post('/confirm/{id:[0-9a-zA-Z]+}', [\app\admin\controller\order\AppointmentController::class, 'confirm']); Route::get('/getTimes', [\app\admin\controller\order\AppointmentController::class, 'getTimes']); Route::get('/my', [\app\admin\controller\order\AppointmentController::class, 'myAppointments']); Route::post('/arrival', [\app\admin\controller\order\AppointmentController::class, 'arrival']); Route::post('/done', [\app\admin\controller\order\AppointmentController::class, 'done']); Route::post('/cancelApply', [\app\admin\controller\order\AppointmentController::class, 'cancelApply']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 退款管理 Route::group('/refund', function () { Route::get('/list', [\app\admin\controller\order\RefundController::class, 'select']); Route::get('/sheet', [\app\admin\controller\order\RefundController::class, 'sheet']); Route::get('/rechargeSheet', [\app\admin\controller\order\RefundController::class, 'rechargeSheet']); Route::post('/customRefund', [\app\admin\controller\order\RefundController::class, 'customRefund']); Route::post('/rechargeRefund', [\app\admin\controller\order\RefundController::class, 'rechargeRefund']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); // 支付记录 Route::group('/payDetail', function () { Route::get('/list', [\app\admin\controller\order\PayDetailController::class, 'select']); Route::get('/statistics', [\app\admin\controller\order\PayDetailController::class, 'statistics']); Route::get('/welfareList', [\app\admin\controller\order\PayDetailController::class, 'selectWelfare']); Route::get('/goodsOrder', [\app\admin\controller\order\PayDetailController::class, 'goodsOrder']); Route::post('/insertRecharge', [\app\admin\controller\order\PayDetailController::class, 'insertRecharge']); Route::post('/insertGive', [\app\admin\controller\order\PayDetailController::class, 'insertGive']); Route::post('/insertRechargeWelfare', [\app\admin\controller\order\PayDetailController::class, 'insertRechargeWelfare']); // Route::get('/info', [\app\admin\controller\order\AppointmentController::class, 'info']); }); // 充值订单 Route::group('/recharge', function () { Route::get('/list', [\app\admin\controller\order\RechargeController::class, 'select']); Route::post('/add', [\app\admin\controller\order\RechargeController::class, 'insert']); Route::post('/pay', [\app\admin\controller\order\RechargeController::class, 'pay']); Route::get('/sheet', [\app\admin\controller\order\RechargeController::class, 'sheet']); Route::get('/getPaidOrder', [\app\admin\controller\order\RechargeController::class, 'getPaidOrder']); Route::post('/uploadTicket', [\app\admin\controller\order\RechargeController::class, 'uploadTicket']); Route::get('/getOrderPayStatus', [\app\admin\controller\order\RechargeController::class, 'getOrderPayStatus']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); /* 统计 */ Route::group('/statistics', function () { Route::get('/member', [\app\admin\controller\statistics\MemberController::class, 'index']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 客户端相关数据 */ Route::group('/client', function () { Route::group('', function () { // 我的关注 Route::get('/favorite/list', [\app\admin\controller\client\FavoriteController::class, 'select']); // 我的收藏 Route::get('/collection/list', [\app\admin\controller\client\CollectionController::class, 'select']); // 我的积分 Route::get('/points/list', [\app\admin\controller\client\PointsController::class, 'select']); // 我的评价 // Route::get('/evaluate/list', [\app\admin\controller\client\EvaluateController::class, 'select']); // 我的购物车 Route::get('/cart/list', [\app\admin\controller\client\CartController::class, 'select']); // 我的优惠券 Route::get('/coupon/list', [\app\admin\controller\client\CouponController::class, 'select']); // 我的浏览数据 Route::get('/browse/list', [\app\admin\controller\client\BrowseController::class, 'select']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 评价管理 */ Route::group('/evaluate', function () { Route::get('/list', [\app\admin\controller\client\EvaluateController::class, 'select']); Route::get('/statistics', [\app\admin\controller\client\EvaluateController::class, 'statistics']); Route::post('/add', [\app\admin\controller\client\EvaluateController::class, 'insert']); Route::post('/update', [\app\admin\controller\client\EvaluateController::class, 'update']); Route::delete('/delete', [\app\admin\controller\client\EvaluateController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); /* 消息管理 */ Route::group('/message', function () { Route::group('', function () { Route::get('/list', [\app\admin\controller\client\MessageController::class, 'select']); Route::post('/add', [\app\admin\controller\client\MessageController::class, 'insert']); Route::post('/groupAdd', [\app\admin\controller\client\MessageController::class, 'groupInsert']); Route::post('/update', [\app\admin\controller\client\MessageController::class, 'update']); Route::delete('/delete', [\app\admin\controller\client\MessageController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); /* APP参数管理 */ Route::group('/appParams', function () { Route::group('', function () { Route::get('/list', [\app\admin\controller\client\AppParamsController::class, 'select']); Route::post('/add', [\app\admin\controller\client\AppParamsController::class, 'insert']); Route::post('/update', [\app\admin\controller\client\AppParamsController::class, 'update']); Route::delete('/delete', [\app\admin\controller\client\AppParamsController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); Route::group('/feedback', function () { Route::get('/list', [\app\admin\controller\client\FeedbackController::class, 'select']); Route::post('/add', [\app\admin\controller\content\SpecialController::class, 'insert']); Route::post('/update', [\app\admin\controller\content\SpecialController::class, 'update']); Route::delete('/delete', [\app\admin\controller\content\SpecialController::class, 'delete']); })->middleware([ \app\middleware\AdminAuthCheck::class ]); }); Route::group('/dashboard', function () { Route::get('/', [\app\admin\controller\dashboard\DashboardController::class, 'index']); }); // /* 储值卡管理 */ // Route::group('/card', function () { // /* 卡管理 */ // Route::group('/card', function () { // Route::get('/list', [\app\admin\controller\card\CardController::class, 'list']); // Route::get('/info', [\app\admin\controller\card\CardController::class, 'info']); // Route::get('/exportCard', [\app\admin\controller\card\CardController::class, 'exportCard']); // Route::delete('/delete', [\app\admin\controller\card\CardController::class, 'delete']); // Route::post('/save', [\app\admin\controller\card\CardController::class, 'save']); // Route::get('/status', [\app\admin\controller\card\CardController::class, 'getStatusList']); // Route::post('/binding', [\app\admin\controller\card\CardController::class, 'binding']); // })->middleware([ // \app\middleware\AdminAuthCheck::class // ]); // // /* 卡批次管理 */ // Route::group('/cardBatch', function () { // Route::post('/add', [\app\admin\controller\card\CardBatchController::class, 'insert']); // Route::post('/save', [\app\admin\controller\card\CardBatchController::class, 'save']); // Route::delete('/delete', [\app\admin\controller\card\CardBatchController::class, 'delete']); // Route::get('/list', [\app\admin\controller\card\CardBatchController::class, 'list']); // Route::get('/info', [\app\admin\controller\card\CardBatchController::class, 'info']); // Route::get('/status', [\app\admin\controller\card\CardBatchController::class, 'getStatusList']); // })->middleware([ // \app\middleware\AdminAuthCheck::class // ]); // }); }); Route::group('/notify', function () { Route::post('/recharge/paySuccess', [\app\admin\controller\notify\RechargeController::class, 'paySuccess']); Route::post('/orderPay/wxpay', [\app\admin\controller\notify\OrderPayController::class, 'wxpay']); Route::post('/orderPay/alipay', [\app\admin\controller\notify\OrderPayController::class, 'alipay']); });