admin.php 60 KB

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