12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112 |
- <?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::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']);
- Route::get('/sheet', [\app\admin\controller\order\KangyangCityController::class, 'sheet']);
- Route::get('/getPaidOrder', [\app\admin\controller\order\KangyangCityController::class, 'getPaidOrder']);
- })->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']);
- });
|