admin.php 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933
  1. <?php
  2. use app\admin\controller\finance\WriteOffController;
  3. use Webman\Route;
  4. Route::group('/admin', function () {
  5. Route::group('/upload', function () {
  6. Route::post('/image', [\app\admin\controller\sys_manage\UploadController::class, 'image']);
  7. Route::post('/video', [\app\admin\controller\sys_manage\UploadController::class, 'video']);
  8. Route::post('/file', [\app\admin\controller\sys_manage\UploadController::class, 'file']);
  9. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\UploadController::class, 'updateStatus']);
  10. })->middleware([
  11. \app\middleware\AdminAuthCheck::class
  12. ]);
  13. Route::group('/sms', function () {
  14. Route::post('/quotaWriteOffCode', [\app\admin\controller\sms\SmsController::class, 'sendSmsCodeByQuota']);
  15. Route::post('/benefitWriteOffCode', [\app\admin\controller\sms\SmsController::class, 'sendSmsCodeByBenefit']);
  16. });
  17. /* 鉴权 */
  18. Route::group('/auth', function () {
  19. Route::post('/login', [\app\admin\controller\auth\AuthController::class, 'login']);
  20. Route::post('/logout', [\app\admin\controller\auth\AuthController::class, 'logout']);
  21. Route::get('/userInfo', [\app\admin\controller\auth\AuthController::class, 'userInfo']);
  22. Route::get('/refreshToken', [\app\admin\controller\auth\AuthController::class, 'refreshToken']);
  23. })->middleware([
  24. \app\middleware\AdminAuthCheck::class
  25. ]);
  26. Route::group('/content', function () {
  27. Route::group('/special', function () {
  28. Route::get('/list', [\app\admin\controller\content\SpecialController::class, 'select']);
  29. Route::post('/add', [\app\admin\controller\content\SpecialController::class, 'insert']);
  30. Route::post('/update', [\app\admin\controller\content\SpecialController::class, 'update']);
  31. Route::delete('/delete', [\app\admin\controller\content\SpecialController::class, 'delete']);
  32. })->middleware([
  33. \app\middleware\AdminAuthCheck::class
  34. ]);
  35. });
  36. Route::group('/goods', function () {
  37. /* 实物商品管理 */
  38. Route::group('/entity', function () {
  39. Route::get('/selectAll', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAll']);
  40. Route::get('/selectAllByGoodsName', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAllByGoodsName']);
  41. Route::get('/selectAllByCategoryForRuleAddComponent', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAllByCategoryForRuleAddComponent']);
  42. Route::get('/getPremises', [\app\admin\controller\goods\EntityGoodsController::class, 'selectPremisesByGoodsId']);
  43. Route::get('/list', [\app\admin\controller\goods\EntityGoodsController::class, 'select']);
  44. Route::get('/info', [\app\admin\controller\goods\EntityGoodsController::class, 'info']);
  45. Route::post('/add', [\app\admin\controller\goods\EntityGoodsController::class, 'insert']);
  46. Route::post('/update', [\app\admin\controller\goods\EntityGoodsController::class, 'update']);
  47. Route::delete('/delete', [\app\admin\controller\goods\EntityGoodsController::class, 'delete']);
  48. })->middleware([
  49. \app\middleware\AdminAuthCheck::class
  50. ]);
  51. Route::group('/recharge', function () {
  52. Route::get('/list', [\app\admin\controller\goods\RechargeGoodsController::class, 'select']);
  53. Route::post('/add', [\app\admin\controller\goods\RechargeGoodsController::class, 'insert']);
  54. Route::post('/update', [\app\admin\controller\goods\RechargeGoodsController::class, 'update']);
  55. })->middleware([
  56. \app\middleware\AdminAuthCheck::class
  57. ]);
  58. /* 业务服务商品管理 */
  59. Route::group('/service', function () {
  60. Route::get('/list', [\app\admin\controller\goods\ServiceGoodsController::class, 'select']);
  61. Route::get('/selectList', [\app\admin\controller\goods\ServiceGoodsController::class, 'selectList']);
  62. Route::get('/selectPicking', [\app\admin\controller\goods\ServiceGoodsController::class, 'selectPicking']);
  63. Route::get('/info', [\app\admin\controller\goods\ServiceGoodsController::class, 'info']);
  64. Route::post('/add', [\app\admin\controller\goods\ServiceGoodsController::class, 'insert']);
  65. Route::post('/update', [\app\admin\controller\goods\ServiceGoodsController::class, 'update']);
  66. Route::post('/changeStatus', [\app\admin\controller\goods\ServiceGoodsController::class, 'changeStatus']);
  67. Route::delete('/delete', [\app\admin\controller\goods\ServiceGoodsController::class, 'delete']);
  68. })->middleware([
  69. \app\middleware\AdminAuthCheck::class
  70. ]);
  71. /* 营销专题商品管理 */
  72. Route::group('/special', function () {
  73. Route::get('/list', [\app\admin\controller\goods\SpecialGoodsController::class, 'select']);
  74. Route::get('/info', [\app\admin\controller\goods\SpecialGoodsController::class, 'info']);
  75. Route::post('/add', [\app\admin\controller\goods\SpecialGoodsController::class, 'insert']);
  76. Route::post('/update', [\app\admin\controller\goods\SpecialGoodsController::class, 'update']);
  77. Route::delete('/delete', [\app\admin\controller\goods\SpecialGoodsController::class, 'delete']);
  78. })->middleware([
  79. \app\middleware\AdminAuthCheck::class
  80. ]);
  81. /*套包商品管理 */
  82. Route::group('/package', function () {
  83. Route::get('/list', [\app\admin\controller\goods\PackageGoodsController::class, 'select']);
  84. Route::get('/selectList', [\app\admin\controller\goods\PackageGoodsController::class, 'selectList']);
  85. Route::get('/info', [\app\admin\controller\goods\PackageGoodsController::class, 'info']);
  86. Route::post('/add', [\app\admin\controller\goods\PackageGoodsController::class, 'insert']);
  87. Route::post('/update', [\app\admin\controller\goods\PackageGoodsController::class, 'update']);
  88. Route::delete('/delete', [\app\admin\controller\goods\PackageGoodsController::class, 'delete']);
  89. })->middleware([
  90. \app\middleware\AdminAuthCheck::class
  91. ]);
  92. });
  93. /* 财务管理 */
  94. Route::group('/finance',function (){
  95. Route::group('/writeOff',function (){
  96. Route::get('/list',[\app\admin\controller\finance\WriteOffController::class,'records']);
  97. });
  98. Route::group('/goodsSales',function (){
  99. Route::get('/statistics',[\app\admin\controller\finance\GoodsSalesController::class,'statistics']);
  100. Route::get('/list',[\app\admin\controller\finance\GoodsSalesController::class,'list']);
  101. });
  102. Route::group('/memberAccount',function (){
  103. Route::get('/list',[\app\admin\controller\finance\MemberAccountController::class,'list']);
  104. });
  105. });
  106. /* 系统管理中心 */
  107. Route::group('/sys', function () {
  108. /* API管理 */
  109. Route::group('/api', function () {
  110. Route::get('/list', [\app\admin\controller\sys_manage\ApiController::class, 'select']);
  111. Route::post('/add', [\app\admin\controller\sys_manage\ApiController::class, 'insert']);
  112. Route::post('/update', [\app\admin\controller\sys_manage\ApiController::class, 'update']);
  113. Route::delete('/delete', [\app\admin\controller\sys_manage\ApiController::class, 'delete']);
  114. })->middleware([
  115. \app\middleware\AdminAuthCheck::class
  116. ]);
  117. /* 绿通医院 */
  118. Route::group('/greenChannel', function () {
  119. Route::get('/list', [\app\admin\controller\sys_manage\GreenChannelController::class, 'select']);
  120. Route::post('/add', [\app\admin\controller\sys_manage\GreenChannelController::class, 'insert']);
  121. Route::post('/update', [\app\admin\controller\sys_manage\GreenChannelController::class, 'update']);
  122. Route::delete('/delete', [\app\admin\controller\sys_manage\GreenChannelController::class, 'delete']);
  123. })->middleware([
  124. \app\middleware\AdminAuthCheck::class
  125. ]);
  126. /* 角色管理 */
  127. Route::group('/role', function () {
  128. Route::get('/select', [\app\admin\controller\sys_manage\RoleController::class, 'select']);
  129. Route::get('/list', [\app\admin\controller\sys_manage\RoleController::class, 'roleList']);
  130. Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\RoleController::class, 'roleInfo']);
  131. Route::post('/add', [\app\admin\controller\sys_manage\RoleController::class, 'addRole']);
  132. Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\RoleController::class, 'updateRole']);
  133. Route::delete('/delete', [\app\admin\controller\sys_manage\RoleController::class, 'delRole']);
  134. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\RoleController::class, 'updateStatus']);
  135. Route::post('/updatePermission/{id:\d+}', [\app\admin\controller\sys_manage\RoleController::class, 'updatePermission']);
  136. })->middleware([
  137. \app\middleware\AdminAuthCheck::class
  138. ]);
  139. /* 部门管理 */
  140. Route::group('/dept', function () {
  141. Route::get('/list', [\app\admin\controller\sys_manage\DeptController::class, 'deptList']);
  142. Route::get('/select', [\app\admin\controller\sys_manage\DeptController::class, 'select']);
  143. Route::get('/selectList', [\app\admin\controller\sys_manage\DeptController::class, 'selectList']);
  144. Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\DeptController::class, 'deptInfo']);
  145. Route::post('/add', [\app\admin\controller\sys_manage\DeptController::class, 'addDept']);
  146. Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\DeptController::class, 'updateDept']);
  147. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\DeptController::class, 'updateStatus']);
  148. Route::delete('/delete/{id:\d+}', [\app\admin\controller\sys_manage\DeptController::class, 'delDept']);
  149. })->middleware([
  150. \app\middleware\AdminAuthCheck::class
  151. ]);
  152. /* 用户管理 */
  153. Route::group('/user', function () {
  154. Route::get('/list', [\app\admin\controller\sys_manage\UserController::class, 'userList']);
  155. Route::get('/selectTeacherList', [\app\admin\controller\sys_manage\UserController::class, 'selectTeacherList']);
  156. Route::get('/info/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'userInfo']);
  157. Route::post('/add', [\app\admin\controller\sys_manage\UserController::class, 'addUser']);
  158. Route::post('/update/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'updateUser']);
  159. Route::post('/updateStatus/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'updateStatus']);
  160. Route::post('/updatePassword/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'updatePassword']);
  161. Route::delete('/delete', [\app\admin\controller\sys_manage\UserController::class, 'delUser']);
  162. Route::post('/correlationMember',[\app\admin\controller\sys_manage\UserController::class,'correlationMember']);
  163. Route::get('/selectDoctorList',[\app\admin\controller\sys_manage\UserController::class,'selectDoctorList']);
  164. Route::get('/selectSalesmanList',[\app\admin\controller\sys_manage\UserController::class,'selectSalesmanList']);
  165. })->middleware([
  166. \app\middleware\AdminAuthCheck::class
  167. ]);
  168. /* 分类管理 */
  169. Route::group('/category', function () {
  170. Route::get('/index', [\app\admin\controller\sys_manage\CategoryController::class, 'index']);
  171. Route::get('/list', [\app\admin\controller\sys_manage\CategoryController::class, 'categoryList']);
  172. Route::get('/goodsCategory', [\app\admin\controller\sys_manage\CategoryController::class, 'goodsCategory']);
  173. Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\CategoryController::class, 'categoryInfo']);
  174. Route::post('/add', [\app\admin\controller\sys_manage\CategoryController::class, 'addCategory']);
  175. Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\CategoryController::class, 'updateCategory']);
  176. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\CategoryController::class, 'updateStatus']);
  177. Route::delete('/delete', [\app\admin\controller\sys_manage\CategoryController::class, 'delCategory']);
  178. Route::get('/categoryTree', [\app\admin\controller\sys_manage\CategoryController::class, 'getCategoryTree']);
  179. })->middleware([
  180. \app\middleware\AdminAuthCheck::class
  181. ]);
  182. /* 字段管理 */
  183. Route::group('/field', function () {
  184. Route::get('/list', [\app\admin\controller\sys_manage\FieldController::class, 'fieldList']);
  185. Route::get('/selectList', [\app\admin\controller\sys_manage\FieldController::class, 'selectList']);
  186. Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\FieldController::class, 'fieldInfo']);
  187. Route::post('/add', [\app\admin\controller\sys_manage\FieldController::class, 'addField']);
  188. Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\FieldController::class, 'updateFields']);
  189. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\FieldController::class, 'updateStatus']);
  190. Route::delete('/delete', [\app\admin\controller\sys_manage\FieldController::class, 'delField']);
  191. });
  192. /* 配置管理 */
  193. Route::group('/config', function () {
  194. Route::get('/list', [\app\admin\controller\sys_manage\ConfigController::class, 'configList']);
  195. Route::get('/info/{id:\d+}', [\app\admin\controller\sys_manage\ConfigController::class, 'configInfo']);
  196. Route::post('/add', [\app\admin\controller\sys_manage\ConfigController::class, 'addConfig']);
  197. Route::post('/update/{id:\d+}', [\app\admin\controller\sys_manage\ConfigController::class, 'updateConfig']);
  198. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\sys_manage\ConfigController::class, 'updateStatus']);
  199. Route::delete('/delete', [\app\admin\controller\sys_manage\ConfigController::class, 'delConfig']);
  200. //
  201. // // 底部菜单
  202. // Route::get('/bottomMenuList', [\app\admin\controller\sys_manage\ConfigController::class, 'bottomMenuList']);
  203. // Route::post('/bottomMenuSave', [\app\admin\controller\sys_manage\ConfigController::class, 'bottomMenuSave']);
  204. // // 导航菜单
  205. // Route::get('/navMenuList', [\app\admin\controller\sys_manage\ConfigController::class, 'navMenuList']);
  206. // Route::post('/navMenuSave', [\app\admin\controller\sys_manage\ConfigController::class, 'navMenuSave']);
  207. // 参数配置
  208. Route::get('/paramsList', [\app\admin\controller\sys_manage\ConfigController::class, 'paramsList']);
  209. Route::post('/paramsSave', [\app\admin\controller\sys_manage\ConfigController::class, 'paramsSave']);
  210. });
  211. /* 运费模板管理 */
  212. Route::group('/postageTemplate', function () {
  213. Route::get('/list', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'select']);
  214. Route::post('/add', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'insert']);
  215. Route::post('/update', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'update']);
  216. Route::post('/updateStatus', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'updateStatus']);
  217. Route::delete('/delete', [\app\admin\controller\sys_manage\PostageTemplateController::class, 'delete']);
  218. });
  219. Route::group('/adv', function () {
  220. Route::get('/list', [\app\admin\controller\sys_manage\AdvController::class, 'select']);
  221. Route::post('/add', [\app\admin\controller\sys_manage\AdvController::class, 'insert']);
  222. Route::post('/update', [\app\admin\controller\sys_manage\AdvController::class, 'update']);
  223. Route::delete('/delete', [\app\admin\controller\sys_manage\AdvController::class, 'delete']);
  224. })->middleware([
  225. \app\middleware\AdminAuthCheck::class
  226. ]);
  227. Route::group('/protocol', function () {
  228. Route::get('/list', [\app\admin\controller\sys_manage\ProtocolController::class, 'select']);
  229. Route::post('/add', [\app\admin\controller\sys_manage\ProtocolController::class, 'insert']);
  230. Route::post('/update', [\app\admin\controller\sys_manage\ProtocolController::class, 'update']);
  231. Route::delete('/delete', [\app\admin\controller\sys_manage\ProtocolController::class, 'delete']);
  232. })->middleware([
  233. \app\middleware\AdminAuthCheck::class
  234. ]);
  235. Route::group('/healthyClassroom', function () {
  236. Route::get('/list', [\app\admin\controller\sys_manage\HealthyClassroomController::class, 'select']);
  237. Route::post('/add', [\app\admin\controller\sys_manage\HealthyClassroomController::class, 'insert']);
  238. Route::post('/update', [\app\admin\controller\sys_manage\HealthyClassroomController::class, 'update']);
  239. Route::delete('/delete', [\app\admin\controller\sys_manage\HealthyClassroomController::class, 'delete']);
  240. })->middleware([
  241. \app\middleware\AdminAuthCheck::class
  242. ]);
  243. Route::group('/finance', function () {
  244. Route::get('/info', [\app\admin\controller\sys_manage\FinanceController::class, 'info']);
  245. Route::post('/update', [\app\admin\controller\sys_manage\FinanceController::class, 'update']);
  246. });
  247. Route::group('/apartment', function () {
  248. Route::get('/info', [\app\admin\controller\content\ApartMentController::class, 'info']);
  249. Route::post('/update', [\app\admin\controller\content\ApartMentController::class, 'update']);
  250. });
  251. Route::group('/banner', function () {
  252. Route::get('/list', [\app\admin\controller\sys_manage\BannerController::class, 'select']);
  253. Route::post('/add', [\app\admin\controller\sys_manage\BannerController::class, 'insert']);
  254. Route::post('/update', [\app\admin\controller\sys_manage\BannerController::class, 'update']);
  255. Route::delete('/delete', [\app\admin\controller\sys_manage\BannerController::class, 'delete']);
  256. })->middleware([
  257. \app\middleware\AdminAuthCheck::class
  258. ]);
  259. Route::group('/article', function () {
  260. Route::get('/list', [\app\admin\controller\sys_manage\ArticleController::class, 'select']);
  261. Route::post('/add', [\app\admin\controller\sys_manage\ArticleController::class, 'insert']);
  262. Route::post('/update', [\app\admin\controller\sys_manage\ArticleController::class, 'update']);
  263. Route::delete('/delete', [\app\admin\controller\sys_manage\ArticleController::class, 'delete']);
  264. })->middleware([
  265. \app\middleware\AdminAuthCheck::class
  266. ]);
  267. Route::group('/news', function () {
  268. Route::get('/list', [\app\admin\controller\sys_manage\NewsController::class, 'select']);
  269. Route::post('/add', [\app\admin\controller\sys_manage\NewsController::class, 'insert']);
  270. Route::post('/update', [\app\admin\controller\sys_manage\NewsController::class, 'update']);
  271. Route::delete('/delete', [\app\admin\controller\sys_manage\NewsController::class, 'delete']);
  272. })->middleware([
  273. \app\middleware\AdminAuthCheck::class
  274. ]);
  275. Route::group('/question', function () {
  276. Route::get('/list', [\app\admin\controller\sys_manage\QuestionController::class, 'select']);
  277. Route::post('/add', [\app\admin\controller\sys_manage\QuestionController::class, 'insert']);
  278. Route::post('/update', [\app\admin\controller\sys_manage\QuestionController::class, 'update']);
  279. Route::delete('/delete', [\app\admin\controller\sys_manage\QuestionController::class, 'delete']);
  280. })->middleware([
  281. \app\middleware\AdminAuthCheck::class
  282. ]);
  283. Route::group('/menu', function () {
  284. Route::get('/my', [\app\admin\controller\sys_manage\MenuController::class, 'myMenu']);
  285. Route::get('/list', [\app\admin\controller\sys_manage\MenuController::class, 'select']);
  286. Route::post('/save', [\app\admin\controller\sys_manage\MenuController::class, 'save']);
  287. Route::post('/add', [\app\admin\controller\sys_manage\MenuController::class, 'insert']);
  288. Route::post('/update', [\app\admin\controller\sys_manage\MenuController::class, 'update']);
  289. Route::delete('/delete', [\app\admin\controller\sys_manage\MenuController::class, 'delete']);
  290. })->middleware([
  291. \app\middleware\AdminAuthCheck::class
  292. ]);
  293. /* 供应商管理 */
  294. Route::group('/supplier', function () {
  295. Route::get('/list', [\app\admin\controller\sys_manage\SupplierController::class, 'select']);
  296. Route::post('/add', [\app\admin\controller\sys_manage\SupplierController::class, 'insert']);
  297. Route::post('/update', [\app\admin\controller\sys_manage\SupplierController::class, 'update']);
  298. Route::delete('/delete', [\app\admin\controller\sys_manage\SupplierController::class, 'delete']);
  299. })->middleware([
  300. \app\middleware\AdminAuthCheck::class
  301. ]);
  302. /* 日志管理 */
  303. Route::group('/log', function () {
  304. Route::get('/list', [\app\admin\controller\sys_manage\LogsController::class, 'select']);
  305. })->middleware([
  306. \app\middleware\AdminAuthCheck::class
  307. ]);
  308. /* 工单管理 */
  309. Route::group('/task', function () {
  310. Route::get('/list', [\app\admin\controller\sys_manage\TaskController::class, 'select']);
  311. Route::get('/info', [\app\admin\controller\sys_manage\TaskController::class, 'info']);
  312. Route::post('/update', [\app\admin\controller\sys_manage\TaskController::class, 'update']);
  313. Route::post('/process', [\app\admin\controller\sys_manage\TaskController::class, 'process']);
  314. Route::get('/processLog', [\app\admin\controller\sys_manage\TaskController::class, 'processLog']);
  315. Route::delete('/delete', [\app\admin\controller\sys_manage\TaskController::class, 'delete']);
  316. })->middleware([
  317. \app\middleware\AdminAuthCheck::class
  318. ]);
  319. });
  320. /* 业务支撑 */
  321. Route::group('/life', function () {
  322. /* 演职人员管理 */
  323. Route::group('/cinemaPerformers', function () {
  324. Route::get('/list', [\app\admin\controller\life\CinemaPerformersController::class, 'select']);
  325. Route::post('/add', [\app\admin\controller\life\CinemaPerformersController::class, 'insert']);
  326. Route::post('/update', [\app\admin\controller\life\CinemaPerformersController::class, 'update']);
  327. Route::delete('/delete', [\app\admin\controller\life\CinemaPerformersController::class, 'delete']);
  328. })->middleware([
  329. \app\middleware\AdminAuthCheck::class
  330. ]);
  331. /* 影片类型管理 */
  332. Route::group('/cinemaIlk', function () {
  333. Route::get('/list', [\app\admin\controller\life\CinemaIlkController::class, 'select']);
  334. Route::post('/add', [\app\admin\controller\life\CinemaIlkController::class, 'insert']);
  335. Route::post('/update', [\app\admin\controller\life\CinemaIlkController::class, 'update']);
  336. Route::delete('/delete', [\app\admin\controller\life\CinemaIlkController::class, 'delete']);
  337. })->middleware([
  338. \app\middleware\AdminAuthCheck::class
  339. ]);
  340. /* 影片管理 */
  341. Route::group('/cinema', function () {
  342. Route::get('/list', [\app\admin\controller\life\CinemaController::class, 'select']);
  343. Route::post('/add', [\app\admin\controller\life\CinemaController::class, 'insert']);
  344. Route::post('/update', [\app\admin\controller\life\CinemaController::class, 'update']);
  345. Route::delete('/delete', [\app\admin\controller\life\CinemaController::class, 'delete']);
  346. })->middleware([
  347. \app\middleware\AdminAuthCheck::class
  348. ]);
  349. /* 教师管理 */
  350. Route::group('/teacher', function () {
  351. Route::get('/list', [\app\admin\controller\life\CollegeTeacherController::class, 'select']);
  352. Route::post('/add', [\app\admin\controller\life\CollegeTeacherController::class, 'insert']);
  353. Route::post('/update', [\app\admin\controller\life\CollegeTeacherController::class, 'update']);
  354. Route::delete('/delete', [\app\admin\controller\life\CollegeTeacherController::class, 'delete']);
  355. })->middleware([
  356. \app\middleware\AdminAuthCheck::class
  357. ]);
  358. /* 课程管理 */
  359. Route::group('/courses', function () {
  360. Route::get('/list', [\app\admin\controller\life\CollegeCoursesController::class, 'select']);
  361. Route::post('/add', [\app\admin\controller\life\CollegeCoursesController::class, 'insert']);
  362. Route::post('/update', [\app\admin\controller\life\CollegeCoursesController::class, 'update']);
  363. Route::delete('/delete', [\app\admin\controller\life\CollegeCoursesController::class, 'delete']);
  364. })->middleware([
  365. \app\middleware\AdminAuthCheck::class
  366. ]);
  367. /* 课程安排管理 */
  368. Route::group('/teaching', function () {
  369. Route::get('/list', [\app\admin\controller\life\CollegeTeachingController::class, 'select']);
  370. Route::post('/add', [\app\admin\controller\life\CollegeTeachingController::class, 'insert']);
  371. Route::post('/update', [\app\admin\controller\life\CollegeTeachingController::class, 'update']);
  372. Route::delete('/delete', [\app\admin\controller\life\CollegeTeachingController::class, 'delete']);
  373. })->middleware([
  374. \app\middleware\AdminAuthCheck::class
  375. ]);
  376. /* 地块管理 */
  377. Route::group('/farmLand', function () {
  378. Route::get('/list', [\app\admin\controller\life\FarmLandController::class, 'select']);
  379. Route::get('/info', [\app\admin\controller\life\FarmLandController::class, 'info']);
  380. Route::post('/add', [\app\admin\controller\life\FarmLandController::class, 'insert']);
  381. Route::post('/update', [\app\admin\controller\life\FarmLandController::class, 'update']);
  382. Route::delete('/delete', [\app\admin\controller\life\FarmLandController::class, 'delete']);
  383. })->middleware([
  384. \app\middleware\AdminAuthCheck::class
  385. ]);
  386. /* 农场商品管理 */
  387. Route::group('/farmGoods', function () {
  388. // Route::get('/list', [\app\admin\controller\life\FarmGoodsController::class, 'select']);
  389. Route::post('/add', [\app\admin\controller\life\FarmGoodsController::class, 'insert']);
  390. Route::post('/update', [\app\admin\controller\life\FarmGoodsController::class, 'update']);
  391. // Route::post('/updateStatus', [\app\admin\controller\life\FarmGoodsController::class, 'updateStatus']);
  392. // Route::delete('/delete', [\app\admin\controller\life\FarmGoodsController::class, 'delete']);
  393. })->middleware([
  394. \app\middleware\AdminAuthCheck::class
  395. ]);
  396. /* 农场套餐管理 */
  397. Route::group('/farmPackage', function () {
  398. Route::get('/list', [\app\admin\controller\life\FarmPackageController::class, 'select']);
  399. Route::post('/add', [\app\admin\controller\life\FarmPackageController::class, 'insert']);
  400. Route::post('/update', [\app\admin\controller\life\FarmPackageController::class, 'update']);
  401. Route::delete('/delete', [\app\admin\controller\life\FarmPackageController::class, 'delete']);
  402. })->middleware([
  403. \app\middleware\AdminAuthCheck::class
  404. ]);
  405. /* 农场套餐商品管理 */
  406. Route::group('/farmPackageGoods', function () {
  407. Route::get('/list', [\app\admin\controller\life\FarmPackageGoodsController::class, 'select']);
  408. Route::post('/add', [\app\admin\controller\life\FarmPackageGoodsController::class, 'insert']);
  409. Route::post('/update', [\app\admin\controller\life\FarmPackageGoodsController::class, 'update']);
  410. Route::delete('/delete', [\app\admin\controller\life\FarmPackageGoodsController::class, 'delete']);
  411. })->middleware([
  412. \app\middleware\AdminAuthCheck::class
  413. ]);
  414. /* 健康美食管理 */
  415. Route::group('/healthyFood', function () {
  416. Route::get('/list', [\app\admin\controller\life\HealthyFoodController::class, 'select']);
  417. Route::post('/add', [\app\admin\controller\life\HealthyFoodController::class, 'insert']);
  418. Route::post('/update', [\app\admin\controller\life\HealthyFoodController::class, 'update']);
  419. Route::post('/updateStatus', [\app\admin\controller\life\HealthyFoodController::class, 'updateStatus']);
  420. Route::delete('/delete', [\app\admin\controller\life\HealthyFoodController::class, 'delete']);
  421. })->middleware([
  422. \app\middleware\AdminAuthCheck::class
  423. ]);
  424. /* 康旅路线管理 */
  425. Route::group('/travelLine', function () {
  426. Route::get('/list', [\app\admin\controller\life\TravelLineController::class, 'select']);
  427. Route::post('/add', [\app\admin\controller\life\TravelLineController::class, 'insert']);
  428. Route::post('/update', [\app\admin\controller\life\TravelLineController::class, 'update']);
  429. Route::delete('/delete', [\app\admin\controller\life\TravelLineController::class, 'delete']);
  430. })->middleware([
  431. \app\middleware\AdminAuthCheck::class
  432. ]);
  433. /* 康旅排期管理 */
  434. Route::group('/travelScheduling', function () {
  435. Route::get('/list', [\app\admin\controller\life\TravelSchedulingController::class, 'select']);
  436. Route::post('/add', [\app\admin\controller\life\TravelSchedulingController::class, 'insert']);
  437. Route::post('/update', [\app\admin\controller\life\TravelSchedulingController::class, 'update']);
  438. Route::delete('/delete', [\app\admin\controller\life\TravelSchedulingController::class, 'delete']);
  439. })->middleware([
  440. \app\middleware\AdminAuthCheck::class
  441. ]);
  442. });
  443. /* 医疗 */
  444. Route::group('/medical', function () {
  445. /* 医生管理 */
  446. Route::group('/doctor', function () {
  447. Route::get('/list', [\app\admin\controller\medical\DoctorController::class, 'select']);
  448. Route::post('/add', [\app\admin\controller\medical\DoctorController::class, 'insert']);
  449. Route::post('/update', [\app\admin\controller\medical\DoctorController::class, 'update']);
  450. Route::delete('/delete', [\app\admin\controller\medical\DoctorController::class, 'delete']);
  451. Route::post('/relationUser', [\app\admin\controller\medical\DoctorController::class, 'relationUser']);
  452. })->middleware([
  453. \app\middleware\AdminAuthCheck::class
  454. ]);
  455. /* 店铺管理 */
  456. Route::group('/shop', function () {
  457. Route::get('/select', [\app\admin\controller\medical\ShopController::class, 'selectList']);
  458. Route::get('/list', [\app\admin\controller\medical\ShopController::class, 'select']);
  459. Route::post('/add', [\app\admin\controller\medical\ShopController::class, 'insert']);
  460. Route::post('/update', [\app\admin\controller\medical\ShopController::class, 'update']);
  461. Route::delete('/delete', [\app\admin\controller\medical\ShopController::class, 'delete']);
  462. })->middleware([
  463. \app\middleware\AdminAuthCheck::class
  464. ]);
  465. /* 可预约的服务管理 */
  466. Route::group('/reservationService', function () {
  467. Route::get('/list', [\app\admin\controller\medical\ReservationServiceController::class, 'select']);
  468. Route::post('/add', [\app\admin\controller\medical\ReservationServiceController::class, 'insert']);
  469. Route::post('/update', [\app\admin\controller\medical\ReservationServiceController::class, 'update']);
  470. Route::post('/updateStatus', [\app\admin\controller\medical\ReservationServiceController::class, 'updateStatus']);
  471. Route::delete('/delete', [\app\admin\controller\medical\ReservationServiceController::class, 'delete']);
  472. })->middleware([
  473. \app\middleware\AdminAuthCheck::class
  474. ]);
  475. /* 可预约的科室管理 */
  476. Route::group('/dept', function () {
  477. Route::get('/list', [\app\admin\controller\medical\DeptController::class, 'select']);
  478. Route::post('/add', [\app\admin\controller\medical\DeptController::class, 'insert']);
  479. Route::post('/update', [\app\admin\controller\medical\DeptController::class, 'update']);
  480. Route::delete('/delete', [\app\admin\controller\medical\DeptController::class, 'delete']);
  481. })->middleware([
  482. \app\middleware\AdminAuthCheck::class
  483. ]);
  484. /* 预约业务员管理 */
  485. Route::group('/salesman', function () {
  486. Route::get('/list', [\app\admin\controller\medical\SalesmanController::class, 'select']);
  487. Route::post('/add', [\app\admin\controller\medical\SalesmanController::class, 'insert']);
  488. Route::post('/update', [\app\admin\controller\medical\SalesmanController::class, 'update']);
  489. Route::post('/updateStatus', [\app\admin\controller\medical\SalesmanController::class, 'updateStatus']);
  490. Route::delete('/delete', [\app\admin\controller\medical\SalesmanController::class, 'delete']);
  491. })->middleware([
  492. \app\middleware\AdminAuthCheck::class
  493. ]);
  494. /* 医疗团队管理 */
  495. Route::group('/team', function () {
  496. Route::get('/list', [\app\admin\controller\medical\TeamController::class, 'deptList']);
  497. Route::get('/info/{id:\d+}', [\app\admin\controller\medical\TeamController::class, 'deptInfo']);
  498. Route::post('/add', [\app\admin\controller\medical\TeamController::class, 'addDept']);
  499. Route::post('/update/{id:\d+}', [\app\admin\controller\medical\TeamController::class, 'updateDept']);
  500. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\medical\TeamController::class, 'updateStatus']);
  501. Route::delete('/delete', [\app\admin\controller\medical\TeamController::class, 'delDept']);
  502. })->middleware([
  503. \app\middleware\AdminAuthCheck::class
  504. ]);
  505. });
  506. /* 服务团队管理 */
  507. Route::group('/serviceTeam', function () {
  508. Route::get('/list', [\app\admin\controller\ServiceTeamController::class, 'deptList']);
  509. Route::get('/info/{id:\d+}', [\app\admin\controller\ServiceTeamController::class, 'deptInfo']);
  510. Route::post('/add', [\app\admin\controller\ServiceTeamController::class, 'addDept']);
  511. Route::post('/update/{id:\d+}', [\app\admin\controller\ServiceTeamController::class, 'updateDept']);
  512. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\ServiceTeamController::class, 'updateStatus']);
  513. Route::delete('/delete', [\app\admin\controller\ServiceTeamController::class, 'delDept']);
  514. })->middleware([
  515. \app\middleware\AdminAuthCheck::class
  516. ]);
  517. /* 健康 */
  518. Route::group('/healthy', function () {
  519. /* 健康产品管理管理 */
  520. Route::group('/product', function () {
  521. Route::get('/list', [\app\admin\controller\healthy\ProductController::class, 'select']);
  522. Route::post('/add', [\app\admin\controller\healthy\ProductController::class, 'insert']);
  523. Route::post('/update', [\app\admin\controller\healthy\ProductController::class, 'update']);
  524. Route::post('/updateStatus', [\app\admin\controller\healthy\ProductController::class, 'updateStatus']);
  525. Route::delete('/delete', [\app\admin\controller\healthy\ProductController::class, 'delete']);
  526. })->middleware([
  527. \app\middleware\AdminAuthCheck::class
  528. ]);
  529. });
  530. /* 居家 */
  531. Route::group('/atHome', function () {
  532. /* 商品管理 */
  533. Route::group('/goods', function () {
  534. Route::get('/list', [\app\admin\controller\at_home\GoodsController::class, 'select']);
  535. Route::post('/add', [\app\admin\controller\at_home\GoodsController::class, 'insert']);
  536. Route::post('/update', [\app\admin\controller\at_home\GoodsController::class, 'update']);
  537. Route::delete('/delete', [\app\admin\controller\at_home\GoodsController::class, 'delete']);
  538. })->middleware([
  539. \app\middleware\AdminAuthCheck::class
  540. ]);
  541. });
  542. /* 资产管理 */
  543. Route::group('/asset', function () {
  544. /* 户型管理 */
  545. Route::group('/houseType', function () {
  546. Route::get('/list', [\app\admin\controller\asset\HouseTypeController::class, 'select']);
  547. Route::post('/add', [\app\admin\controller\asset\HouseTypeController::class, 'insert']);
  548. Route::post('/update', [\app\admin\controller\asset\HouseTypeController::class, 'update']);
  549. Route::delete('/delete', [\app\admin\controller\asset\HouseTypeController::class, 'delete']);
  550. })->middleware([
  551. \app\middleware\AdminAuthCheck::class
  552. ]);
  553. });
  554. Route::group('/customer', function () {
  555. Route::get('/selectList', [\app\admin\controller\customer\IndexController::class, 'selectList']);
  556. Route::get('/list', [\app\admin\controller\customer\IndexController::class, 'select']);
  557. Route::post('/add', [\app\admin\controller\customer\IndexController::class, 'insert']);
  558. Route::post('/update', [\app\admin\controller\customer\IndexController::class, 'update']);
  559. Route::delete('/delete', [\app\admin\controller\customer\IndexController::class, 'delete']);
  560. Route::post('/conversion', [\app\admin\controller\customer\IndexController::class, 'conversion']);
  561. });
  562. /* 用户管理 */
  563. Route::group('/member', function () {
  564. /* 家庭管理 */
  565. Route::group('/family', function () {
  566. Route::get('/list', [\app\admin\controller\member\FamilyController::class, 'list']);
  567. Route::get('/list/{id:\w+}', [\app\admin\controller\member\FamilyController::class, 'selectList']);
  568. Route::get('/info/{id:\w+}', [\app\admin\controller\member\FamilyController::class, 'selectInfo']);
  569. })->middleware([
  570. \app\middleware\AdminAuthCheck::class
  571. ]);
  572. Route::group('/account', function () {
  573. Route::get('/my/{id:\w+}', [\app\admin\controller\member\AccountController::class, 'my']);
  574. Route::post('/incomeExpend', [\app\admin\controller\member\AccountController::class, 'incomeExpend']);
  575. })->middleware([
  576. \app\middleware\AdminAuthCheck::class
  577. ]);
  578. Route::group('/writeOff',function(){
  579. Route::get('/list',[\app\admin\controller\member\WriteOffController::class,'list']);
  580. })->middleware([
  581. \app\middleware\AdminAuthCheck::class
  582. ]);
  583. // 用户管理
  584. Route::group('', function () {
  585. Route::get('/selectList', [\app\admin\controller\member\MemberController::class, 'selectList']);
  586. Route::get('/selectWriteOffMember', [\app\admin\controller\member\MemberController::class, 'selectWriteOffMember']);
  587. Route::get('/selectFamilyMemberList', [\app\admin\controller\member\MemberController::class, 'selectFamilyMemberList']);
  588. Route::get('/selectMemberAllQuota', [\app\admin\controller\member\MemberController::class, 'selectMemberAllQuota']);
  589. Route::get('/balanceInfo', [\app\admin\controller\member\MemberController::class, 'balanceInfo']);
  590. Route::get('/pointInfo', [\app\admin\controller\member\MemberController::class, 'pointInfo']);
  591. Route::get('/list', [\app\admin\controller\member\MemberController::class, 'list']);
  592. Route::get('/info', [\app\admin\controller\member\MemberController::class, 'info']);
  593. Route::post('/add', [\app\admin\controller\member\MemberController::class, 'add']);
  594. Route::post('/update', [\app\admin\controller\member\MemberController::class, 'update']);
  595. Route::get('/exportMember', [\app\admin\controller\member\MemberController::class, 'exportMember']);
  596. })->middleware([
  597. \app\middleware\AdminAuthCheck::class
  598. ]);
  599. // 业主管理
  600. Route::group('/owner', function () {
  601. Route::get('/selectList', [\app\admin\controller\member\OwnerController::class, 'selectList']);
  602. Route::get('/list', [\app\admin\controller\member\OwnerController::class, 'list']);
  603. Route::post('/add', [\app\admin\controller\member\OwnerController::class, 'add']);
  604. })->middleware([
  605. \app\middleware\AdminAuthCheck::class
  606. ]);
  607. /* 核销管理 */
  608. Route::group('/benefit', function () {
  609. Route::get('/list', [\app\admin\controller\member\BenefitController::class, 'select']);
  610. Route::get('/my', [\app\admin\controller\member\BenefitController::class, 'my']);
  611. Route::get('/service', [\app\admin\controller\member\BenefitController::class, 'service']);
  612. Route::post('/add', [\app\admin\controller\member\BenefitController::class, 'insert']);
  613. Route::post('/update', [\app\admin\controller\member\BenefitController::class, 'update']);
  614. Route::delete('/delete', [\app\admin\controller\member\BenefitController::class, 'delete']);
  615. })->middleware([
  616. \app\middleware\AdminAuthCheck::class
  617. ]);
  618. /* 档案管理 */
  619. Route::group('/wellnessRecord', function () {
  620. Route::get('/my/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'my']);
  621. Route::get('/advice/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'advice']);
  622. Route::get('/archives/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'archives']);
  623. Route::get('/checkup/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'checkup']);
  624. Route::get('/visit/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\WellnessRecordController::class, 'visit']);
  625. Route::get('/list', [\app\admin\controller\member\WellnessRecordController::class, 'select']);
  626. Route::get('/info', [\app\admin\controller\member\WellnessRecordController::class, 'info']);
  627. Route::post('/add', [\app\admin\controller\member\WellnessRecordController::class, 'insert']);
  628. Route::post('/update', [\app\admin\controller\member\WellnessRecordController::class, 'update']);
  629. Route::delete('/delete', [\app\admin\controller\member\WellnessRecordController::class, 'delete']);
  630. })->middleware([
  631. \app\middleware\AdminAuthCheck::class
  632. ]);
  633. /* 体检管理 */
  634. Route::group('/checkup', function () {
  635. Route::get('/list', [\app\admin\controller\member\CheckupController::class, 'select']);
  636. Route::post('/add', [\app\admin\controller\member\CheckupController::class, 'insert']);
  637. Route::post('/update', [\app\admin\controller\member\CheckupController::class, 'update']);
  638. Route::delete('/delete', [\app\admin\controller\member\CheckupController::class, 'delete']);
  639. })->middleware([
  640. \app\middleware\AdminAuthCheck::class
  641. ]);
  642. /* 来访管理 */
  643. Route::group('/visiting', function () {
  644. Route::get('/list', [\app\admin\controller\member\VisitingController::class, 'select']);
  645. Route::post('/add', [\app\admin\controller\member\VisitingController::class, 'insert']);
  646. Route::post('/update', [\app\admin\controller\member\VisitingController::class, 'update']);
  647. Route::delete('/delete', [\app\admin\controller\member\VisitingController::class, 'delete']);
  648. })->middleware([
  649. \app\middleware\AdminAuthCheck::class
  650. ]);
  651. /* 设备管理 */
  652. Route::group('/device', function () {
  653. Route::get('/{id:[0-9a-zA-Z]+}', [\app\admin\controller\member\MemberController::class, 'device']);
  654. Route::post('/add', [\app\admin\controller\member\MemberController::class, 'addDevice']);
  655. Route::post('/update', [\app\admin\controller\member\MemberController::class, 'updateDevice']);
  656. Route::delete('/delete', [\app\admin\controller\member\MemberController::class, 'deleteDevice']);
  657. })->middleware([
  658. \app\middleware\AdminAuthCheck::class
  659. ]);
  660. /* 等级计价规则 */
  661. Route::group('/rulePricing', function () {
  662. Route::get('/selectList', [\app\admin\controller\member\RulePricingController::class, 'selectList']);
  663. Route::get('/list', [\app\admin\controller\member\RulePricingController::class, 'select']);
  664. Route::post('/add', [\app\admin\controller\member\RulePricingController::class, 'insert']);
  665. Route::post('/update', [\app\admin\controller\member\RulePricingController::class, 'update']);
  666. Route::delete('/delete', [\app\admin\controller\member\RulePricingController::class, 'delete']);
  667. });
  668. /* 等级 */
  669. Route::group('/role', function () {
  670. Route::get('/list', [\app\admin\controller\member\RoleController::class, 'select']);
  671. Route::post('/add', [\app\admin\controller\member\RoleController::class, 'insert']);
  672. Route::post('/update', [\app\admin\controller\member\RoleController::class, 'update']);
  673. Route::delete('/delete', [\app\admin\controller\member\RoleController::class, 'delete']);
  674. Route::delete('/selectList', [\app\admin\controller\member\RoleController::class, 'selectList']);
  675. });
  676. /* 增值包-主记录 */
  677. Route::group('/ruleAdded', function () {
  678. Route::get('/list', [\app\admin\controller\member\RuleAddedController::class, 'select']);
  679. Route::post('/add', [\app\admin\controller\member\RuleAddedController::class, 'insert']);
  680. Route::post('/update', [\app\admin\controller\member\RuleAddedController::class, 'update']);
  681. Route::delete('/delete', [\app\admin\controller\member\RuleAddedController::class, 'delete']);
  682. });
  683. /* 增值包-组件 */
  684. Route::group('/ruleAddedComponent', function () {
  685. Route::get('/list', [\app\admin\controller\member\RuleAddedComponentController::class, 'select']);
  686. Route::post('/add', [\app\admin\controller\member\RuleAddedComponentController::class, 'insert']);
  687. Route::post('/update', [\app\admin\controller\member\RuleAddedComponentController::class, 'update']);
  688. Route::delete('/delete', [\app\admin\controller\member\RuleAddedComponentController::class, 'delete']);
  689. });
  690. /* 会员额度明细 */
  691. Route::group('/quota', function () {
  692. Route::get('/list', [\app\admin\controller\member\QuotaController::class, 'select']);
  693. Route::get('/writeOffList', [\app\admin\controller\member\QuotaController::class, 'writeOffList']);
  694. Route::post('/add', [\app\admin\controller\member\QuotaController::class, 'insert']);
  695. Route::post('/update', [\app\admin\controller\member\QuotaController::class, 'update']);
  696. Route::post('/writeOff', [\app\admin\controller\member\QuotaController::class, 'writeOff']);
  697. Route::delete('/delete', [\app\admin\controller\member\QuotaController::class, 'delete']);
  698. });
  699. });
  700. /* 营销管理 */
  701. Route::group('/marketing', function () {
  702. /* 营业场所管理(独立表) */
  703. Route::group('/premises', function () {
  704. Route::get('/list', [\app\admin\controller\marketing\PremisesController::class, 'select']);
  705. Route::post('/add', [\app\admin\controller\marketing\PremisesController::class, 'insert']);
  706. Route::post('/update', [\app\admin\controller\marketing\PremisesController::class, 'update']);
  707. Route::delete('/delete', [\app\admin\controller\marketing\PremisesController::class, 'delete']);
  708. })->middleware([
  709. \app\middleware\AdminAuthCheck::class
  710. ]);
  711. /* 营业场所管理(部门表) */
  712. Route::group('/deptPremises', function () {
  713. Route::get('/selectList', [\app\admin\controller\marketing\DeptPremisesController::class, 'selectList']);
  714. Route::get('/list', [\app\admin\controller\marketing\DeptPremisesController::class, 'select']);
  715. Route::get('/info', [\app\admin\controller\marketing\DeptPremisesController::class, 'info']);
  716. Route::post('/add', [\app\admin\controller\marketing\DeptPremisesController::class, 'insert']);
  717. Route::post('/update', [\app\admin\controller\marketing\DeptPremisesController::class, 'update']);
  718. Route::delete('/delete', [\app\admin\controller\marketing\DeptPremisesController::class, 'delete']);
  719. })->middleware([
  720. \app\middleware\AdminAuthCheck::class
  721. ]);
  722. /* 营销团队管理 */
  723. Route::group('/team', function () {
  724. Route::get('/list', [\app\admin\controller\marketing\TeamController::class, 'deptList']);
  725. Route::get('/info/{id:\d+}', [\app\admin\controller\marketing\TeamController::class, 'deptInfo']);
  726. Route::post('/add', [\app\admin\controller\marketing\TeamController::class, 'addDept']);
  727. Route::post('/update/{id:\d+}', [\app\admin\controller\marketing\TeamController::class, 'updateDept']);
  728. Route::post('/updateStatus/{id:\d+}', [\app\admin\controller\marketing\TeamController::class, 'updateStatus']);
  729. Route::delete('/delete', [\app\admin\controller\marketing\TeamController::class, 'delDept']);
  730. })->middleware([
  731. \app\middleware\AdminAuthCheck::class
  732. ]);
  733. });
  734. /* 康养设备管理 */
  735. Route::group('/device', function () {
  736. Route::group('/ledger', function () {
  737. Route::get('/list', [\app\admin\controller\device\LedgerController::class, 'select']);
  738. Route::get('/select', [\app\admin\controller\device\LedgerController::class, 'selectList']);
  739. Route::post('/add', [\app\admin\controller\device\LedgerController::class, 'insert']);
  740. Route::post('/update', [\app\admin\controller\device\LedgerController::class, 'update']);
  741. Route::delete('/delete', [\app\admin\controller\device\LedgerController::class, 'delete']);
  742. })->middleware([
  743. \app\middleware\AdminAuthCheck::class
  744. ]);
  745. Route::group('', function () {
  746. Route::get('/list', [\app\admin\controller\device\DeviceController::class, 'select']);
  747. Route::get('/select', [\app\admin\controller\device\DeviceController::class, 'selectList']);
  748. Route::post('/add', [\app\admin\controller\device\DeviceController::class, 'insert']);
  749. Route::post('/update', [\app\admin\controller\device\DeviceController::class, 'update']);
  750. Route::delete('/delete', [\app\admin\controller\device\DeviceController::class, 'delete']);
  751. })->middleware([
  752. \app\middleware\AdminAuthCheck::class
  753. ]);
  754. Route::group('/meta', function () {
  755. Route::get('/list', [\app\admin\controller\device\MetadataController::class, 'select']);
  756. Route::get('/select', [\app\admin\controller\device\MetadataController::class, 'selectList']);
  757. Route::post('/add', [\app\admin\controller\device\MetadataController::class, 'insert']);
  758. Route::post('/update', [\app\admin\controller\device\MetadataController::class, 'update']);
  759. Route::delete('/delete', [\app\admin\controller\device\MetadataController::class, 'delete']);
  760. })->middleware([
  761. \app\middleware\AdminAuthCheck::class
  762. ]);
  763. });
  764. /* 优惠券管理 */
  765. Route::group('/coupon', function () {
  766. Route::group('', function () {
  767. Route::get('/list', [\app\admin\controller\coupon\CouponController::class, 'select']);
  768. Route::get('/selectList', [\app\admin\controller\coupon\CouponController::class, 'selectList']);
  769. Route::post('/add', [\app\admin\controller\coupon\CouponController::class, 'insert']);
  770. Route::post('/update', [\app\admin\controller\coupon\CouponController::class, 'update']);
  771. Route::delete('/delete', [\app\admin\controller\coupon\CouponController::class, 'delete']);
  772. })->middleware([
  773. \app\middleware\AdminAuthCheck::class
  774. ]);
  775. });
  776. /* 订单管理 */
  777. Route::group('/order', function () {
  778. // 全部订单
  779. Route::group('/whole', function () {
  780. Route::get('/list', [\app\admin\controller\order\WholeController::class, 'select']);
  781. Route::get('/sheet', [\app\admin\controller\order\WholeController::class, 'sheet']);
  782. Route::get('/update', [\app\admin\controller\order\WholeController::class, 'update']);
  783. Route::post('/delivery', [\app\admin\controller\order\WholeController::class, 'delivery']);
  784. Route::get('/myOrder', [\app\admin\controller\order\WholeController::class, 'myOrder']);
  785. Route::post('/add', [\app\admin\controller\order\WholeController::class, 'insert']);
  786. Route::post('/delete', [\app\admin\controller\order\WholeController::class, 'delete']);
  787. Route::post('/doRefund', [\app\admin\controller\order\WholeController::class, 'doRefund']);
  788. Route::post('/writeOffDishes', [\app\admin\controller\order\WholeController::class, 'writeOffDishes']);
  789. })->middleware([
  790. \app\middleware\AdminAuthCheck::class
  791. ]);
  792. // 全部订单
  793. Route::group('/pending', function () {
  794. Route::get('/list', [\app\admin\controller\order\PendingController::class, 'select']);
  795. Route::get('/sheet', [\app\admin\controller\order\PendingController::class, 'sheet']);
  796. })->middleware([
  797. \app\middleware\AdminAuthCheck::class
  798. ]);
  799. // 售后订单
  800. Route::group('/return', function () {
  801. Route::get('/list', [\app\admin\controller\order\ReturnController::class, 'select']);
  802. Route::get('/sheet', [\app\admin\controller\order\ReturnController::class, 'sheet']);
  803. })->middleware([
  804. \app\middleware\AdminAuthCheck::class
  805. ]);
  806. // 已完成订单
  807. Route::group('/complete', function () {
  808. Route::get('/list', [\app\admin\controller\order\CompleteController::class, 'select']);
  809. Route::get('/sheet', [\app\admin\controller\order\CompleteController::class, 'sheet']);
  810. })->middleware([
  811. \app\middleware\AdminAuthCheck::class
  812. ]);
  813. // 预约订单
  814. Route::group('/appointment', function () {
  815. Route::get('/list', [\app\admin\controller\order\AppointmentController::class, 'select']);
  816. Route::get('/add', [\app\admin\controller\order\AppointmentController::class, 'add']);
  817. Route::get('/update', [\app\admin\controller\order\AppointmentController::class, 'update']);
  818. Route::post('/confirm/{id:[0-9a-zA-Z]+}', [\app\admin\controller\order\AppointmentController::class, 'confirm']);
  819. Route::get('/getTimes', [\app\admin\controller\order\AppointmentController::class, 'getTimes']);
  820. })->middleware([
  821. \app\middleware\AdminAuthCheck::class
  822. ]);
  823. // 退款管理
  824. Route::group('/refund', function () {
  825. Route::get('/list', [\app\admin\controller\order\RefundController::class, 'select']);
  826. Route::get('/sheet', [\app\admin\controller\order\RefundController::class, 'sheet']);
  827. })->middleware([
  828. \app\middleware\AdminAuthCheck::class
  829. ]);
  830. // 支付记录
  831. Route::group('/payDetail', function () {
  832. Route::get('/list', [\app\admin\controller\order\PayDetailController::class, 'select']);
  833. Route::get('/goodsOrder',[\app\admin\controller\order\PayDetailController::class,'goodsOrder']);
  834. Route::post('/insertRecharge',[\app\admin\controller\order\PayDetailController::class,'insertRecharge']);
  835. // Route::get('/info', [\app\admin\controller\order\AppointmentController::class, 'info']);
  836. });
  837. });
  838. /* 统计 */
  839. Route::group('/statistics', function () {
  840. Route::get('/member', [\app\admin\controller\statistics\MemberController::class, 'index']);
  841. })->middleware([
  842. \app\middleware\AdminAuthCheck::class
  843. ]);
  844. /* 客户端相关数据 */
  845. Route::group('/client', function () {
  846. Route::group('', function () {
  847. // 我的关注
  848. Route::get('/favorite/list', [\app\admin\controller\client\FavoriteController::class, 'select']);
  849. // 我的收藏
  850. Route::get('/collection/list', [\app\admin\controller\client\CollectionController::class, 'select']);
  851. // 我的积分
  852. Route::get('/points/list', [\app\admin\controller\client\PointsController::class, 'select']);
  853. // 我的评价
  854. Route::get('/evaluate/list', [\app\admin\controller\client\EvaluateController::class, 'select']);
  855. // 我的购物车
  856. Route::get('/cart/list', [\app\admin\controller\client\CartController::class, 'select']);
  857. // 我的优惠券
  858. Route::get('/coupon/list', [\app\admin\controller\client\CouponController::class, 'select']);
  859. // 我的浏览数据
  860. Route::get('/browse/list', [\app\admin\controller\client\BrowseController::class, 'select']);
  861. })->middleware([
  862. \app\middleware\AdminAuthCheck::class
  863. ]);
  864. /* 消息管理 */
  865. Route::group('/message', function () {
  866. Route::group('', function () {
  867. Route::get('/list', [\app\admin\controller\client\MessageController::class, 'select']);
  868. Route::post('/add', [\app\admin\controller\client\MessageController::class, 'insert']);
  869. Route::post('/update', [\app\admin\controller\client\MessageController::class, 'update']);
  870. Route::delete('/delete', [\app\admin\controller\client\MessageController::class, 'delete']);
  871. })->middleware([
  872. \app\middleware\AdminAuthCheck::class
  873. ]);
  874. });
  875. /* APP参数管理 */
  876. Route::group('/appParams', function () {
  877. Route::group('', function () {
  878. Route::get('/list', [\app\admin\controller\client\AppParamsController::class, 'select']);
  879. Route::post('/add', [\app\admin\controller\client\AppParamsController::class, 'insert']);
  880. Route::post('/update', [\app\admin\controller\client\AppParamsController::class, 'update']);
  881. Route::delete('/delete', [\app\admin\controller\client\AppParamsController::class, 'delete']);
  882. })->middleware([
  883. \app\middleware\AdminAuthCheck::class
  884. ]);
  885. });
  886. });
  887. Route::group('/dashboard', function () {
  888. Route::get('/', [\app\admin\controller\dashboard\DashboardController::class, 'index']);
  889. });
  890. /* 储值卡管理 */
  891. Route::group('/card', function () {
  892. /* 卡管理 */
  893. Route::group('/card', function () {
  894. Route::get('/list', [\app\admin\controller\card\CardController::class, 'list']);
  895. Route::get('/info', [\app\admin\controller\card\CardController::class, 'info']);
  896. Route::get('/exportCard', [\app\admin\controller\card\CardController::class, 'exportCard']);
  897. Route::delete('/delete', [\app\admin\controller\card\CardController::class, 'delete']);
  898. Route::post('/save', [\app\admin\controller\card\CardController::class, 'save']);
  899. Route::get('/status', [\app\admin\controller\card\CardController::class, 'getStatusList']);
  900. })->middleware([
  901. \app\middleware\AdminAuthCheck::class
  902. ]);
  903. /* 卡批次管理 */
  904. Route::group('/cardBatch', function () {
  905. Route::post('/add', [\app\admin\controller\card\CardBatchController::class, 'insert']);
  906. Route::post('/save', [\app\admin\controller\card\CardBatchController::class, 'save']);
  907. Route::delete('/delete', [\app\admin\controller\card\CardBatchController::class, 'delete']);
  908. Route::get('/list', [\app\admin\controller\card\CardBatchController::class, 'list']);
  909. Route::get('/info', [\app\admin\controller\card\CardBatchController::class, 'info']);
  910. Route::get('/status', [\app\admin\controller\card\CardBatchController::class, 'getStatusList']);
  911. })->middleware([
  912. \app\middleware\AdminAuthCheck::class
  913. ]);
  914. });
  915. });
  916. Route::group('/notify', function () {
  917. Route::post('/recharge/paySuccess', [\app\admin\controller\notify\RechargeController::class, 'disposePaySuccess']);
  918. });