admin.php 60 KB

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