admin.php 97 KB

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