123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922 |
- <?php
- use app\admin\controller\finance\WriteOffController;
- use Webman\Route;
- 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::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('/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('/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,'records']);
- });
- 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('/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('/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('/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']);
- })->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('/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']);
- })->middleware([
- \app\middleware\AdminAuthCheck::class
- ]);
- Route::group('/writeOff',function(){
- Route::get('/list',[\app\admin\controller\member\WriteOffController::class,'list']);
- })->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('/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::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::post('/add', [\app\admin\controller\coupon\CouponController::class, 'insert']);
- 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('/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('/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']);
- })->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('/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']);
- })->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']);
- })->middleware([
- \app\middleware\AdminAuthCheck::class
- ]);
- // 支付记录
- Route::group('/payDetail', function () {
- Route::get('/list', [\app\admin\controller\order\PayDetailController::class, 'select']);
- Route::get('/goodsOrder',[\app\admin\controller\order\PayDetailController::class,'goodsOrder']);
- Route::post('/insertRecharge',[\app\admin\controller\order\PayDetailController::class,'insertRecharge']);
- // 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('/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('/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\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('/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']);
- })->middleware([
- \app\middleware\AdminAuthCheck::class
- ]);
- });
- });
- Route::group('/notify', function () {
- Route::post('/recharge/paySuccess', [\app\admin\controller\notify\RechargeController::class, 'disposePaySuccess']);
- });
|