admin.php 77 KB

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