admin.php 84 KB

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