admin.php 98 KB

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