admin.php 99 KB

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