admin.php 98 KB

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