admin.php 97 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420
  1. <?php
  2. use Webman\Route;
  3. Route::options('[{path:.+}]', function () {
  4. return response('');
  5. });
  6. Route::group('/admin', function () {
  7. Route::group('/upload', function () {
  8. Route::post('/image', [\app\admin\controller\sys_manage\UploadController::class, 'image']);
  9. Route::post('/video', [\app\admin\controller\sys_manage\UploadController::class, 'video']);
  10. Route::post('/file', [\app\admin\controller\sys_manage\UploadController::class, 'file']);
  11. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\UploadController::class, 'updateStatus']);
  12. })->middleware([
  13. \app\middleware\AdminAuthCheck::class
  14. ]);
  15. Route::group('/sms', function () {
  16. Route::post('/quotaWriteOffCode', [\app\admin\controller\sms\SmsController::class, 'sendSmsCodeByQuota']);
  17. Route::post('/benefitWriteOffCode', [\app\admin\controller\sms\SmsController::class, 'sendSmsCodeByBenefit']);
  18. Route::post('/writeOffCode', [\app\admin\controller\sms\SmsController::class, 'sendSmsCodeByWriteOff']);
  19. Route::post('/orderPay', [\app\admin\controller\sms\SmsController::class, 'sendSmsByOrderPay']);
  20. Route::post('/dishesWriteOffCode', [\app\admin\controller\sms\SmsController::class, 'dishesWriteOffCode']);
  21. });
  22. /* 鉴权 */
  23. Route::group('/auth', function () {
  24. Route::post('/login', [\app\admin\controller\auth\AuthController::class, 'login']);
  25. Route::post('/logout', [\app\admin\controller\auth\AuthController::class, 'logout']);
  26. Route::get('/userInfo', [\app\admin\controller\auth\AuthController::class, 'userInfo']);
  27. Route::get('/refreshToken', [\app\admin\controller\auth\AuthController::class, 'refreshToken']);
  28. })->middleware([
  29. \app\middleware\AdminAuthCheck::class
  30. ]);
  31. Route::group('/content', function () {
  32. Route::group('/special', function () {
  33. Route::get('/list', [\app\admin\controller\content\SpecialController::class, 'select']);
  34. Route::post('/add', [\app\admin\controller\content\SpecialController::class, 'insert']);
  35. Route::post('/update', [\app\admin\controller\content\SpecialController::class, 'update']);
  36. Route::delete('/delete', [\app\admin\controller\content\SpecialController::class, 'delete']);
  37. })->middleware([
  38. \app\middleware\AdminAuthCheck::class
  39. ]);
  40. Route::group('/subject', function () {
  41. Route::get('/list', [\app\admin\controller\content\SubjectController::class, 'select']);
  42. Route::get('/info', [\app\admin\controller\content\SubjectController::class, 'info']);
  43. Route::post('/add', [\app\admin\controller\content\SubjectController::class, 'insert']);
  44. Route::post('/update', [\app\admin\controller\content\SubjectController::class, 'update']);
  45. Route::delete('/delete', [\app\admin\controller\content\SubjectController::class, 'delete']);
  46. })->middleware([
  47. \app\middleware\AdminAuthCheck::class
  48. ]);
  49. Route::group('/activity', function () {
  50. Route::get('/list', [\app\admin\controller\content\ActivityController::class, 'select']);
  51. Route::post('/add', [\app\admin\controller\content\ActivityController::class, 'insert']);
  52. Route::post('/update', [\app\admin\controller\content\ActivityController::class, 'update']);
  53. Route::delete('/delete', [\app\admin\controller\content\ActivityController::class, 'delete']);
  54. })->middleware([
  55. \app\middleware\AdminAuthCheck::class
  56. ]);
  57. });
  58. Route::group('/goods', function () {
  59. /* 实物商品管理 */
  60. Route::group('/entity', function () {
  61. Route::get('/selectAll', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAll']);
  62. Route::get('/selectIdNameList', [\app\admin\controller\goods\EntityGoodsController::class, 'selectIdNameList']);
  63. Route::get('/selectAllByGoodsName', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAllByGoodsName']);
  64. Route::get('/selectAllByCategoryForRuleAddComponent', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAllByCategoryForRuleAddComponent']);
  65. Route::get('/getPremises', [\app\admin\controller\goods\EntityGoodsController::class, 'selectPremisesByGoodsId']);
  66. Route::get('/list', [\app\admin\controller\goods\EntityGoodsController::class, 'select']);
  67. Route::get('/info', [\app\admin\controller\goods\EntityGoodsController::class, 'info']);
  68. Route::post('/add', [\app\admin\controller\goods\EntityGoodsController::class, 'insert']);
  69. Route::post('/update', [\app\admin\controller\goods\EntityGoodsController::class, 'update']);
  70. Route::delete('/delete', [\app\admin\controller\goods\EntityGoodsController::class, 'delete']);
  71. })->middleware([
  72. \app\middleware\AdminAuthCheck::class
  73. ]);
  74. Route::group('/recharge', function () {
  75. Route::get('/list', [\app\admin\controller\goods\RechargeGoodsController::class, 'select']);
  76. Route::post('/add', [\app\admin\controller\goods\RechargeGoodsController::class, 'insert']);
  77. Route::post('/update', [\app\admin\controller\goods\RechargeGoodsController::class, 'update']);
  78. })->middleware([
  79. \app\middleware\AdminAuthCheck::class
  80. ]);
  81. /* 业务服务商品管理 */
  82. Route::group('/service', function () {
  83. Route::get('/list', [\app\admin\controller\goods\ServiceGoodsController::class, 'select']);
  84. Route::get('/selectList', [\app\admin\controller\goods\ServiceGoodsController::class, 'selectList']);
  85. Route::get('/selectCascaderList', [\app\admin\controller\goods\ServiceGoodsController::class, 'selectCascaderList']);
  86. Route::get('/selectPicking', [\app\admin\controller\goods\ServiceGoodsController::class, 'selectPicking']);
  87. Route::get('/info', [\app\admin\controller\goods\ServiceGoodsController::class, 'info']);
  88. Route::post('/add', [\app\admin\controller\goods\ServiceGoodsController::class, 'insert']);
  89. Route::post('/update', [\app\admin\controller\goods\ServiceGoodsController::class, 'update']);
  90. Route::post('/changeStatus', [\app\admin\controller\goods\ServiceGoodsController::class, 'changeStatus']);
  91. Route::delete('/delete', [\app\admin\controller\goods\ServiceGoodsController::class, 'delete']);
  92. })->middleware([
  93. \app\middleware\AdminAuthCheck::class
  94. ]);
  95. /* 营销专题商品管理 */
  96. Route::group('/special', function () {
  97. Route::get('/list', [\app\admin\controller\goods\SpecialGoodsController::class, 'select']);
  98. Route::get('/info', [\app\admin\controller\goods\SpecialGoodsController::class, 'info']);
  99. Route::post('/add', [\app\admin\controller\goods\SpecialGoodsController::class, 'insert']);
  100. Route::post('/update', [\app\admin\controller\goods\SpecialGoodsController::class, 'update']);
  101. Route::delete('/delete', [\app\admin\controller\goods\SpecialGoodsController::class, 'delete']);
  102. })->middleware([
  103. \app\middleware\AdminAuthCheck::class
  104. ]);
  105. /*套包商品管理 */
  106. Route::group('/package', function () {
  107. Route::get('/list', [\app\admin\controller\goods\PackageGoodsController::class, 'select']);
  108. Route::get('/selectList', [\app\admin\controller\goods\PackageGoodsController::class, 'selectList']);
  109. Route::get('/info', [\app\admin\controller\goods\PackageGoodsController::class, 'info']);
  110. Route::post('/add', [\app\admin\controller\goods\PackageGoodsController::class, 'insert']);
  111. Route::post('/update', [\app\admin\controller\goods\PackageGoodsController::class, 'update']);
  112. Route::delete('/delete', [\app\admin\controller\goods\PackageGoodsController::class, 'delete']);
  113. })->middleware([
  114. \app\middleware\AdminAuthCheck::class
  115. ]);
  116. /*康旅商品管理 */
  117. Route::group('/travel', function () {
  118. Route::get('/list', [\app\admin\controller\goods\TravelGoodsController::class, 'select']);
  119. Route::post('/add', [\app\admin\controller\goods\TravelGoodsController::class, 'insert']);
  120. Route::post('/update', [\app\admin\controller\goods\TravelGoodsController::class, 'update']);
  121. })->middleware([
  122. \app\middleware\AdminAuthCheck::class
  123. ]);
  124. /* 新客专享 */
  125. Route::group('/newCustomer', function () {
  126. Route::get('/info', [\app\admin\controller\goods\NewCustomerController::class, 'info']);
  127. Route::post('/update', [\app\admin\controller\goods\NewCustomerController::class, 'update']);
  128. })->middleware([
  129. \app\middleware\AdminAuthCheck::class
  130. ]);
  131. /* 合伙人 */
  132. Route::group('/partner', function () {
  133. Route::get('/info', [\app\admin\controller\goods\PartnerController::class, 'info']);
  134. Route::post('/update', [\app\admin\controller\goods\PartnerController::class, 'update']);
  135. })->middleware([
  136. \app\middleware\AdminAuthCheck::class
  137. ]);
  138. /* 推荐官 */
  139. Route::group('/referrer', function () {
  140. Route::get('/info', [\app\admin\controller\goods\ReferrerController::class, 'info']);
  141. Route::post('/update', [\app\admin\controller\goods\ReferrerController::class, 'update']);
  142. })->middleware([
  143. \app\middleware\AdminAuthCheck::class
  144. ]);
  145. /* 会员充值权益 */
  146. Route::group('/memberRechargeBenefit', function () {
  147. Route::get('/list', [\app\admin\controller\goods\MemberRechargeBenefitController::class, 'select']);
  148. Route::get('/selectCascaderList', [\app\admin\controller\goods\MemberRechargeBenefitController::class, 'selectCascaderList']);
  149. Route::get('/info', [\app\admin\controller\goods\MemberRechargeBenefitController::class, 'info']);
  150. Route::post('/update', [\app\admin\controller\goods\MemberRechargeBenefitController::class, 'update']);
  151. })->middleware([
  152. \app\middleware\AdminAuthCheck::class
  153. ]);
  154. });
  155. /* 财务管理 */
  156. Route::group('/finance', function () {
  157. Route::group('/writeOff', function () {
  158. Route::get('/list', [\app\admin\controller\finance\WriteOffController::class, 'list']);
  159. Route::get('/statistics', [\app\admin\controller\finance\WriteOffController::class, 'statistics']);
  160. });
  161. Route::group('/goodsSales', function () {
  162. Route::get('/info', [\app\admin\controller\finance\GoodsSalesController::class, 'info']);
  163. Route::get('/list', [\app\admin\controller\finance\GoodsSalesController::class, 'list']);
  164. Route::get('/export', [\app\admin\controller\finance\GoodsSalesController::class, 'exportGoodsSales']);
  165. });
  166. Route::group('/memberAccount', function () {
  167. Route::get('/list', [\app\admin\controller\finance\MemberAccountController::class, 'list']);
  168. Route::get('/export', [\app\admin\controller\finance\MemberAccountController::class, 'exportMemberAccount']);
  169. });
  170. Route::group('/premisesMember', function () {
  171. Route::get('/list', [\app\admin\controller\finance\PremisesMemberController::class, 'list']);
  172. });
  173. Route::group('/incomeAndExpend', function () {
  174. Route::get('/list', [\app\admin\controller\finance\IncomeAndExpendController::class, 'list']);
  175. });
  176. /* 提成管理 */
  177. Route::group('/commissionList', function () {
  178. Route::get('/list', [\app\admin\controller\finance\CommissionListController::class, 'select']);
  179. Route::get('/statistics', [\app\admin\controller\finance\CommissionListController::class, 'statistics']);
  180. Route::get('/info', [\app\admin\controller\finance\CommissionListController::class, 'info']);
  181. })->middleware([
  182. \app\middleware\AdminAuthCheck::class
  183. ]);
  184. /* 提现管理 */
  185. Route::group('/withdrawalList', function () {
  186. Route::get('/list', [\app\admin\controller\finance\WithdrawalListController::class, 'select']);
  187. Route::get('/statistics', [\app\admin\controller\finance\WithdrawalListController::class, 'statistics']);
  188. Route::get('/info', [\app\admin\controller\finance\WithdrawalListController::class, 'info']);
  189. Route::post('/changeStatus', [\app\admin\controller\finance\WithdrawalListController::class, 'changeStatus']);
  190. Route::get('/export', [\app\admin\controller\finance\WithdrawalListController::class, 'export']);
  191. })->middleware([
  192. \app\middleware\AdminAuthCheck::class
  193. ]);
  194. /* 充值管理 */
  195. Route::group('/recharge', function () {
  196. Route::get('/list', [\app\admin\controller\finance\RechargeController::class, 'list']);
  197. })->middleware([
  198. \app\middleware\AdminAuthCheck::class
  199. ]);
  200. });
  201. /* 系统管理中心 */
  202. Route::group('/sys', function () {
  203. /* API管理 */
  204. Route::group('/api', function () {
  205. Route::get('/list', [\app\admin\controller\sys_manage\ApiController::class, 'select']);
  206. Route::post('/add', [\app\admin\controller\sys_manage\ApiController::class, 'insert']);
  207. Route::post('/update', [\app\admin\controller\sys_manage\ApiController::class, 'update']);
  208. Route::delete('/delete', [\app\admin\controller\sys_manage\ApiController::class, 'delete']);
  209. })->middleware([
  210. \app\middleware\AdminAuthCheck::class
  211. ]);
  212. /* 铃铛提醒 */
  213. Route::group('/bells', function () {
  214. Route::get('/orderNum', [\app\admin\controller\sys_manage\BellsController::class, 'orderNum']);
  215. Route::get('/orderList', [\app\admin\controller\sys_manage\BellsController::class, 'orderList']);
  216. Route::post('/closeOrderBell', [\app\admin\controller\sys_manage\BellsController::class, 'closeOrderBell']);
  217. })->middleware([
  218. \app\middleware\AdminAuthCheck::class
  219. ]);
  220. /* 绿通医院 */
  221. Route::group('/greenChannel', function () {
  222. Route::get('/list', [\app\admin\controller\sys_manage\GreenChannelController::class, 'select']);
  223. Route::post('/add', [\app\admin\controller\sys_manage\GreenChannelController::class, 'insert']);
  224. Route::post('/update', [\app\admin\controller\sys_manage\GreenChannelController::class, 'update']);
  225. Route::delete('/delete', [\app\admin\controller\sys_manage\GreenChannelController::class, 'delete']);
  226. })->middleware([
  227. \app\middleware\AdminAuthCheck::class
  228. ]);
  229. /* 角色管理 */
  230. Route::group('/role', function () {
  231. Route::get('/select', [\app\admin\controller\sys_manage\RoleController::class, 'select']);
  232. Route::get('/list', [\app\admin\controller\sys_manage\RoleController::class, 'roleList']);
  233. Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\RoleController::class, 'roleInfo']);
  234. Route::post('/add', [\app\admin\controller\sys_manage\RoleController::class, 'addRole']);
  235. Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\RoleController::class, 'updateRole']);
  236. Route::delete('/delete', [\app\admin\controller\sys_manage\RoleController::class, 'delRole']);
  237. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\RoleController::class, 'updateStatus']);
  238. Route::post('/updatePermission/{id:\d+}', [\app\admin\controller\sys_manage\RoleController::class, 'updatePermission']);
  239. })->middleware([
  240. \app\middleware\AdminAuthCheck::class
  241. ]);
  242. /* 部门管理 */
  243. Route::group('/dept', function () {
  244. Route::get('/list', [\app\admin\controller\sys_manage\DeptController::class, 'deptList']);
  245. Route::get('/select', [\app\admin\controller\sys_manage\DeptController::class, 'select']);
  246. Route::get('/selectList', [\app\admin\controller\sys_manage\DeptController::class, 'selectList']);
  247. Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\DeptController::class, 'deptInfo']);
  248. Route::post('/add', [\app\admin\controller\sys_manage\DeptController::class, 'addDept']);
  249. Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\DeptController::class, 'updateDept']);
  250. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\DeptController::class, 'updateStatus']);
  251. Route::delete('/delete/{id:\d+}', [\app\admin\controller\sys_manage\DeptController::class, 'delDept']);
  252. Route::get('/getPrinterByPremiseName', [\app\admin\controller\sys_manage\DeptController::class, 'getPrinterByPremiseName']);
  253. })->middleware([
  254. \app\middleware\AdminAuthCheck::class
  255. ]);
  256. /* 餐厅管理 */
  257. Route::group('/restaurant', function () {
  258. Route::get('/list', [\app\admin\controller\sys_manage\RestaurantController::class, 'select']);
  259. Route::post('/add', [\app\admin\controller\sys_manage\RestaurantController::class, 'insert']);
  260. Route::post('/update', [\app\admin\controller\sys_manage\RestaurantController::class, 'update']);
  261. Route::delete('/delete', [\app\admin\controller\sys_manage\RestaurantController::class, 'delete']);
  262. Route::get('/getPrinterByPremiseName', [\app\admin\controller\sys_manage\RestaurantController::class, 'getPrinterByPremiseName']);
  263. Route::get('/getByUser', [\app\admin\controller\sys_manage\RestaurantController::class, 'getByUser']);
  264. })->middleware([
  265. \app\middleware\AdminAuthCheck::class
  266. ]);
  267. /* 桌台管理 */
  268. Route::group('/restaurantTable', function () {
  269. Route::get('/list', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'select']);
  270. Route::get('/statistics', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'statistics']);
  271. Route::post('/add', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'insert']);
  272. Route::post('/batchAdd', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'batchInsert']);
  273. Route::post('/update', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'update']);
  274. Route::delete('/delete', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'delete']);
  275. Route::get('/exportTable', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'exportTable']);
  276. Route::get('/downQrcode', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'downloadQrcode']);
  277. Route::get('/selectListByPremiseName', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'selectListByPremiseName']);
  278. Route::get('/batchDownloadQrcode', [\app\admin\controller\sys_manage\RestaurantTableController::class, 'batchDownloadQrcode']);
  279. })->middleware([
  280. \app\middleware\AdminAuthCheck::class
  281. ]);
  282. /* 用户管理 */
  283. Route::group('/user', function () {
  284. Route::get('/list', [\app\admin\controller\sys_manage\UserController::class, 'userList']);
  285. Route::get('/selectTeacherList', [\app\admin\controller\sys_manage\UserController::class, 'selectTeacherList']);
  286. Route::get('/info/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'userInfo']);
  287. Route::post('/add', [\app\admin\controller\sys_manage\UserController::class, 'addUser']);
  288. Route::post('/update/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'updateUser']);
  289. Route::post('/updateStatus/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'updateStatus']);
  290. Route::post('/updatePassword/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'updatePassword']);
  291. Route::delete('/delete', [\app\admin\controller\sys_manage\UserController::class, 'delUser']);
  292. Route::post('/correlationMember', [\app\admin\controller\sys_manage\UserController::class, 'correlationMember']);
  293. Route::get('/selectDoctorList', [\app\admin\controller\sys_manage\UserController::class, 'selectDoctorList']);
  294. Route::get('/selectSalesmanList', [\app\admin\controller\sys_manage\UserController::class, 'selectSalesmanList']);
  295. })->middleware([
  296. \app\middleware\AdminAuthCheck::class
  297. ]);
  298. /* 分类管理 */
  299. Route::group('/category', function () {
  300. Route::get('/index', [\app\admin\controller\sys_manage\CategoryController::class, 'index']);
  301. Route::get('/list', [\app\admin\controller\sys_manage\CategoryController::class, 'categoryList']);
  302. Route::get('/goodsCategory', [\app\admin\controller\sys_manage\CategoryController::class, 'goodsCategory']);
  303. Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\CategoryController::class, 'categoryInfo']);
  304. Route::post('/add', [\app\admin\controller\sys_manage\CategoryController::class, 'addCategory']);
  305. Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\CategoryController::class, 'updateCategory']);
  306. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\CategoryController::class, 'updateStatus']);
  307. Route::delete('/delete', [\app\admin\controller\sys_manage\CategoryController::class, 'delCategory']);
  308. Route::get('/categoryTree', [\app\admin\controller\sys_manage\CategoryController::class, 'getCategoryTree']);
  309. })->middleware([
  310. \app\middleware\AdminAuthCheck::class
  311. ]);
  312. /* 字段管理 */
  313. Route::group('/field', function () {
  314. Route::get('/list', [\app\admin\controller\sys_manage\FieldController::class, 'fieldList']);
  315. Route::get('/selectList', [\app\admin\controller\sys_manage\FieldController::class, 'selectList']);
  316. Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\FieldController::class, 'fieldInfo']);
  317. Route::post('/add', [\app\admin\controller\sys_manage\FieldController::class, 'addField']);
  318. Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\FieldController::class, 'updateFields']);
  319. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\FieldController::class, 'updateStatus']);
  320. Route::delete('/delete', [\app\admin\controller\sys_manage\FieldController::class, 'delField']);
  321. });
  322. /* 配置管理 */
  323. Route::group('/config', function () {
  324. Route::get('/list', [\app\admin\controller\sys_manage\ConfigController::class, 'configList']);
  325. Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\ConfigController::class, 'configInfo']);
  326. Route::post('/add', [\app\admin\controller\sys_manage\ConfigController::class, 'addConfig']);
  327. Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\ConfigController::class, 'updateConfig']);
  328. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\ConfigController::class, 'updateStatus']);
  329. Route::delete('/delete', [\app\admin\controller\sys_manage\ConfigController::class, 'delConfig']);
  330. // 参数配置
  331. Route::get('/paramsList', [\app\admin\controller\sys_manage\ConfigController::class, 'paramsList']);
  332. Route::post('/paramsSave', [\app\admin\controller\sys_manage\ConfigController::class, 'paramsSave']);
  333. Route::get('/partnerParams', [\app\admin\controller\sys_manage\ConfigController::class, 'partnerParamsInfo']);
  334. Route::post('/setPartnerParams', [\app\admin\controller\sys_manage\ConfigController::class, 'setPartnerParams']);
  335. Route::get('/franchiseeParams', [\app\admin\controller\sys_manage\ConfigController::class, 'franchiseeParamsInfo']);
  336. Route::post('/setFranchiseeParams', [\app\admin\controller\sys_manage\ConfigController::class, 'setFranchiseeParams']);
  337. Route::get('/referrerParams', [\app\admin\controller\sys_manage\ConfigController::class, 'referrerParamsInfo']);
  338. Route::post('/setReferrerParams', [\app\admin\controller\sys_manage\ConfigController::class, 'setReferrerParams']);
  339. });
  340. /* 运费模板管理 */
  341. Route::group('/postageTemplate', function () {
  342. Route::get('/list', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'select']);
  343. Route::post('/add', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'insert']);
  344. Route::post('/update', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'update']);
  345. Route::post('/updateStatus', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'updateStatus']);
  346. Route::delete('/delete', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'delete']);
  347. });
  348. Route::group('/adv', function () {
  349. Route::get('/list', [\app\admin\controller\sys_manage\AdvController::class, 'select']);
  350. Route::post('/add', [\app\admin\controller\sys_manage\AdvController::class, 'insert']);
  351. Route::post('/update', [\app\admin\controller\sys_manage\AdvController::class, 'update']);
  352. Route::delete('/delete', [\app\admin\controller\sys_manage\AdvController::class, 'delete']);
  353. })->middleware([
  354. \app\middleware\AdminAuthCheck::class
  355. ]);
  356. Route::group('/protocol', function () {
  357. Route::get('/list', [\app\admin\controller\sys_manage\ProtocolController::class, 'select']);
  358. Route::post('/add', [\app\admin\controller\sys_manage\ProtocolController::class, 'insert']);
  359. Route::post('/update', [\app\admin\controller\sys_manage\ProtocolController::class, 'update']);
  360. Route::delete('/delete', [\app\admin\controller\sys_manage\ProtocolController::class, 'delete']);
  361. })->middleware([
  362. \app\middleware\AdminAuthCheck::class
  363. ]);
  364. Route::group('/healthyClassroom', function () {
  365. Route::get('/list', [\app\admin\controller\sys_manage\HealthyClassroomController::class, 'select']);
  366. Route::post('/add', [\app\admin\controller\sys_manage\HealthyClassroomController::class, 'insert']);
  367. Route::post('/update', [\app\admin\controller\sys_manage\HealthyClassroomController::class, 'update']);
  368. Route::delete('/delete', [\app\admin\controller\sys_manage\HealthyClassroomController::class, 'delete']);
  369. })->middleware([
  370. \app\middleware\AdminAuthCheck::class
  371. ]);
  372. Route::group('/finance', function () {
  373. Route::get('/info', [\app\admin\controller\sys_manage\FinanceController::class, 'info']);
  374. Route::post('/update', [\app\admin\controller\sys_manage\FinanceController::class, 'update']);
  375. });
  376. Route::group('/apartment', function () {
  377. Route::get('/info', [\app\admin\controller\content\ApartmentController::class, 'info']);
  378. Route::post('/update', [\app\admin\controller\content\ApartmentController::class, 'update']);
  379. });
  380. Route::group('/banner', function () {
  381. Route::get('/list', [\app\admin\controller\sys_manage\BannerController::class, 'select']);
  382. Route::post('/add', [\app\admin\controller\sys_manage\BannerController::class, 'insert']);
  383. Route::post('/update', [\app\admin\controller\sys_manage\BannerController::class, 'update']);
  384. Route::delete('/delete', [\app\admin\controller\sys_manage\BannerController::class, 'delete']);
  385. })->middleware([
  386. \app\middleware\AdminAuthCheck::class
  387. ]);
  388. Route::group('/article', function () {
  389. Route::get('/list', [\app\admin\controller\sys_manage\ArticleController::class, 'select']);
  390. Route::post('/add', [\app\admin\controller\sys_manage\ArticleController::class, 'insert']);
  391. Route::post('/update', [\app\admin\controller\sys_manage\ArticleController::class, 'update']);
  392. Route::delete('/delete', [\app\admin\controller\sys_manage\ArticleController::class, 'delete']);
  393. })->middleware([
  394. \app\middleware\AdminAuthCheck::class
  395. ]);
  396. Route::group('/news', function () {
  397. Route::get('/list', [\app\admin\controller\sys_manage\NewsController::class, 'select']);
  398. Route::post('/add', [\app\admin\controller\sys_manage\NewsController::class, 'insert']);
  399. Route::post('/update', [\app\admin\controller\sys_manage\NewsController::class, 'update']);
  400. Route::delete('/delete', [\app\admin\controller\sys_manage\NewsController::class, 'delete']);
  401. })->middleware([
  402. \app\middleware\AdminAuthCheck::class
  403. ]);
  404. Route::group('/question', function () {
  405. Route::get('/list', [\app\admin\controller\sys_manage\QuestionController::class, 'select']);
  406. Route::post('/add', [\app\admin\controller\sys_manage\QuestionController::class, 'insert']);
  407. Route::post('/update', [\app\admin\controller\sys_manage\QuestionController::class, 'update']);
  408. Route::delete('/delete', [\app\admin\controller\sys_manage\QuestionController::class, 'delete']);
  409. })->middleware([
  410. \app\middleware\AdminAuthCheck::class
  411. ]);
  412. Route::group('/menu', function () {
  413. Route::get('/my', [\app\admin\controller\sys_manage\MenuController::class, 'myMenu']);
  414. Route::get('/list', [\app\admin\controller\sys_manage\MenuController::class, 'select']);
  415. Route::post('/save', [\app\admin\controller\sys_manage\MenuController::class, 'save']);
  416. Route::post('/add', [\app\admin\controller\sys_manage\MenuController::class, 'insert']);
  417. Route::post('/update', [\app\admin\controller\sys_manage\MenuController::class, 'update']);
  418. Route::delete('/delete', [\app\admin\controller\sys_manage\MenuController::class, 'delete']);
  419. })->middleware([
  420. \app\middleware\AdminAuthCheck::class
  421. ]);
  422. /* 供应商管理 */
  423. Route::group('/supplier', function () {
  424. Route::get('/list', [\app\admin\controller\sys_manage\SupplierController::class, 'select']);
  425. Route::post('/add', [\app\admin\controller\sys_manage\SupplierController::class, 'insert']);
  426. Route::post('/update', [\app\admin\controller\sys_manage\SupplierController::class, 'update']);
  427. Route::delete('/delete', [\app\admin\controller\sys_manage\SupplierController::class, 'delete']);
  428. })->middleware([
  429. \app\middleware\AdminAuthCheck::class
  430. ]);
  431. /* 日志管理 */
  432. Route::group('/log', function () {
  433. Route::get('/list', [\app\admin\controller\sys_manage\LogsController::class, 'select']);
  434. })->middleware([
  435. \app\middleware\AdminAuthCheck::class
  436. ]);
  437. /* 工单管理 */
  438. Route::group('/task', function () {
  439. Route::get('/list', [\app\admin\controller\sys_manage\TaskController::class, 'select']);
  440. Route::get('/info', [\app\admin\controller\sys_manage\TaskController::class, 'info']);
  441. Route::post('/update', [\app\admin\controller\sys_manage\TaskController::class, 'update']);
  442. Route::post('/process', [\app\admin\controller\sys_manage\TaskController::class, 'process']);
  443. Route::get('/processLog', [\app\admin\controller\sys_manage\TaskController::class, 'processLog']);
  444. Route::delete('/delete', [\app\admin\controller\sys_manage\TaskController::class, 'delete']);
  445. })->middleware([
  446. \app\middleware\AdminAuthCheck::class
  447. ]);
  448. });
  449. /* 业务支撑 */
  450. Route::group('/life', function () {
  451. /* 演职人员管理 */
  452. Route::group('/cinemaPerformers', function () {
  453. Route::get('/list', [\app\admin\controller\life\CinemaPerformersController::class, 'select']);
  454. Route::post('/add', [\app\admin\controller\life\CinemaPerformersController::class, 'insert']);
  455. Route::post('/update', [\app\admin\controller\life\CinemaPerformersController::class, 'update']);
  456. Route::delete('/delete', [\app\admin\controller\life\CinemaPerformersController::class, 'delete']);
  457. })->middleware([
  458. \app\middleware\AdminAuthCheck::class
  459. ]);
  460. /* 影片类型管理 */
  461. Route::group('/cinemaIlk', function () {
  462. Route::get('/list', [\app\admin\controller\life\CinemaIlkController::class, 'select']);
  463. Route::post('/add', [\app\admin\controller\life\CinemaIlkController::class, 'insert']);
  464. Route::post('/update', [\app\admin\controller\life\CinemaIlkController::class, 'update']);
  465. Route::delete('/delete', [\app\admin\controller\life\CinemaIlkController::class, 'delete']);
  466. })->middleware([
  467. \app\middleware\AdminAuthCheck::class
  468. ]);
  469. /* 影片管理 */
  470. Route::group('/cinema', function () {
  471. Route::get('/list', [\app\admin\controller\life\CinemaController::class, 'select']);
  472. Route::post('/add', [\app\admin\controller\life\CinemaController::class, 'insert']);
  473. Route::post('/update', [\app\admin\controller\life\CinemaController::class, 'update']);
  474. Route::delete('/delete', [\app\admin\controller\life\CinemaController::class, 'delete']);
  475. })->middleware([
  476. \app\middleware\AdminAuthCheck::class
  477. ]);
  478. /* 教师管理 */
  479. Route::group('/teacher', function () {
  480. Route::get('/list', [\app\admin\controller\life\CollegeTeacherController::class, 'select']);
  481. Route::post('/add', [\app\admin\controller\life\CollegeTeacherController::class, 'insert']);
  482. Route::post('/update', [\app\admin\controller\life\CollegeTeacherController::class, 'update']);
  483. Route::delete('/delete', [\app\admin\controller\life\CollegeTeacherController::class, 'delete']);
  484. })->middleware([
  485. \app\middleware\AdminAuthCheck::class
  486. ]);
  487. /* 课程管理 */
  488. Route::group('/courses', function () {
  489. Route::get('/list', [\app\admin\controller\life\CollegeCoursesController::class, 'select']);
  490. Route::post('/add', [\app\admin\controller\life\CollegeCoursesController::class, 'insert']);
  491. Route::post('/update', [\app\admin\controller\life\CollegeCoursesController::class, 'update']);
  492. Route::delete('/delete', [\app\admin\controller\life\CollegeCoursesController::class, 'delete']);
  493. })->middleware([
  494. \app\middleware\AdminAuthCheck::class
  495. ]);
  496. /* 课程安排管理 */
  497. Route::group('/teaching', function () {
  498. Route::get('/list', [\app\admin\controller\life\CollegeTeachingController::class, 'select']);
  499. Route::post('/add', [\app\admin\controller\life\CollegeTeachingController::class, 'insert']);
  500. Route::post('/update', [\app\admin\controller\life\CollegeTeachingController::class, 'update']);
  501. Route::delete('/delete', [\app\admin\controller\life\CollegeTeachingController::class, 'delete']);
  502. })->middleware([
  503. \app\middleware\AdminAuthCheck::class
  504. ]);
  505. /* 地块管理 */
  506. Route::group('/farmLand', function () {
  507. Route::get('/list', [\app\admin\controller\life\FarmLandController::class, 'select']);
  508. Route::get('/info', [\app\admin\controller\life\FarmLandController::class, 'info']);
  509. Route::post('/add', [\app\admin\controller\life\FarmLandController::class, 'insert']);
  510. Route::post('/update', [\app\admin\controller\life\FarmLandController::class, 'update']);
  511. Route::delete('/delete', [\app\admin\controller\life\FarmLandController::class, 'delete']);
  512. })->middleware([
  513. \app\middleware\AdminAuthCheck::class
  514. ]);
  515. /* 菜园管理 */
  516. Route::group('/farmPlot', function () {
  517. Route::get('/list', [\app\admin\controller\life\FarmPlotController::class, 'select']);
  518. Route::get('/info', [\app\admin\controller\life\FarmPlotController::class, 'info']);
  519. Route::post('/add', [\app\admin\controller\life\FarmPlotController::class, 'insert']);
  520. Route::post('/update', [\app\admin\controller\life\FarmPlotController::class, 'update']);
  521. Route::delete('/delete', [\app\admin\controller\life\FarmPlotController::class, 'delete']);
  522. })->middleware([
  523. \app\middleware\AdminAuthCheck::class
  524. ]);
  525. /* 菜园农事操作管理 */
  526. Route::group('/farmPlotRunning', function () {
  527. Route::get('/list', [\app\admin\controller\life\FarmPlotRunningController::class, 'select']);
  528. Route::get('/info', [\app\admin\controller\life\FarmPlotRunningController::class, 'info']);
  529. Route::post('/add', [\app\admin\controller\life\FarmPlotRunningController::class, 'insert']);
  530. Route::post('/update', [\app\admin\controller\life\FarmPlotRunningController::class, 'update']);
  531. Route::post('/addProcess', [\app\admin\controller\life\FarmPlotRunningController::class, 'addProcess']);
  532. Route::post('/addHarvest', [\app\admin\controller\life\FarmPlotRunningController::class, 'addHarvest']);
  533. Route::delete('/delete', [\app\admin\controller\life\FarmPlotRunningController::class, 'delete']);
  534. })->middleware([
  535. \app\middleware\AdminAuthCheck::class
  536. ]);
  537. /* 农场商品管理 */
  538. Route::group('/farmGoods', function () {
  539. // Route::get('/list', [\app\admin\controller\life\FarmGoodsController::class, 'select']);
  540. Route::post('/add', [\app\admin\controller\life\FarmGoodsController::class, 'insert']);
  541. Route::post('/update', [\app\admin\controller\life\FarmGoodsController::class, 'update']);
  542. // Route::post('/updateStatus', [\app\admin\controller\life\FarmGoodsController::class, 'updateStatus']);
  543. // Route::delete('/delete', [\app\admin\controller\life\FarmGoodsController::class, 'delete']);
  544. })->middleware([
  545. \app\middleware\AdminAuthCheck::class
  546. ]);
  547. /* 农场套餐管理 */
  548. Route::group('/farmPackage', function () {
  549. Route::get('/list', [\app\admin\controller\life\FarmPackageController::class, 'select']);
  550. Route::post('/add', [\app\admin\controller\life\FarmPackageController::class, 'insert']);
  551. Route::post('/update', [\app\admin\controller\life\FarmPackageController::class, 'update']);
  552. Route::delete('/delete', [\app\admin\controller\life\FarmPackageController::class, 'delete']);
  553. })->middleware([
  554. \app\middleware\AdminAuthCheck::class
  555. ]);
  556. /* 农场套餐商品管理 */
  557. Route::group('/farmPackageGoods', function () {
  558. Route::get('/list', [\app\admin\controller\life\FarmPackageGoodsController::class, 'select']);
  559. Route::post('/add', [\app\admin\controller\life\FarmPackageGoodsController::class, 'insert']);
  560. Route::post('/update', [\app\admin\controller\life\FarmPackageGoodsController::class, 'update']);
  561. Route::delete('/delete', [\app\admin\controller\life\FarmPackageGoodsController::class, 'delete']);
  562. })->middleware([
  563. \app\middleware\AdminAuthCheck::class
  564. ]);
  565. /* 健康美食管理 */
  566. Route::group('/healthyFood', function () {
  567. Route::get('/list', [\app\admin\controller\life\HealthyFoodController::class, 'select']);
  568. Route::post('/add', [\app\admin\controller\life\HealthyFoodController::class, 'insert']);
  569. Route::post('/update', [\app\admin\controller\life\HealthyFoodController::class, 'update']);
  570. Route::post('/updateStatus', [\app\admin\controller\life\HealthyFoodController::class, 'updateStatus']);
  571. Route::delete('/delete', [\app\admin\controller\life\HealthyFoodController::class, 'delete']);
  572. })->middleware([
  573. \app\middleware\AdminAuthCheck::class
  574. ]);
  575. /* 康旅路线管理 */
  576. Route::group('/travelLine', function () {
  577. Route::get('/list', [\app\admin\controller\life\TravelLineController::class, 'select']);
  578. Route::post('/add', [\app\admin\controller\life\TravelLineController::class, 'insert']);
  579. Route::post('/update', [\app\admin\controller\life\TravelLineController::class, 'update']);
  580. Route::delete('/delete', [\app\admin\controller\life\TravelLineController::class, 'delete']);
  581. })->middleware([
  582. \app\middleware\AdminAuthCheck::class
  583. ]);
  584. /* 康旅排期管理 */
  585. Route::group('/travelScheduling', function () {
  586. Route::get('/list', [\app\admin\controller\life\TravelSchedulingController::class, 'select']);
  587. Route::post('/add', [\app\admin\controller\life\TravelSchedulingController::class, 'insert']);
  588. Route::post('/update', [\app\admin\controller\life\TravelSchedulingController::class, 'update']);
  589. Route::delete('/delete', [\app\admin\controller\life\TravelSchedulingController::class, 'delete']);
  590. })->middleware([
  591. \app\middleware\AdminAuthCheck::class
  592. ]);
  593. });
  594. /* 医疗 */
  595. Route::group('/medical', function () {
  596. /* 医生管理 */
  597. Route::group('/doctor', function () {
  598. Route::get('/list', [\app\admin\controller\medical\DoctorController::class, 'select']);
  599. Route::post('/add', [\app\admin\controller\medical\DoctorController::class, 'insert']);
  600. Route::post('/update', [\app\admin\controller\medical\DoctorController::class, 'update']);
  601. Route::delete('/delete', [\app\admin\controller\medical\DoctorController::class, 'delete']);
  602. Route::post('/relationUser', [\app\admin\controller\medical\DoctorController::class, 'relationUser']);
  603. })->middleware([
  604. \app\middleware\AdminAuthCheck::class
  605. ]);
  606. /* 店铺管理 */
  607. Route::group('/shop', function () {
  608. Route::get('/select', [\app\admin\controller\medical\ShopController::class, 'selectList']);
  609. Route::get('/list', [\app\admin\controller\medical\ShopController::class, 'select']);
  610. Route::post('/add', [\app\admin\controller\medical\ShopController::class, 'insert']);
  611. Route::post('/update', [\app\admin\controller\medical\ShopController::class, 'update']);
  612. Route::delete('/delete', [\app\admin\controller\medical\ShopController::class, 'delete']);
  613. })->middleware([
  614. \app\middleware\AdminAuthCheck::class
  615. ]);
  616. /* 可预约的服务管理 */
  617. Route::group('/reservationService', function () {
  618. Route::get('/list', [\app\admin\controller\medical\ReservationServiceController::class, 'select']);
  619. Route::post('/add', [\app\admin\controller\medical\ReservationServiceController::class, 'insert']);
  620. Route::post('/update', [\app\admin\controller\medical\ReservationServiceController::class, 'update']);
  621. Route::post('/updateStatus', [\app\admin\controller\medical\ReservationServiceController::class, 'updateStatus']);
  622. Route::delete('/delete', [\app\admin\controller\medical\ReservationServiceController::class, 'delete']);
  623. })->middleware([
  624. \app\middleware\AdminAuthCheck::class
  625. ]);
  626. /* 可预约的科室管理 */
  627. Route::group('/dept', function () {
  628. Route::get('/list', [\app\admin\controller\medical\DeptController::class, 'select']);
  629. Route::post('/add', [\app\admin\controller\medical\DeptController::class, 'insert']);
  630. Route::post('/update', [\app\admin\controller\medical\DeptController::class, 'update']);
  631. Route::delete('/delete', [\app\admin\controller\medical\DeptController::class, 'delete']);
  632. })->middleware([
  633. \app\middleware\AdminAuthCheck::class
  634. ]);
  635. /* 预约业务员管理 */
  636. Route::group('/salesman', function () {
  637. Route::get('/list', [\app\admin\controller\medical\SalesmanController::class, 'select']);
  638. Route::post('/add', [\app\admin\controller\medical\SalesmanController::class, 'insert']);
  639. Route::post('/update', [\app\admin\controller\medical\SalesmanController::class, 'update']);
  640. Route::post('/updateStatus', [\app\admin\controller\medical\SalesmanController::class, 'updateStatus']);
  641. Route::delete('/delete', [\app\admin\controller\medical\SalesmanController::class, 'delete']);
  642. })->middleware([
  643. \app\middleware\AdminAuthCheck::class
  644. ]);
  645. /* 医疗团队管理 */
  646. Route::group('/team', function () {
  647. Route::get('/list', [\app\admin\controller\medical\TeamController::class, 'deptList']);
  648. Route::get('/info/{id:\d+}', [\app\admin\controller\medical\TeamController::class, 'deptInfo']);
  649. Route::post('/add', [\app\admin\controller\medical\TeamController::class, 'addDept']);
  650. Route::post('/update/{id:\d+}', [\app\admin\controller\medical\TeamController::class, 'updateDept']);
  651. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\medical\TeamController::class, 'updateStatus']);
  652. Route::delete('/delete', [\app\admin\controller\medical\TeamController::class, 'delDept']);
  653. })->middleware([
  654. \app\middleware\AdminAuthCheck::class
  655. ]);
  656. });
  657. /* 服务团队管理 */
  658. Route::group('/serviceTeam', function () {
  659. Route::get('/list', [\app\admin\controller\ServiceTeamController::class, 'deptList']);
  660. Route::get('/info/{id:\d+}', [\app\admin\controller\ServiceTeamController::class, 'deptInfo']);
  661. Route::post('/add', [\app\admin\controller\ServiceTeamController::class, 'addDept']);
  662. Route::post('/update/{id:\d+}', [\app\admin\controller\ServiceTeamController::class, 'updateDept']);
  663. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\ServiceTeamController::class, 'updateStatus']);
  664. Route::delete('/delete', [\app\admin\controller\ServiceTeamController::class, 'delDept']);
  665. })->middleware([
  666. \app\middleware\AdminAuthCheck::class
  667. ]);
  668. /* 健康 */
  669. Route::group('/healthy', function () {
  670. /* 健康产品管理管理 */
  671. Route::group('/product', function () {
  672. Route::get('/list', [\app\admin\controller\healthy\ProductController::class, 'select']);
  673. Route::post('/add', [\app\admin\controller\healthy\ProductController::class, 'insert']);
  674. Route::post('/update', [\app\admin\controller\healthy\ProductController::class, 'update']);
  675. Route::post('/updateStatus', [\app\admin\controller\healthy\ProductController::class, 'updateStatus']);
  676. Route::delete('/delete', [\app\admin\controller\healthy\ProductController::class, 'delete']);
  677. })->middleware([
  678. \app\middleware\AdminAuthCheck::class
  679. ]);
  680. });
  681. /* 居家 */
  682. Route::group('/atHome', function () {
  683. /* 商品管理 */
  684. Route::group('/goods', function () {
  685. Route::get('/list', [\app\admin\controller\at_home\GoodsController::class, 'select']);
  686. Route::post('/add', [\app\admin\controller\at_home\GoodsController::class, 'insert']);
  687. Route::post('/update', [\app\admin\controller\at_home\GoodsController::class, 'update']);
  688. Route::delete('/delete', [\app\admin\controller\at_home\GoodsController::class, 'delete']);
  689. })->middleware([
  690. \app\middleware\AdminAuthCheck::class
  691. ]);
  692. });
  693. /* 资产管理 */
  694. Route::group('/asset', function () {
  695. /* 户型管理 */
  696. Route::group('/houseType', function () {
  697. Route::get('/list', [\app\admin\controller\asset\HouseTypeController::class, 'select']);
  698. Route::post('/add', [\app\admin\controller\asset\HouseTypeController::class, 'insert']);
  699. Route::post('/update', [\app\admin\controller\asset\HouseTypeController::class, 'update']);
  700. Route::delete('/delete', [\app\admin\controller\asset\HouseTypeController::class, 'delete']);
  701. })->middleware([
  702. \app\middleware\AdminAuthCheck::class
  703. ]);
  704. });
  705. /* 营销团队管理 */
  706. Route::group('/market', function () {
  707. /* 团队管理 */
  708. Route::group('/team', function () {
  709. Route::get('/list', [\app\admin\controller\consultant\TeamController::class, 'select']);
  710. Route::post('/add', [\app\admin\controller\consultant\TeamController::class, 'addDept']);
  711. Route::post('/update', [\app\admin\controller\consultant\TeamController::class, 'updateDept']);
  712. Route::delete('/delete', [\app\admin\controller\consultant\TeamController::class, 'delDept']);
  713. Route::get('/parent', [\app\admin\controller\consultant\TeamController::class, 'parentList']);
  714. Route::get('/check', [\app\admin\controller\consultant\TeamController::class, 'checkDept']);
  715. });
  716. /* 员工管理 */
  717. Route::group('/consultant', function () {
  718. Route::get('/list', [\app\admin\controller\consultant\IndexController::class, 'select']);
  719. Route::post('/add', [\app\admin\controller\consultant\IndexController::class, 'addConsultant']);
  720. Route::post('/update', [\app\admin\controller\consultant\IndexController::class, 'updateConsultant']);
  721. Route::delete('/delete', [\app\admin\controller\consultant\IndexController::class, 'deleteConsultant']);
  722. Route::get('/user', [\app\admin\controller\consultant\IndexController::class, 'getUserList']);
  723. });
  724. /* 客户管理 */
  725. Route::group('/custom', function () {
  726. Route::get('/config', [\app\admin\controller\consultant\CustomController::class, 'getOptionConfig']);
  727. Route::post('/add', [\app\admin\controller\consultant\CustomController::class, 'addCustom']);
  728. Route::post('/update', [\app\admin\controller\consultant\CustomController::class, 'updateCustom']);
  729. Route::get('/list', [\app\admin\controller\consultant\CustomController::class, 'select']);
  730. Route::delete('/delete', [\app\admin\controller\consultant\CustomController::class, 'deleteCustom']);
  731. Route::get('/follow', [\app\admin\controller\consultant\CustomController::class, 'followList']);
  732. Route::delete('/deleteFollow', [\app\admin\controller\consultant\CustomController::class, 'deleteFollow']);
  733. Route::post('/move', [\app\admin\controller\consultant\CustomController::class, 'moveCustom']);
  734. Route::get('/moveLogs', [\app\admin\controller\consultant\CustomController::class, 'moveLogs']);
  735. Route::post('/check', [\app\admin\controller\consultant\CustomController::class, 'checkCustom']);
  736. Route::get('/statistics', [\app\admin\controller\consultant\CustomController::class, 'statisticsIndex']);
  737. Route::get('/statistics_month', [\app\admin\controller\consultant\CustomController::class, 'statisticsByMonth']);
  738. Route::get('/export', [\app\admin\controller\consultant\CustomController::class, 'exportData']);
  739. Route::post('/appoint', [\app\admin\controller\consultant\CustomController::class, 'appointConsultant']);
  740. Route::post('/import', [\app\admin\controller\consultant\CustomController::class, 'importCustom']);
  741. });
  742. });
  743. Route::group('/customer', function () {
  744. Route::get('/selectList', [\app\admin\controller\customer\IndexController::class, 'selectList']);
  745. Route::get('/list', [\app\admin\controller\customer\IndexController::class, 'select']);
  746. Route::post('/add', [\app\admin\controller\customer\IndexController::class, 'insert']);
  747. Route::post('/update', [\app\admin\controller\customer\IndexController::class, 'update']);
  748. Route::delete('/delete', [\app\admin\controller\customer\IndexController::class, 'delete']);
  749. Route::post('/conversion', [\app\admin\controller\customer\IndexController::class, 'conversion']);
  750. });
  751. /* 用户管理 */
  752. Route::group('/member', function () {
  753. /* 家庭管理 */
  754. Route::group('/family', function () {
  755. Route::get('/list', [\app\admin\controller\member\FamilyController::class, 'list']);
  756. Route::get('/list/{id:\w+}', [\app\admin\controller\member\FamilyController::class, 'selectList']);
  757. Route::get('/info/{id:\w+}', [\app\admin\controller\member\FamilyController::class, 'selectInfo']);
  758. })->middleware([
  759. \app\middleware\AdminAuthCheck::class
  760. ]);
  761. Route::group('/account', function () {
  762. Route::get('/my/{id:\w+}', [\app\admin\controller\member\AccountController::class, 'my']);
  763. Route::post('/incomeExpend', [\app\admin\controller\member\AccountController::class, 'incomeExpend']);
  764. Route::post('/updateStatus', [\app\admin\controller\member\AccountController::class, 'updateStatus']);
  765. Route::post('/bindCard', [\app\admin\controller\member\AccountController::class, 'bindCard']);
  766. Route::get('/selectMemberAccount', [\app\admin\controller\member\AccountController::class, 'selectMemberAccount']);
  767. })->middleware([
  768. \app\middleware\AdminAuthCheck::class
  769. ]);
  770. Route::group('/writeOff', function () {
  771. Route::get('/list', [\app\admin\controller\member\WriteOffController::class, 'list']);
  772. Route::get('/info', [\app\admin\controller\member\WriteOffController::class, 'info']);
  773. Route::post('/remark', [\app\admin\controller\member\WriteOffController::class, 'remark']);
  774. })->middleware([
  775. \app\middleware\AdminAuthCheck::class
  776. ]);
  777. // 用户管理
  778. Route::group('', function () {
  779. Route::get('/selectList', [\app\admin\controller\member\MemberController::class, 'selectList']);
  780. Route::get('/selectWriteOffMember', [\app\admin\controller\member\MemberController::class, 'selectWriteOffMember']);
  781. Route::get('/selectFamilyMemberList', [\app\admin\controller\member\MemberController::class, 'selectFamilyMemberList']);
  782. Route::get('/selectMemberAllQuota', [\app\admin\controller\member\MemberController::class, 'selectMemberAllQuota']);
  783. Route::get('/selectMemberAllQuotaByAppointment', [\app\admin\controller\member\MemberController::class, 'selectMemberAllQuotaByAppointment']);
  784. Route::get('/welfareInfo', [\app\admin\controller\member\MemberController::class, 'welfareInfo']);
  785. Route::post('/clearWelfare', [\app\admin\controller\member\MemberController::class, 'clearWelfare']);
  786. Route::get('/vipInfo', [\app\admin\controller\member\MemberController::class, 'vipInfo']);
  787. Route::get('/cardInfo', [\app\admin\controller\member\MemberController::class, 'cardInfo']);
  788. Route::get('/coupon', [\app\admin\controller\member\MemberController::class, 'coupon']);
  789. Route::get('/allCoupon', [\app\admin\controller\member\MemberController::class, 'allCoupon']);
  790. Route::get('/couponCount', [\app\admin\controller\member\MemberController::class, 'couponCount']);
  791. Route::get('/couponDetail', [\app\admin\controller\member\MemberController::class, 'couponDetail']);
  792. Route::get('/balanceInfo', [\app\admin\controller\member\MemberController::class, 'balanceInfo']);
  793. Route::get('/pointInfo', [\app\admin\controller\member\MemberController::class, 'pointInfo']);
  794. Route::get('/list', [\app\admin\controller\member\MemberController::class, 'list']);
  795. Route::get('/info', [\app\admin\controller\member\MemberController::class, 'info']);
  796. Route::get('/statistics', [\app\admin\controller\member\MemberController::class, 'statistics']);
  797. Route::post('/add', [\app\admin\controller\member\MemberController::class, 'add']);
  798. Route::post('/update', [\app\admin\controller\member\MemberController::class, 'update']);
  799. Route::get('/exportMember', [\app\admin\controller\member\MemberController::class, 'exportMember']);
  800. Route::get('/fansList', [\app\admin\controller\member\MemberController::class, 'fansList']);
  801. Route::get('/commissionList', [\app\admin\controller\member\MemberController::class, 'commissionList']);
  802. Route::get('/rechargeBackupsList', [\app\admin\controller\member\MemberController::class, 'rechargeBackupsList']);
  803. Route::get('/roleBenefitUsedList', [\app\admin\controller\member\MemberController::class, 'roleBenefitUsedList']);
  804. Route::get('/consumptionList', [\app\admin\controller\member\MemberController::class, 'consumptionList']);
  805. Route::post('/roleBenefitExport', [\app\admin\controller\member\MemberController::class, 'roleBenefitExport']);
  806. Route::post('/roleBenefitRefund', [\app\admin\controller\member\MemberController::class, 'roleBenefitRefund']);
  807. Route::post('/refundOrder', [\app\admin\controller\member\MemberController::class, 'refundOrder']);
  808. Route::post('/exportConsumptionList', [\app\admin\controller\member\MemberController::class, 'exportConsumptionList']);
  809. Route::post('/crownContinue', [\app\admin\controller\member\MemberController::class, 'crownContinue']);
  810. })->middleware([
  811. \app\middleware\AdminAuthCheck::class
  812. ]);
  813. // 会员合伙人
  814. Route::group('/partner', function () {
  815. Route::get('/list', [\app\admin\controller\member\PartnerController::class, 'list']);
  816. })->middleware([
  817. \app\middleware\AdminAuthCheck::class
  818. ]);
  819. // 加盟合伙人
  820. Route::group('/franchisee', function () {
  821. Route::get('/list', [\app\admin\controller\member\FranchiseeController::class, 'list']);
  822. })->middleware([
  823. \app\middleware\AdminAuthCheck::class
  824. ]);
  825. // 康养推荐官
  826. Route::group('/referrer', function () {
  827. Route::get('/list', [\app\admin\controller\member\ReferrerController::class, 'list']);
  828. })->middleware([
  829. \app\middleware\AdminAuthCheck::class
  830. ]);
  831. // 业主管理
  832. Route::group('/owner', function () {
  833. Route::get('/selectList', [\app\admin\controller\member\OwnerController::class, 'selectList']);
  834. Route::get('/list', [\app\admin\controller\member\OwnerController::class, 'list']);
  835. Route::post('/add', [\app\admin\controller\member\OwnerController::class, 'add']);
  836. })->middleware([
  837. \app\middleware\AdminAuthCheck::class
  838. ]);
  839. /* 核销管理 */
  840. Route::group('/benefit', function () {
  841. Route::get('/list', [\app\admin\controller\member\BenefitController::class, 'select']);
  842. Route::get('/my', [\app\admin\controller\member\BenefitController::class, 'my']);
  843. Route::get('/service', [\app\admin\controller\member\BenefitController::class, 'service']);
  844. Route::post('/add', [\app\admin\controller\member\BenefitController::class, 'insert']);
  845. Route::post('/writeOff', [\app\admin\controller\member\BenefitController::class, 'writeOff']);
  846. Route::post('/update', [\app\admin\controller\member\BenefitController::class, 'update']);
  847. Route::delete('/delete', [\app\admin\controller\member\BenefitController::class, 'delete']);
  848. })->middleware([
  849. \app\middleware\AdminAuthCheck::class
  850. ]);
  851. /* 档案管理 */
  852. Route::group('/wellnessRecord', function () {
  853. Route::get('/my/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'my']);
  854. Route::get('/advice/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'advice']);
  855. Route::get('/archives/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'archives']);
  856. Route::get('/checkup/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'checkup']);
  857. Route::get('/visit/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'visit']);
  858. Route::get('/list', [\app\admin\controller\member\WellnessRecordController::class, 'select']);
  859. Route::get('/info', [\app\admin\controller\member\WellnessRecordController::class, 'info']);
  860. Route::post('/add', [\app\admin\controller\member\WellnessRecordController::class, 'insert']);
  861. Route::post('/update', [\app\admin\controller\member\WellnessRecordController::class, 'update']);
  862. Route::delete('/delete', [\app\admin\controller\member\WellnessRecordController::class, 'delete']);
  863. })->middleware([
  864. \app\middleware\AdminAuthCheck::class
  865. ]);
  866. /* 体检管理 */
  867. Route::group('/checkup', function () {
  868. Route::get('/list', [\app\admin\controller\member\CheckupController::class, 'select']);
  869. Route::post('/add', [\app\admin\controller\member\CheckupController::class, 'insert']);
  870. Route::post('/update', [\app\admin\controller\member\CheckupController::class, 'update']);
  871. Route::delete('/delete', [\app\admin\controller\member\CheckupController::class, 'delete']);
  872. })->middleware([
  873. \app\middleware\AdminAuthCheck::class
  874. ]);
  875. /* 来访管理 */
  876. Route::group('/visiting', function () {
  877. Route::get('/list', [\app\admin\controller\member\VisitingController::class, 'select']);
  878. Route::post('/add', [\app\admin\controller\member\VisitingController::class, 'insert']);
  879. Route::post('/update', [\app\admin\controller\member\VisitingController::class, 'update']);
  880. Route::delete('/delete', [\app\admin\controller\member\VisitingController::class, 'delete']);
  881. })->middleware([
  882. \app\middleware\AdminAuthCheck::class
  883. ]);
  884. /* 设备管理 */
  885. Route::group('/device', function () {
  886. Route::get('/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\MemberController::class, 'device']);
  887. Route::post('/add', [\app\admin\controller\member\MemberController::class, 'addDevice']);
  888. Route::post('/update', [\app\admin\controller\member\MemberController::class, 'updateDevice']);
  889. Route::delete('/delete', [\app\admin\controller\member\MemberController::class, 'deleteDevice']);
  890. })->middleware([
  891. \app\middleware\AdminAuthCheck::class
  892. ]);
  893. /* 等级计价规则 */
  894. Route::group('/rulePricing', function () {
  895. Route::get('/selectList', [\app\admin\controller\member\RulePricingController::class, 'selectList']);
  896. Route::get('/list', [\app\admin\controller\member\RulePricingController::class, 'select']);
  897. Route::post('/add', [\app\admin\controller\member\RulePricingController::class, 'insert']);
  898. Route::post('/update', [\app\admin\controller\member\RulePricingController::class, 'update']);
  899. Route::delete('/delete', [\app\admin\controller\member\RulePricingController::class, 'delete']);
  900. });
  901. /* 等级 */
  902. Route::group('/role', function () {
  903. Route::get('/list', [\app\admin\controller\member\RoleController::class, 'select']);
  904. Route::post('/add', [\app\admin\controller\member\RoleController::class, 'insert']);
  905. Route::post('/update', [\app\admin\controller\member\RoleController::class, 'update']);
  906. Route::delete('/delete', [\app\admin\controller\member\RoleController::class, 'delete']);
  907. Route::delete('/selectList', [\app\admin\controller\member\RoleController::class, 'selectList']);
  908. });
  909. /* 增值包-主记录 */
  910. Route::group('/ruleAdded', function () {
  911. Route::get('/list', [\app\admin\controller\member\RuleAddedController::class, 'select']);
  912. Route::post('/add', [\app\admin\controller\member\RuleAddedController::class, 'insert']);
  913. Route::post('/update', [\app\admin\controller\member\RuleAddedController::class, 'update']);
  914. Route::delete('/delete', [\app\admin\controller\member\RuleAddedController::class, 'delete']);
  915. });
  916. /* 增值包-组件 */
  917. Route::group('/ruleAddedComponent', function () {
  918. Route::get('/list', [\app\admin\controller\member\RuleAddedComponentController::class, 'select']);
  919. Route::post('/add', [\app\admin\controller\member\RuleAddedComponentController::class, 'insert']);
  920. Route::post('/update', [\app\admin\controller\member\RuleAddedComponentController::class, 'update']);
  921. Route::delete('/delete', [\app\admin\controller\member\RuleAddedComponentController::class, 'delete']);
  922. });
  923. /* 会员额度明细 */
  924. Route::group('/quota', function () {
  925. Route::get('/list', [\app\admin\controller\member\QuotaController::class, 'select']);
  926. Route::get('/writeOffList', [\app\admin\controller\member\QuotaController::class, 'writeOffList']);
  927. Route::post('/add', [\app\admin\controller\member\QuotaController::class, 'insert']);
  928. Route::post('/update', [\app\admin\controller\member\QuotaController::class, 'update']);
  929. Route::post('/writeOff', [\app\admin\controller\member\QuotaController::class, 'writeOff']);
  930. Route::delete('/delete', [\app\admin\controller\member\QuotaController::class, 'delete']);
  931. Route::get('/chooseList', [\app\admin\controller\member\QuotaController::class, 'chooseList']);
  932. Route::post('/writeOffBatch', [\app\admin\controller\member\QuotaController::class, 'writeOffBatch']);
  933. });
  934. });
  935. /* 营销管理 */
  936. Route::group('/marketing', function () {
  937. /* 营业场所管理(独立表) */
  938. Route::group('/premises', function () {
  939. Route::get('/list', [\app\admin\controller\marketing\PremisesController::class, 'select']);
  940. Route::post('/add', [\app\admin\controller\marketing\PremisesController::class, 'insert']);
  941. Route::post('/update', [\app\admin\controller\marketing\PremisesController::class, 'update']);
  942. Route::delete('/delete', [\app\admin\controller\marketing\PremisesController::class, 'delete']);
  943. })->middleware([
  944. \app\middleware\AdminAuthCheck::class
  945. ]);
  946. /* 营业场所管理(部门表) */
  947. Route::group('/deptPremises', function () {
  948. Route::get('/selectList', [\app\admin\controller\marketing\DeptPremisesController::class, 'selectList']);
  949. Route::get('/list', [\app\admin\controller\marketing\DeptPremisesController::class, 'select']);
  950. Route::get('/info', [\app\admin\controller\marketing\DeptPremisesController::class, 'info']);
  951. Route::post('/add', [\app\admin\controller\marketing\DeptPremisesController::class, 'insert']);
  952. Route::post('/update', [\app\admin\controller\marketing\DeptPremisesController::class, 'update']);
  953. Route::delete('/delete', [\app\admin\controller\marketing\DeptPremisesController::class, 'delete']);
  954. })->middleware([
  955. \app\middleware\AdminAuthCheck::class
  956. ]);
  957. /* 营销团队管理 */
  958. Route::group('/team', function () {
  959. Route::get('/list', [\app\admin\controller\marketing\TeamController::class, 'deptList']);
  960. Route::get('/info/{id:\d+}', [\app\admin\controller\marketing\TeamController::class, 'deptInfo']);
  961. Route::post('/add', [\app\admin\controller\marketing\TeamController::class, 'addDept']);
  962. Route::post('/update/{id:\d+}', [\app\admin\controller\marketing\TeamController::class, 'updateDept']);
  963. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\marketing\TeamController::class, 'updateStatus']);
  964. Route::delete('/delete', [\app\admin\controller\marketing\TeamController::class, 'delDept']);
  965. })->middleware([
  966. \app\middleware\AdminAuthCheck::class
  967. ]);
  968. });
  969. /* 康养设备管理 */
  970. Route::group('/device', function () {
  971. Route::group('/ledger', function () {
  972. Route::get('/list', [\app\admin\controller\device\LedgerController::class, 'select']);
  973. Route::get('/select', [\app\admin\controller\device\LedgerController::class, 'selectList']);
  974. Route::post('/add', [\app\admin\controller\device\LedgerController::class, 'insert']);
  975. Route::post('/update', [\app\admin\controller\device\LedgerController::class, 'update']);
  976. Route::delete('/delete', [\app\admin\controller\device\LedgerController::class, 'delete']);
  977. })->middleware([
  978. \app\middleware\AdminAuthCheck::class
  979. ]);
  980. Route::group('', function () {
  981. Route::get('/list', [\app\admin\controller\device\DeviceController::class, 'select']);
  982. Route::get('/select', [\app\admin\controller\device\DeviceController::class, 'selectList']);
  983. Route::post('/add', [\app\admin\controller\device\DeviceController::class, 'insert']);
  984. Route::post('/update', [\app\admin\controller\device\DeviceController::class, 'update']);
  985. Route::delete('/delete', [\app\admin\controller\device\DeviceController::class, 'delete']);
  986. })->middleware([
  987. \app\middleware\AdminAuthCheck::class
  988. ]);
  989. Route::group('/meta', function () {
  990. Route::get('/list', [\app\admin\controller\device\MetadataController::class, 'select']);
  991. Route::get('/select', [\app\admin\controller\device\MetadataController::class, 'selectList']);
  992. Route::post('/add', [\app\admin\controller\device\MetadataController::class, 'insert']);
  993. Route::post('/update', [\app\admin\controller\device\MetadataController::class, 'update']);
  994. Route::delete('/delete', [\app\admin\controller\device\MetadataController::class, 'delete']);
  995. })->middleware([
  996. \app\middleware\AdminAuthCheck::class
  997. ]);
  998. });
  999. /* 优惠券管理 */
  1000. Route::group('/coupon', function () {
  1001. Route::group('', function () {
  1002. Route::get('/list', [\app\admin\controller\coupon\CouponController::class, 'select']);
  1003. Route::get('/statistics', [\app\admin\controller\coupon\CouponController::class, 'statistics']);
  1004. Route::get('/selectList', [\app\admin\controller\coupon\CouponController::class, 'selectList']);
  1005. Route::get('/info', [\app\admin\controller\coupon\CouponController::class, 'info']);
  1006. Route::post('/add', [\app\admin\controller\coupon\CouponController::class, 'insert']);
  1007. Route::post('/customSend', [\app\admin\controller\coupon\CouponController::class, 'customSend']);
  1008. Route::post('/update', [\app\admin\controller\coupon\CouponController::class, 'update']);
  1009. Route::delete('/delete', [\app\admin\controller\coupon\CouponController::class, 'delete']);
  1010. Route::post('/disable', [\app\admin\controller\coupon\CouponController::class, 'disableCoupon']);
  1011. })->middleware([
  1012. \app\middleware\AdminAuthCheck::class
  1013. ]);
  1014. Route::group('/detail', function () {
  1015. Route::get('/list', [\app\admin\controller\coupon\CouponDetailController::class, 'select']);
  1016. Route::get('/statistics', [\app\admin\controller\coupon\CouponDetailController::class, 'statistics']);
  1017. Route::get('/info', [\app\admin\controller\coupon\CouponDetailController::class, 'info']);
  1018. Route::post('/updateStatus', [\app\admin\controller\coupon\CouponDetailController::class, 'updateStatus']);
  1019. Route::get('/myCouponGrouping', [\app\admin\controller\coupon\CouponDetailController::class, 'myCouponGrouping']);
  1020. Route::get('/promotionCoupon', [\app\admin\controller\coupon\CouponDetailController::class, 'promotionCoupon']);
  1021. Route::get('/export', [\app\admin\controller\coupon\CouponDetailController::class, 'export']);
  1022. })->middleware([
  1023. \app\middleware\AdminAuthCheck::class
  1024. ]);
  1025. /* 券包 */
  1026. Route::group('/packet', function () {
  1027. Route::get('/list', [\app\admin\controller\coupon\CouponPacketController::class, 'select']);
  1028. Route::post('/add', [\app\admin\controller\coupon\CouponPacketController::class, 'insert']);
  1029. Route::post('/update', [\app\admin\controller\coupon\CouponPacketController::class, 'update']);
  1030. Route::get('/info', [\app\admin\controller\coupon\CouponPacketController::class, 'info']);
  1031. Route::delete('/delete', [\app\admin\controller\coupon\CouponPacketController::class, 'delete']);
  1032. Route::post('/packetIssue', [\app\admin\controller\coupon\CouponPacketController::class, 'packetIssue']);
  1033. Route::post('/packetReIssue', [\app\admin\controller\coupon\CouponPacketController::class, 'packetReIssue']);
  1034. })->middleware([
  1035. \app\middleware\AdminAuthCheck::class
  1036. ]);
  1037. Route::group('/packetSequence', function () {
  1038. Route::get('/list', [\app\admin\controller\coupon\CouponPacketSequenceController::class, 'select']);
  1039. Route::get('/info', [\app\admin\controller\coupon\CouponPacketSequenceController::class, 'info']);
  1040. Route::post('/updateStatus', [\app\admin\controller\coupon\CouponPacketSequenceController::class, 'updateStatus']);
  1041. })->middleware([
  1042. \app\middleware\AdminAuthCheck::class
  1043. ]);
  1044. });
  1045. /* 储值卡 */
  1046. Route::group('/card', function () {
  1047. Route::group('/main', function () {
  1048. Route::get('/list', [\app\admin\controller\coupon\CardMainController::class, 'select']);
  1049. // Route::get('/statistics', [\app\admin\controller\coupon\CouponController::class, 'statistics']);
  1050. Route::get('/selectList', [\app\admin\controller\coupon\CardMainController::class, 'selectList']);
  1051. Route::get('/info', [\app\admin\controller\coupon\CardMainController::class, 'info']);
  1052. Route::post('/add', [\app\admin\controller\coupon\CardMainController::class, 'insert']);
  1053. Route::post('/update', [\app\admin\controller\coupon\CardMainController::class, 'update']);
  1054. // Route::post('/issue', [\app\admin\controller\coupon\CardMainController::class, 'issue']);
  1055. Route::delete('/delete', [\app\admin\controller\coupon\CardMainController::class, 'delete']);
  1056. // Route::post('/disable', [\app\admin\controller\coupon\CouponController::class, 'disableCoupon']);
  1057. })->middleware([
  1058. \app\middleware\AdminAuthCheck::class
  1059. ]);
  1060. Route::group('/issue', function () {
  1061. Route::get('/list', [\app\admin\controller\coupon\CardIssueController::class, 'select']);
  1062. Route::get('/selectList', [\app\admin\controller\coupon\CardIssueController::class, 'getIssueList']);
  1063. // Route::get('/statistics', [\app\admin\controller\coupon\CouponController::class, 'statistics']);
  1064. // Route::get('/selectList', [\app\admin\controller\coupon\CouponController::class, 'selectList']);
  1065. Route::get('/info', [\app\admin\controller\coupon\CardIssueController::class, 'info']);
  1066. Route::post('/add', [\app\admin\controller\coupon\CardIssueController::class, 'insert']);
  1067. Route::post('/update', [\app\admin\controller\coupon\CardIssueController::class, 'update']);
  1068. Route::delete('/delete', [\app\admin\controller\coupon\CardIssueController::class, 'delete']);
  1069. // Route::post('/disable', [\app\admin\controller\coupon\CouponController::class, 'disableCoupon']);
  1070. })->middleware([
  1071. \app\middleware\AdminAuthCheck::class
  1072. ]);
  1073. Route::group('', function () {
  1074. Route::get('/list', [\app\admin\controller\coupon\CardController::class, 'select']);
  1075. Route::get('/info', [\app\admin\controller\coupon\CardController::class, 'info']);
  1076. Route::get('/getCardIdsByMainId', [\app\admin\controller\coupon\CardController::class, 'getCardIdsByMainId']);
  1077. Route::post('/add', [\app\admin\controller\coupon\CardController::class, 'insert']);
  1078. Route::post('/update', [\app\admin\controller\coupon\CardController::class, 'update']);
  1079. Route::post('/issue', [\app\admin\controller\coupon\CardController::class, 'issue']);
  1080. Route::post('/allocation', [\app\admin\controller\coupon\CardController::class, 'allocation']);
  1081. Route::delete('/delete', [\app\admin\controller\coupon\CardController::class, 'delete']);
  1082. })->middleware([
  1083. \app\middleware\AdminAuthCheck::class
  1084. ]);
  1085. });
  1086. /* 订单管理 */
  1087. Route::group('/order', function () {
  1088. // 全部订单
  1089. Route::group('/whole', function () {
  1090. Route::get('/list', [\app\admin\controller\order\WholeController::class, 'select']);
  1091. Route::get('/sheet', [\app\admin\controller\order\WholeController::class, 'sheet']);
  1092. Route::get('/update', [\app\admin\controller\order\WholeController::class, 'update']);
  1093. Route::post('/delivery', [\app\admin\controller\order\WholeController::class, 'delivery']);
  1094. Route::get('/myOrder', [\app\admin\controller\order\WholeController::class, 'myOrder']);
  1095. Route::post('/add', [\app\admin\controller\order\WholeController::class, 'insert']);
  1096. Route::post('/addConstitute', [\app\admin\controller\order\WholeController::class, 'insertConstitute']);
  1097. Route::post('/delete', [\app\admin\controller\order\WholeController::class, 'delete']);
  1098. Route::post('/doRefund', [\app\admin\controller\order\WholeController::class, 'doRefund']);
  1099. Route::post('/writeOffDishes', [\app\admin\controller\order\WholeController::class, 'writeOffDishes']);
  1100. Route::get('/exportOrder', [\app\admin\controller\order\WholeController::class, 'exportOrder']);
  1101. Route::get('/benefitList', [\app\admin\controller\order\WholeController::class, 'benefitList']);
  1102. Route::get('/chooseBenefitList', [\app\admin\controller\order\WholeController::class, 'chooseBenefitList']);
  1103. Route::post('/writeOffBenefit', [\app\admin\controller\order\WholeController::class, 'writeOffBenefit']);
  1104. Route::post('/pay', [\app\admin\controller\order\WholeController::class, 'pay']);
  1105. Route::post('/payConstitute', [\app\admin\controller\order\WholeController::class, 'payConstitute']);
  1106. Route::get('/checkPayMarking', [\app\admin\controller\order\WholeController::class, 'checkPayMarking']);
  1107. Route::post('/addDishes', [\app\admin\controller\order\WholeController::class, 'addDishes']);
  1108. Route::post('/cutMeals', [\app\admin\controller\order\WholeController::class, 'cutMeals']);
  1109. Route::post('/customPrinter', [\app\admin\controller\order\WholeController::class, 'customPrinter']);
  1110. Route::post('/printerWriterOff', [\app\admin\controller\order\WholeController::class, 'printerWriterOff']);
  1111. Route::post('/cancelOrder', [\app\admin\controller\order\WholeController::class, 'cancelOrder']);
  1112. Route::get('/getOrderPayStatus', [\app\admin\controller\order\WholeController::class, 'getOrderPayStatus']);
  1113. Route::get('/getProductOrderPayStatus', [\app\admin\controller\order\WholeController::class, 'getProductOrderPayStatus']);
  1114. Route::get('/writeOffList', [\app\admin\controller\order\WholeController::class, 'writeOffList']);
  1115. })->middleware([
  1116. \app\middleware\AdminAuthCheck::class
  1117. ]);
  1118. Route::group('/statistics', function () {
  1119. Route::get('/order', [\app\admin\controller\order\StatisticsController::class, 'order']);
  1120. })->middleware([
  1121. \app\middleware\AdminAuthCheck::class
  1122. ]);
  1123. //
  1124. Route::group('/pending', function () {
  1125. Route::get('/list', [\app\admin\controller\order\PendingController::class, 'select']);
  1126. Route::get('/sheet', [\app\admin\controller\order\PendingController::class, 'sheet']);
  1127. })->middleware([
  1128. \app\middleware\AdminAuthCheck::class
  1129. ]);
  1130. // 餐饮订单
  1131. Route::group('/dishes', function () {
  1132. Route::get('/list', [\app\admin\controller\order\DishesController::class, 'select']);
  1133. })->middleware([
  1134. \app\middleware\AdminAuthCheck::class
  1135. ]);
  1136. // 产品订单
  1137. Route::group('/goods', function () {
  1138. Route::get('/list', [\app\admin\controller\order\GoodsController::class, 'select']);
  1139. Route::post('/add', [\app\admin\controller\order\GoodsController::class, 'insert']);
  1140. Route::post('/addConstitute', [\app\admin\controller\order\GoodsController::class, 'insertConstitute']);
  1141. Route::post('/pay', [\app\admin\controller\order\GoodsController::class, 'pay']);
  1142. Route::post('/payConstitute', [\app\admin\controller\order\GoodsController::class, 'payConstitute']);
  1143. })->middleware([
  1144. \app\middleware\AdminAuthCheck::class
  1145. ]);
  1146. // 康养城订单
  1147. Route::group('/kangyangCity', function () {
  1148. Route::get('/list', [\app\admin\controller\order\KangyangCityController::class, 'select']);
  1149. Route::post('/add', [\app\admin\controller\order\KangyangCityController::class, 'insert']);
  1150. Route::post('/pay', [\app\admin\controller\order\KangyangCityController::class, 'pay']);
  1151. Route::get('/sheet', [\app\admin\controller\order\KangyangCityController::class, 'sheet']);
  1152. Route::get('/getPaidOrder', [\app\admin\controller\order\KangyangCityController::class, 'getPaidOrder']);
  1153. Route::post('/uploadTicket', [\app\admin\controller\order\KangyangCityController::class, 'uploadTicket']);
  1154. })->middleware([
  1155. \app\middleware\AdminAuthCheck::class
  1156. ]);
  1157. // 合伙人订单
  1158. Route::group('/partner', function () {
  1159. Route::get('/list', [\app\admin\controller\order\PartnerController::class, 'select']);
  1160. Route::post('/add', [\app\admin\controller\order\PartnerController::class, 'insert']);
  1161. Route::post('/pay', [\app\admin\controller\order\PartnerController::class, 'pay']);
  1162. Route::get('/sheet', [\app\admin\controller\order\PartnerController::class, 'sheet']);
  1163. Route::get('/getPaidOrder', [\app\admin\controller\order\PartnerController::class, 'getPaidOrder']);
  1164. Route::post('/uploadTicket', [\app\admin\controller\order\PartnerController::class, 'uploadTicket']);
  1165. Route::get('/getOrderPayStatus', [\app\admin\controller\order\PartnerController::class, 'getOrderPayStatus']);
  1166. })->middleware([
  1167. \app\middleware\AdminAuthCheck::class
  1168. ]);
  1169. // 加盟合伙人订单
  1170. Route::group('/franchisee', function () {
  1171. Route::get('/list', [\app\admin\controller\order\FranchiseeController::class, 'select']);
  1172. Route::post('/add', [\app\admin\controller\order\FranchiseeController::class, 'insert']);
  1173. Route::post('/pay', [\app\admin\controller\order\FranchiseeController::class, 'pay']);
  1174. Route::get('/sheet', [\app\admin\controller\order\FranchiseeController::class, 'sheet']);
  1175. Route::get('/getPaidOrder', [\app\admin\controller\order\FranchiseeController::class, 'getPaidOrder']);
  1176. Route::post('/uploadTicket', [\app\admin\controller\order\FranchiseeController::class, 'uploadTicket']);
  1177. Route::get('/getOrderPayStatus', [\app\admin\controller\order\FranchiseeController::class, 'getOrderPayStatus']);
  1178. })->middleware([
  1179. \app\middleware\AdminAuthCheck::class
  1180. ]);
  1181. // 推荐人订单
  1182. Route::group('/referrer', function () {
  1183. Route::get('/list', [\app\admin\controller\order\ReferrerController::class, 'select']);
  1184. Route::post('/add', [\app\admin\controller\order\ReferrerController::class, 'insert']);
  1185. Route::post('/pay', [\app\admin\controller\order\ReferrerController::class, 'pay']);
  1186. Route::get('/sheet', [\app\admin\controller\order\ReferrerController::class, 'sheet']);
  1187. Route::get('/getPaidOrder', [\app\admin\controller\order\ReferrerController::class, 'getPaidOrder']);
  1188. Route::post('/uploadTicket', [\app\admin\controller\order\ReferrerController::class, 'uploadTicket']);
  1189. Route::get('/getOrderPayStatus', [\app\admin\controller\order\ReferrerController::class, 'getOrderPayStatus']);
  1190. })->middleware([
  1191. \app\middleware\AdminAuthCheck::class
  1192. ]);
  1193. // 新客专享订单
  1194. Route::group('/newCustomer', function () {
  1195. Route::get('/list', [\app\admin\controller\order\NewCustomerController::class, 'select']);
  1196. Route::post('/add', [\app\admin\controller\order\NewCustomerController::class, 'insert']);
  1197. Route::post('/pay', [\app\admin\controller\order\NewCustomerController::class, 'pay']);
  1198. Route::get('/sheet', [\app\admin\controller\order\NewCustomerController::class, 'sheet']);
  1199. Route::get('/getPaidOrder', [\app\admin\controller\order\NewCustomerController::class, 'getPaidOrder']);
  1200. Route::post('/uploadTicket', [\app\admin\controller\order\NewCustomerController::class, 'uploadTicket']);
  1201. Route::get('/getOrderPayStatus', [\app\admin\controller\order\NewCustomerController::class, 'getOrderPayStatus']);
  1202. })->middleware([
  1203. \app\middleware\AdminAuthCheck::class
  1204. ]);
  1205. // 服务订单
  1206. Route::group('/services', function () {
  1207. Route::get('/list', [\app\admin\controller\order\ServicesController::class, 'select']);
  1208. Route::post('/add', [\app\admin\controller\order\ServicesController::class, 'insert']);
  1209. Route::post('/addConstitute', [\app\admin\controller\order\ServicesController::class, 'insertConstitute']);
  1210. Route::post('/pay', [\app\admin\controller\order\ServicesController::class, 'pay']);
  1211. Route::post('/payConstitute', [\app\admin\controller\order\ServicesController::class, 'payConstitute']);
  1212. Route::get('/getOrderPayStatus', [\app\admin\controller\order\WholeController::class, 'getOrderPayStatus']);
  1213. })->middleware([
  1214. \app\middleware\AdminAuthCheck::class
  1215. ]);
  1216. // 套包订单
  1217. Route::group('/packages', function () {
  1218. Route::get('/list', [\app\admin\controller\order\PackagesController::class, 'select']);
  1219. Route::post('/writeOff', [\app\admin\controller\order\PackagesController::class, 'writeOff']);
  1220. Route::post('/add', [\app\admin\controller\order\PackagesController::class, 'insert']);
  1221. Route::post('/addConstitute', [\app\admin\controller\order\PackagesController::class, 'insertConstitute']);
  1222. Route::post('/pay', [\app\admin\controller\order\PackagesController::class, 'pay']);
  1223. Route::post('/payConstitute', [\app\admin\controller\order\PackagesController::class, 'payConstitute']);
  1224. })->middleware([
  1225. \app\middleware\AdminAuthCheck::class
  1226. ]);
  1227. // 售后订单
  1228. Route::group('/return', function () {
  1229. Route::get('/list', [\app\admin\controller\order\ReturnController::class, 'select']);
  1230. Route::get('/sheet', [\app\admin\controller\order\ReturnController::class, 'sheet']);
  1231. })->middleware([
  1232. \app\middleware\AdminAuthCheck::class
  1233. ]);
  1234. // 已完成订单
  1235. Route::group('/complete', function () {
  1236. Route::get('/list', [\app\admin\controller\order\CompleteController::class, 'select']);
  1237. Route::get('/sheet', [\app\admin\controller\order\CompleteController::class, 'sheet']);
  1238. })->middleware([
  1239. \app\middleware\AdminAuthCheck::class
  1240. ]);
  1241. // 预约订单
  1242. Route::group('/appointment', function () {
  1243. Route::get('/list', [\app\admin\controller\order\AppointmentController::class, 'select']);
  1244. Route::get('/add', [\app\admin\controller\order\AppointmentController::class, 'add']);
  1245. Route::get('/update', [\app\admin\controller\order\AppointmentController::class, 'update']);
  1246. Route::post('/confirm/{id:[0-9a-zA-Z]+}', [\app\admin\controller\order\AppointmentController::class, 'confirm']);
  1247. Route::get('/getTimes', [\app\admin\controller\order\AppointmentController::class, 'getTimes']);
  1248. Route::get('/my', [\app\admin\controller\order\AppointmentController::class, 'myAppointments']);
  1249. Route::post('/arrival', [\app\admin\controller\order\AppointmentController::class, 'arrival']);
  1250. Route::post('/done', [\app\admin\controller\order\AppointmentController::class, 'done']);
  1251. Route::post('/cancelApply', [\app\admin\controller\order\AppointmentController::class, 'cancelApply']);
  1252. })->middleware([
  1253. \app\middleware\AdminAuthCheck::class
  1254. ]);
  1255. // 退款管理
  1256. Route::group('/refund', function () {
  1257. Route::get('/list', [\app\admin\controller\order\RefundController::class, 'select']);
  1258. Route::get('/sheet', [\app\admin\controller\order\RefundController::class, 'sheet']);
  1259. Route::get('/rechargeSheet', [\app\admin\controller\order\RefundController::class, 'rechargeSheet']);
  1260. Route::post('/customRefund', [\app\admin\controller\order\RefundController::class, 'customRefund']);
  1261. Route::post('/rechargeRefund', [\app\admin\controller\order\RefundController::class, 'rechargeRefund']);
  1262. })->middleware([
  1263. \app\middleware\AdminAuthCheck::class
  1264. ]);
  1265. // 支付记录
  1266. Route::group('/payDetail', function () {
  1267. Route::get('/list', [\app\admin\controller\order\PayDetailController::class, 'select']);
  1268. Route::get('/statistics', [\app\admin\controller\order\PayDetailController::class, 'statistics']);
  1269. Route::get('/welfareList', [\app\admin\controller\order\PayDetailController::class, 'selectWelfare']);
  1270. Route::get('/goodsOrder', [\app\admin\controller\order\PayDetailController::class, 'goodsOrder']);
  1271. Route::post('/insertRecharge', [\app\admin\controller\order\PayDetailController::class, 'insertRecharge']);
  1272. Route::post('/insertGive', [\app\admin\controller\order\PayDetailController::class, 'insertGive']);
  1273. Route::post('/insertRechargeWelfare', [\app\admin\controller\order\PayDetailController::class, 'insertRechargeWelfare']);
  1274. // Route::get('/info', [\app\admin\controller\order\AppointmentController::class, 'info']);
  1275. });
  1276. // 充值订单
  1277. Route::group('/recharge', function () {
  1278. Route::get('/list', [\app\admin\controller\order\RechargeController::class, 'select']);
  1279. Route::post('/add', [\app\admin\controller\order\RechargeController::class, 'insert']);
  1280. Route::post('/pay', [\app\admin\controller\order\RechargeController::class, 'pay']);
  1281. Route::get('/sheet', [\app\admin\controller\order\RechargeController::class, 'sheet']);
  1282. Route::get('/getPaidOrder', [\app\admin\controller\order\RechargeController::class, 'getPaidOrder']);
  1283. Route::post('/uploadTicket', [\app\admin\controller\order\RechargeController::class, 'uploadTicket']);
  1284. Route::get('/getOrderPayStatus', [\app\admin\controller\order\RechargeController::class, 'getOrderPayStatus']);
  1285. })->middleware([
  1286. \app\middleware\AdminAuthCheck::class
  1287. ]);
  1288. });
  1289. /* 统计 */
  1290. Route::group('/statistics', function () {
  1291. Route::get('/member', [\app\admin\controller\statistics\MemberController::class, 'index']);
  1292. })->middleware([
  1293. \app\middleware\AdminAuthCheck::class
  1294. ]);
  1295. /* 客户端相关数据 */
  1296. Route::group('/client', function () {
  1297. Route::group('', function () {
  1298. // 我的关注
  1299. Route::get('/favorite/list', [\app\admin\controller\client\FavoriteController::class, 'select']);
  1300. // 我的收藏
  1301. Route::get('/collection/list', [\app\admin\controller\client\CollectionController::class, 'select']);
  1302. // 我的积分
  1303. Route::get('/points/list', [\app\admin\controller\client\PointsController::class, 'select']);
  1304. // 我的评价
  1305. // Route::get('/evaluate/list', [\app\admin\controller\client\EvaluateController::class, 'select']);
  1306. // 我的购物车
  1307. Route::get('/cart/list', [\app\admin\controller\client\CartController::class, 'select']);
  1308. // 我的优惠券
  1309. Route::get('/coupon/list', [\app\admin\controller\client\CouponController::class, 'select']);
  1310. // 我的浏览数据
  1311. Route::get('/browse/list', [\app\admin\controller\client\BrowseController::class, 'select']);
  1312. })->middleware([
  1313. \app\middleware\AdminAuthCheck::class
  1314. ]);
  1315. /* 评价管理 */
  1316. Route::group('/evaluate', function () {
  1317. Route::get('/list', [\app\admin\controller\client\EvaluateController::class, 'select']);
  1318. Route::get('/statistics', [\app\admin\controller\client\EvaluateController::class, 'statistics']);
  1319. Route::post('/add', [\app\admin\controller\client\EvaluateController::class, 'insert']);
  1320. Route::post('/update', [\app\admin\controller\client\EvaluateController::class, 'update']);
  1321. Route::delete('/delete', [\app\admin\controller\client\EvaluateController::class, 'delete']);
  1322. })->middleware([
  1323. \app\middleware\AdminAuthCheck::class
  1324. ]);
  1325. /* 消息管理 */
  1326. Route::group('/message', function () {
  1327. Route::group('', function () {
  1328. Route::get('/list', [\app\admin\controller\client\MessageController::class, 'select']);
  1329. Route::post('/add', [\app\admin\controller\client\MessageController::class, 'insert']);
  1330. Route::post('/groupAdd', [\app\admin\controller\client\MessageController::class, 'groupInsert']);
  1331. Route::post('/update', [\app\admin\controller\client\MessageController::class, 'update']);
  1332. Route::delete('/delete', [\app\admin\controller\client\MessageController::class, 'delete']);
  1333. })->middleware([
  1334. \app\middleware\AdminAuthCheck::class
  1335. ]);
  1336. });
  1337. /* APP参数管理 */
  1338. Route::group('/appParams', function () {
  1339. Route::group('', function () {
  1340. Route::get('/list', [\app\admin\controller\client\AppParamsController::class, 'select']);
  1341. Route::post('/add', [\app\admin\controller\client\AppParamsController::class, 'insert']);
  1342. Route::post('/update', [\app\admin\controller\client\AppParamsController::class, 'update']);
  1343. Route::delete('/delete', [\app\admin\controller\client\AppParamsController::class, 'delete']);
  1344. })->middleware([
  1345. \app\middleware\AdminAuthCheck::class
  1346. ]);
  1347. });
  1348. Route::group('/feedback', function () {
  1349. Route::get('/list', [\app\admin\controller\client\FeedbackController::class, 'select']);
  1350. Route::post('/add', [\app\admin\controller\content\SpecialController::class, 'insert']);
  1351. Route::post('/update', [\app\admin\controller\content\SpecialController::class, 'update']);
  1352. Route::delete('/delete', [\app\admin\controller\content\SpecialController::class, 'delete']);
  1353. })->middleware([
  1354. \app\middleware\AdminAuthCheck::class
  1355. ]);
  1356. });
  1357. Route::group('/dashboard', function () {
  1358. Route::get('/', [\app\admin\controller\dashboard\DashboardController::class, 'index']);
  1359. });
  1360. // /* 储值卡管理 */
  1361. // Route::group('/card', function () {
  1362. // /* 卡管理 */
  1363. // Route::group('/card', function () {
  1364. // Route::get('/list', [\app\admin\controller\card\CardController::class, 'list']);
  1365. // Route::get('/info', [\app\admin\controller\card\CardController::class, 'info']);
  1366. // Route::get('/exportCard', [\app\admin\controller\card\CardController::class, 'exportCard']);
  1367. // Route::delete('/delete', [\app\admin\controller\card\CardController::class, 'delete']);
  1368. // Route::post('/save', [\app\admin\controller\card\CardController::class, 'save']);
  1369. // Route::get('/status', [\app\admin\controller\card\CardController::class, 'getStatusList']);
  1370. // Route::post('/binding', [\app\admin\controller\card\CardController::class, 'binding']);
  1371. // })->middleware([
  1372. // \app\middleware\AdminAuthCheck::class
  1373. // ]);
  1374. //
  1375. // /* 卡批次管理 */
  1376. // Route::group('/cardBatch', function () {
  1377. // Route::post('/add', [\app\admin\controller\card\CardBatchController::class, 'insert']);
  1378. // Route::post('/save', [\app\admin\controller\card\CardBatchController::class, 'save']);
  1379. // Route::delete('/delete', [\app\admin\controller\card\CardBatchController::class, 'delete']);
  1380. // Route::get('/list', [\app\admin\controller\card\CardBatchController::class, 'list']);
  1381. // Route::get('/info', [\app\admin\controller\card\CardBatchController::class, 'info']);
  1382. // Route::get('/status', [\app\admin\controller\card\CardBatchController::class, 'getStatusList']);
  1383. // })->middleware([
  1384. // \app\middleware\AdminAuthCheck::class
  1385. // ]);
  1386. // });
  1387. });
  1388. Route::group('/notify', function () {
  1389. Route::post('/recharge/paySuccess', [\app\admin\controller\notify\RechargeController::class, 'paySuccess']);
  1390. Route::post('/orderPay/wxpay', [\app\admin\controller\notify\OrderPayController::class, 'wxpay']);
  1391. Route::post('/orderPay/alipay', [\app\admin\controller\notify\OrderPayController::class, 'alipay']);
  1392. });