admin.php 79 KB

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