admin.php 61 KB

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