admin.php 100 KB

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