1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111 |
- <?php
- use Webman\Route;
- Route::options('[{path:.+}]', function (){
- return response('');
- });
- Route::group('/admin', function () {
- Route::group('/upload', function () {
- Route::post('/image', [\app\admin\controller\sys_manage\UploadController::class, 'image']);
- Route::post('/video', [\app\admin\controller\sys_manage\UploadController::class, 'video']);
- Route::post('/file', [\app\admin\controller\sys_manage\UploadController::class, 'file']);
- Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\UploadController::class, 'updateStatus']);
- })->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('/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('/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('/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('/statistics',[\app\admin\controller\finance\GoodsSalesController::class,'statistics']);
- Route::get('/list',[\app\admin\controller\finance\GoodsSalesController::class,'list']);
- });
- Route::group('/memberAccount',function (){
- Route::get('/list',[\app\admin\controller\finance\MemberAccountController::class,'list']);
- });
- 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('/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('/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']);
- })->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::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('/bottomMenuList', [\app\admin\controller\sys_manage\ConfigController::class, 'bottomMenuList']);
- // Route::post('/bottomMenuSave', [\app\admin\controller\sys_manage\ConfigController::class, 'bottomMenuSave']);
- // // 导航菜单
- // Route::get('/navMenuList', [\app\admin\controller\sys_manage\ConfigController::class, 'navMenuList']);
- // Route::post('/navMenuSave', [\app\admin\controller\sys_manage\ConfigController::class, 'navMenuSave']);
- // 参数配置
- Route::get('/paramsList', [\app\admin\controller\sys_manage\ConfigController::class, 'paramsList']);
- Route::post('/paramsSave', [\app\admin\controller\sys_manage\ConfigController::class, 'paramsSave']);
- });
- /* 运费模板管理 */
- 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('/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::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::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::get('/vipInfo', [\app\admin\controller\member\MemberController::class, 'vipInfo']);
- Route::get('/coupon', [\app\admin\controller\member\MemberController::class, 'coupon']);
- 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::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']);
- })->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('/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('/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']);
- })->middleware([
- \app\middleware\AdminAuthCheck::class
- ]);
- Route::group('/detail', function () {
- Route::get('/list', [\app\admin\controller\coupon\CouponDetailController::class, 'select']);
- 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']);
- })->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::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('/cancelOrder', [\app\admin\controller\order\WholeController::class, 'cancelOrder']);
- Route::get('/getOrderPayStatus', [\app\admin\controller\order\WholeController::class, 'getOrderPayStatus']);
- })->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']);
- })->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']);
- })->middleware([
- \app\middleware\AdminAuthCheck::class
- ]);
- // 服务订单
- Route::group('/services', function () {
- Route::get('/list', [\app\admin\controller\order\ServicesController::class, 'select']);
- })->middleware([
- \app\middleware\AdminAuthCheck::class
- ]);
- // 套包订单
- Route::group('/packages', function () {
- Route::get('/list', [\app\admin\controller\order\PackagesController::class, 'select']);
- })->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::post('/customRefund',[\app\admin\controller\order\RefundController::class,'customRefund']);
- })->middleware([
- \app\middleware\AdminAuthCheck::class
- ]);
- // 支付记录
- Route::group('/payDetail', function () {
- Route::get('/list', [\app\admin\controller\order\PayDetailController::class, 'select']);
- 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('/insertRechargeWelfare',[\app\admin\controller\order\PayDetailController::class,'insertRechargeWelfare']);
- // Route::get('/info', [\app\admin\controller\order\AppointmentController::class, 'info']);
- });
- });
- /* 统计 */
- 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::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('/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']);
- });
|