admin.php 98 KB

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