admin.php 93 KB

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