admin - 副本.php 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  1. <?php
  2. use Webman\Route;
  3. //v1版本
  4. Route::group('/v1', function () {
  5. //管理员登录
  6. Route::post('/system/login', [app\admin\controller\index\Login::class, 'login']);
  7. //获取图形验证码
  8. Route::get('/system/get_captcha', [app\admin\controller\index\Login::class, 'getCaptcha']);
  9. //文件上传
  10. Route::post('/upload/file', [app\admin\controller\UploadFile::class, 'uploadFile']);
  11. //智能设备数据插入
  12. Route::post('/equipment/log', [app\admin\controller\index\Admin::class, 'logInsert']);
  13. //智能设备数据插入
  14. Route::post('/emqx/log', [app\admin\controller\index\Admin::class, 'emqxLog']);
  15. //获取业务控制器列表
  16. Route::get('/business/list', [app\admin\controller\index\Admin::class, 'businessList']);
  17. //更新业务控制器
  18. Route::post('/business/update', [app\admin\controller\index\Admin::class, 'businessUpdate']);
  19. //业务控制器插入
  20. Route::post('/business/insert', [app\admin\controller\index\Admin::class, 'businessInsert']);
  21. //获取页面及地址
  22. Route::get('/get/page/list', [app\admin\controller\index\Index::class, 'getPageList']);
  23. //菜单列表
  24. Route::get('/system/menu', [app\admin\controller\menu\Menu::class, 'getHomeMenuList'])->middleware([
  25. app\admin\middleware\JwtAuthMiddleware::class, //鉴权登录
  26. ]);
  27. Route::group('/system/', function (){
  28. //修改密码
  29. Route::post('update/pwd', [app\admin\controller\index\Login::class, 'updatePwd']);
  30. //退出登录
  31. Route::post('login/out', [app\admin\controller\index\Login::class, 'loginOut']);
  32. //系统设置分类列表
  33. Route::get('get/classify', [app\admin\controller\index\Config::class, 'getClassify']);
  34. //系统设置分类添加
  35. Route::post('insert/classify', [app\admin\controller\index\Config::class, 'insertClassify']);
  36. //系统设置分类编辑
  37. Route::post('update/classify', [app\admin\controller\index\Config::class, 'updateClassify']);
  38. //系统设置分类删除/状态修改
  39. Route::post('del_up/classify', [app\admin\controller\index\Config::class, 'delUpClassify']);
  40. //系统设置分类详情
  41. Route::get('get/classify_info', [app\admin\controller\index\Config::class, 'getClassifyInfo']);
  42. //系统管理员日志
  43. Route::get('permlog/list', [app\admin\controller\index\SystemPermLog::class, 'getLogList']);
  44. //H5设置详情
  45. Route::get('get/h5config', [app\admin\controller\index\H5Config::class, 'getConfig']);
  46. //H5设置修改
  47. Route::post('update/h5config', [app\admin\controller\index\H5Config::class, 'updateConfig']);
  48. })->middleware([
  49. app\admin\middleware\JwtAuthMiddleware::class, //鉴权登录
  50. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  51. ]);
  52. //管理员
  53. Route::group('/admin', function (){
  54. //管理员列表
  55. Route::get('/get/list', [app\admin\controller\index\Admin::class, 'getAdminList']);
  56. //管理员详情
  57. Route::get('/get/info', [app\admin\controller\index\Admin::class, 'adminInfo']);
  58. //管理员编辑
  59. Route::post('/update', [app\admin\controller\index\Admin::class, 'updateAdmin']);
  60. //管理员删除
  61. Route::get('/get/delete', [app\admin\controller\index\Admin::class, 'delAdmin']);
  62. //管理员添加
  63. Route::post('/insert', [app\admin\controller\index\Admin::class, 'insertAdmin']);
  64. //修改管理员状态
  65. Route::get('/get/status', [app\admin\controller\index\Admin::class, 'updateStatus']);
  66. })->middleware([
  67. app\admin\middleware\JwtAuthMiddleware::class, //鉴权登录
  68. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  69. ]);
  70. //角色
  71. Route::group('/role', function (){
  72. //角色列表
  73. Route::get('/get/list', [app\admin\controller\role\Role::class, 'getRoleList']);
  74. //所有角色
  75. Route::get('/get/all', [app\admin\controller\role\Role::class, 'getRoleAll']);
  76. //角色详情
  77. Route::get('/get/info', [app\admin\controller\role\Role::class, 'roleInfo']);
  78. //角色编辑
  79. Route::post('/update', [app\admin\controller\role\Role::class, 'updateRole']);
  80. //角色删除
  81. Route::get('/get/delete', [app\admin\controller\role\Role::class, 'delRole']);
  82. //角色添加
  83. Route::post('/insert', [app\admin\controller\role\Role::class, 'addRole']);
  84. //修改角色状态
  85. Route::get('/get/status', [app\admin\controller\role\Role::class, 'updateStatus']);
  86. })->middleware([
  87. app\admin\middleware\JwtAuthMiddleware::class, //鉴权登录
  88. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  89. ]);
  90. //智能产品
  91. Route::group('/product', function (){
  92. //产品列表
  93. Route::get('/get/list', [app\admin\controller\intelligence\Product::class, 'getProductList']);
  94. //产品详情
  95. Route::get('/get/info', [app\admin\controller\intelligence\Product::class, 'productInfo']);
  96. //产品编辑
  97. Route::post('/update', [app\admin\controller\intelligence\Product::class, 'updateProduct']);
  98. //产品删除
  99. Route::get('/get/delete', [app\admin\controller\intelligence\Product::class, 'delProduct']);
  100. //产品添加
  101. Route::post('/insert', [app\admin\controller\intelligence\Product::class, 'addProduct']);
  102. })->middleware([
  103. app\admin\middleware\JwtAuthMiddleware::class, //鉴权登录
  104. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  105. ]);
  106. //智能产品分类
  107. Route::group('/category', function (){
  108. //产品分类列表
  109. Route::get('/get/list', [app\admin\controller\intelligence\Category::class, 'getCategoryList']);
  110. //产品分类详情
  111. Route::get('/get/info', [app\admin\controller\intelligence\Category::class, 'categoryInfo']);
  112. //产品分类编辑
  113. Route::post('/update', [app\admin\controller\intelligence\Category::class, 'updateCategory']);
  114. //产品分类删除
  115. Route::get('/get/delete', [app\admin\controller\intelligence\Category::class, 'delCategory']);
  116. //产品分类添加
  117. Route::post('/insert', [app\admin\controller\intelligence\Category::class, 'addCategory']);
  118. //所有产品分类
  119. Route::get('/get/all', [app\admin\controller\intelligence\Category::class, 'getCategoryAll']);
  120. })->middleware([
  121. app\admin\middleware\JwtAuthMiddleware::class, //鉴权登录
  122. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  123. ]);
  124. //菜单
  125. Route::group('/menu', function (){
  126. //菜单列表
  127. Route::get('/get/list', [app\admin\controller\menu\Menu::class, 'getMenuList']);
  128. //菜单详情
  129. Route::get('/get/info', [app\admin\controller\menu\Menu::class, 'menuInfo']);
  130. //菜单编辑
  131. Route::post('/update', [app\admin\controller\menu\Menu::class, 'updateMenu']);
  132. //菜单删除
  133. Route::get('/get/delete', [app\admin\controller\menu\Menu::class, 'delMenu']);
  134. //菜单添加
  135. Route::post('/insert', [app\admin\controller\menu\Menu::class, 'addMenu']);
  136. //三级菜单
  137. Route::get('/get/level', [app\admin\controller\menu\Menu::class, 'menuLevel']);
  138. //三级菜单
  139. Route::get('/levels', [app\admin\controller\menu\Menu::class, 'secondLevel']);
  140. //修改菜单状态
  141. Route::get('/get/status', [app\admin\controller\menu\Menu::class, 'updateStatus']);
  142. })->middleware([
  143. app\admin\middleware\JwtAuthMiddleware::class, //鉴权登录
  144. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  145. ]);
  146. //权益包
  147. Route::group('/package', function (){
  148. //权益包列表
  149. Route::get('/get/list', [app\admin\controller\package\Package::class, 'getPackageList']);
  150. //添加任务包
  151. Route::post('/add', [app\admin\controller\package\Package::class, 'addPackage']);
  152. //删除/下架权益包
  153. Route::get('/del', [app\admin\controller\package\Package::class, 'delPackage']);
  154. //修改权益包
  155. Route::post('/update', [app\admin\controller\package\Package::class, 'updatePackage']);
  156. //权益包详情
  157. Route::get('/info', [app\admin\controller\package\Package::class, 'infoPackage']);
  158. })->middleware([
  159. app\admin\middleware\JwtAuthMiddleware::class,
  160. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  161. ]);
  162. //权益包产品
  163. Route::group('/goods', function (){
  164. //产品列表
  165. Route::get('/get/list', [app\admin\controller\package\PackageGoods::class, 'getPackageGoodsList']);
  166. //添加产品
  167. Route::post('/add', [app\admin\controller\package\PackageGoods::class, 'addPackageGoods']);
  168. //删除/下架权益包
  169. Route::get('/del', [app\admin\controller\package\PackageGoods::class, 'delPackageGoods']);
  170. //修改权益包
  171. Route::post('/update', [app\admin\controller\package\PackageGoods::class, 'updatePackageGoods']);
  172. //权益包详情
  173. Route::get('/info', [app\admin\controller\package\PackageGoods::class, 'infoPackageGoods']);
  174. //获取订单列表
  175. Route::get('/order/list', [app\admin\controller\package\PackageOrder::class, 'getPackageOrderList']);
  176. //获取订单详情
  177. Route::get('/order/info', [app\admin\controller\package\PackageOrder::class, 'infoPackageOrder']);
  178. //支付状态
  179. Route::post('/order/paystatus', [app\admin\controller\package\PackageOrder::class, 'updatePayStatus']);
  180. //产品分类列表
  181. Route::get('/category/list', [app\admin\controller\package\PackageGoodsCategory::class, 'getPackageGoodsCategoryList']);
  182. //添加产品分类
  183. Route::post('/category/add', [app\admin\controller\package\PackageGoodsCategory::class, 'addPackageGoodsCategory']);
  184. //删除产品分类
  185. Route::get('/category/del', [app\admin\controller\package\PackageGoodsCategory::class, 'delPackageGoodsCategory']);
  186. //修改产品分类
  187. Route::post('/category/update', [app\admin\controller\package\PackageGoodsCategory::class, 'updatePackageGoodsCategory']);
  188. //产品分类详情
  189. Route::get('/category/info', [app\admin\controller\package\PackageGoodsCategory::class, 'infoPackageGoodsCategory']);
  190. })->middleware([
  191. app\admin\middleware\JwtAuthMiddleware::class,
  192. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  193. ]);
  194. //医疗产品
  195. Route::group('/medical_product', function (){
  196. //产品列表
  197. Route::get('/product/list', [app\admin\controller\medical\Product::class, 'getProductList']);
  198. //添加产品
  199. Route::post('/product/add', [app\admin\controller\medical\Product::class, 'addProduct']);
  200. //删除产品
  201. Route::get('/product/del', [app\admin\controller\medical\Product::class, 'delProduct']);
  202. //修改产品
  203. Route::post('/product/update', [app\admin\controller\medical\Product::class, 'updateProduct']);
  204. //产品详情
  205. Route::get('/product/info', [app\admin\controller\medical\Product::class, 'infoProduct']);
  206. //产品上/下架
  207. Route::get('/product/show', [app\admin\controller\medical\Product::class, 'showProduct']);
  208. //订单列表
  209. Route::get('/order/list', [app\admin\controller\medical\ProductOrder::class, 'getOrderList']);
  210. //订单详情
  211. Route::get('/order/info', [app\admin\controller\medical\ProductOrder::class, 'infoPackageOrder']);
  212. //修改订单支付状态
  213. Route::post('/order/paystatus', [app\admin\controller\medical\ProductOrder::class, 'updatePayStatus']);
  214. //预约服务列表
  215. Route::get('/ment/list', [app\admin\controller\medical\Appointment::class, 'getMentList']);
  216. //添加预约服务
  217. Route::post('/ment/add', [app\admin\controller\medical\Appointment::class, 'addMent']);
  218. //修改
  219. Route::post('/ment/update', [app\admin\controller\medical\Appointment::class, 'updateMent']);
  220. //详情
  221. Route::get('/ment/info', [app\admin\controller\medical\Appointment::class, 'infoMent']);
  222. //删除
  223. Route::get('/ment/del', [app\admin\controller\medical\Appointment::class, 'delMent']);
  224. //上下架
  225. Route::get('/ment/show', [app\admin\controller\medical\Appointment::class, 'showMent']);
  226. //预约记录
  227. Route::get('/ment_log/index', [app\admin\controller\medical\Appointment::class, 'mentLogList']);
  228. //预约详情
  229. Route::get('/ment_log/info', [app\admin\controller\medical\Appointment::class, 'mentLogInfo']);
  230. //预约记录支付状态
  231. Route::post('/ment_log/paystatus', [app\admin\controller\medical\Appointment::class, 'updatePayStatus']);
  232. })->middleware([
  233. app\admin\middleware\JwtAuthMiddleware::class,
  234. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  235. ]);
  236. //运费模板
  237. Route::group('/postage', function (){
  238. //模板列表
  239. Route::get('/get/list', [app\admin\controller\medical\Postage::class, 'getPostagetList']);
  240. //添加模板
  241. Route::post('/add', [app\admin\controller\medical\Postage::class, 'addPostage']);
  242. //删除模板
  243. Route::get('/del', [app\admin\controller\medical\Postage::class, 'delPostage']);
  244. //修改模板
  245. Route::post('/update', [app\admin\controller\medical\Postage::class, 'updatePostage']);
  246. //模板详情
  247. Route::get('/info', [app\admin\controller\medical\Postage::class, 'infoPostage']);
  248. //修改状态
  249. Route::get('/show', [app\admin\controller\medical\Postage::class, 'showPostage']);
  250. })->middleware([
  251. app\admin\middleware\JwtAuthMiddleware::class,
  252. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  253. ]);
  254. //医疗模块--预约服务业务员
  255. Route::group('/salesman', function (){
  256. //业务员列表
  257. Route::get('/get/list', [app\admin\controller\medical\Salesman::class, 'getSalesmanList']);
  258. //业务员详情
  259. Route::get('/get/info', [app\admin\controller\medical\Salesman::class, 'salesmanInfo']);
  260. //业务员编辑
  261. Route::post('/update', [app\admin\controller\medical\Salesman::class, 'updateSalesman']);
  262. //业务员删除
  263. Route::get('/get/delete', [app\admin\controller\medical\Salesman::class, 'delSalesman']);
  264. //业务员添加
  265. Route::post('/insert', [app\admin\controller\medical\Salesman::class, 'addSalesman']);
  266. //业务员状态修改
  267. Route::get('/get/status', [app\admin\controller\medical\Salesman::class, 'updateStatus']);
  268. })->middleware([
  269. app\admin\middleware\JwtAuthMiddleware::class,
  270. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  271. ]);
  272. //医疗模块--预约科目
  273. Route::group('/subject', function (){
  274. //科目列表
  275. Route::get('/get/list', [app\admin\controller\medical\Subject::class, 'getSubjectList']);
  276. //科目详情
  277. Route::get('/get/info', [app\admin\controller\medical\Subject::class, 'subjectInfo']);
  278. //科目编辑
  279. Route::post('/update', [app\admin\controller\medical\Subject::class, 'updateSubject']);
  280. //科目删除
  281. Route::get('/get/delete', [app\admin\controller\medical\Subject::class, 'delSubject']);
  282. //科目添加
  283. Route::post('/insert', [app\admin\controller\medical\Subject::class, 'addSubject']);
  284. //医生添加科目列表选择列表
  285. Route::get('/doctor/list', [app\admin\controller\medical\Subject::class, 'getDoctorSubjectList']);
  286. })->middleware([
  287. app\admin\middleware\JwtAuthMiddleware::class,
  288. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  289. ]);
  290. //店铺管理
  291. Route::group('/shop', function (){
  292. //模板列表
  293. Route::get('/get/list', [app\admin\controller\medical\Shop::class, 'getShopList']);
  294. //健康模块商品列表
  295. Route::get('/get/healthy/list', [app\admin\controller\medical\Shop::class, 'getHealthyShopList']);
  296. //添加模板
  297. Route::post('/add', [app\admin\controller\medical\Shop::class, 'addShop']);
  298. //删除模板
  299. Route::get('/del', [app\admin\controller\medical\Shop::class, 'delShop']);
  300. //修改模板
  301. Route::post('/update', [app\admin\controller\medical\Shop::class, 'updateShop']);
  302. //模板详情
  303. Route::get('/info', [app\admin\controller\medical\Shop::class, 'infoShop']);
  304. //修改状态
  305. Route::get('/show', [app\admin\controller\medical\Shop::class, 'showShop']);
  306. //根据分类id查询店铺列表
  307. Route::get('/category/list', [app\admin\controller\medical\Shop::class, 'getCategoryShop']);
  308. //店铺列表子集接口
  309. Route::get('/categorys/list', [app\admin\controller\medical\Shop::class, 'getCategorysShop']);
  310. })->middleware([
  311. app\admin\middleware\JwtAuthMiddleware::class,
  312. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  313. ]);
  314. //店铺分类
  315. Route::group('/shop_category', function (){
  316. //分类列表
  317. Route::get('/get/list', [app\admin\controller\medical\ShopCategory::class, 'getShopCategoryList']);
  318. //添加分类
  319. Route::post('/add', [app\admin\controller\medical\ShopCategory::class, 'addShopCategory']);
  320. //删除分类
  321. Route::get('/del', [app\admin\controller\medical\ShopCategory::class, 'delShopCategory']);
  322. //修改分类
  323. Route::post('/update', [app\admin\controller\medical\ShopCategory::class, 'updateShopCategory']);
  324. //分类详情
  325. Route::get('/info', [app\admin\controller\medical\ShopCategory::class, 'infoShopCategory']);
  326. //根据店铺查询分类列表
  327. Route::get('/shop/list', [app\admin\controller\medical\ShopCategory::class, 'getCategoryList']);
  328. })->middleware([
  329. app\admin\middleware\JwtAuthMiddleware::class,
  330. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  331. ]);
  332. //文章模块
  333. Route::group('/news', function (){
  334. //文章分类列表
  335. Route::get('/category/get/list', [app\admin\controller\medical\NewsCategory::class, 'getCategoryList']);
  336. })->middleware([
  337. app\admin\middleware\JwtAuthMiddleware::class,
  338. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  339. ]);
  340. //会员
  341. Route::group('/user', function (){
  342. //会员列表
  343. Route::get('/get/list', [app\admin\controller\user\Users::class, 'getUserList']);
  344. //会员详情
  345. Route::get('/get/info', [app\admin\controller\user\Users::class, 'getUserInfo']);
  346. //会员添加
  347. Route::post('/insert', [app\admin\controller\user\Users::class, 'userInsert']);
  348. //会员审核
  349. Route::post('/auth', [app\admin\controller\user\Users::class, 'authUser']);
  350. //会员体检报告
  351. Route::get('/get/report', [app\admin\controller\user\Users::class, 'getUserReport']);
  352. //获取会员设备列表
  353. Route::get('/get/equipment', [app\admin\controller\user\Users::class, 'getUserEquipment']);
  354. //获取会员设备详情
  355. Route::get('/equipment/info', [app\admin\controller\user\Users::class, 'userEquipmentInfo']);
  356. //获取设备日志列表
  357. Route::get('/get/log/list', [app\admin\controller\user\Users::class, 'userEquipmentLog']);
  358. //获取设备日志详情
  359. Route::get('/log/info', [app\admin\controller\user\Users::class, 'equipmentLogInfo']);
  360. //赠送权益包
  361. Route::post('/give/package', [app\admin\controller\user\Users::class, 'givePackage']);
  362. //获取会员亲属列表
  363. Route::get('/relatives/list', [app\admin\controller\user\Users::class, 'relativesToList']);
  364. //获取会员下的亲属列表
  365. Route::get('/relatives/user', [app\admin\controller\user\Users::class, 'relativesList']);
  366. //删除会员亲属关系
  367. Route::get('/relatives/del', [app\admin\controller\user\Users::class, 'relativesDel']);
  368. //获取会员下的智能产品设备
  369. Route::get('/equipment/list', [app\admin\controller\user\Users::class, 'equipmentList']);
  370. //添加会员智能产品设备
  371. Route::post('/equipment/insert', [app\admin\controller\user\Users::class, 'userEquipmentInsert']);
  372. //删除会员智能产品设备
  373. Route::get('/equipment/del', [app\admin\controller\user\Users::class, 'userEquipmentDelete']);
  374. //会员固定资产列表
  375. Route::get('/property/list', [app\admin\controller\user\Users::class, 'propertyList']);
  376. //会员导入功能
  377. Route::get('/info/import', [app\admin\controller\user\Users::class, 'userExcelImport']);
  378. //添加医生医嘱
  379. Route::post('/doctor/insert', [app\admin\controller\user\Users::class, 'userDoctorLog']);
  380. //医生医嘱列表
  381. Route::get('/doctor/list', [app\admin\controller\user\Users::class, 'userDoctorList']);
  382. //删除医生医嘱
  383. Route::get('/doctor/del', [app\admin\controller\user\Users::class, 'userDoctorDel']);
  384. //修改会员健康基础数据
  385. Route::post('/healthy/update', [app\admin\controller\user\Users::class, 'userHealthyDataUpdate']);
  386. //会员健康基础数据详情
  387. Route::get('/healthy/info', [app\admin\controller\user\Users::class, 'userHealthyData']);
  388. //删除会员健康基础数据
  389. Route::get('/healthy/del', [app\admin\controller\user\Users::class, 'userHealthyDataDel']);
  390. })->middleware([
  391. app\admin\middleware\JwtAuthMiddleware::class,
  392. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  393. ]);
  394. //医疗模块
  395. Route::group('/doctor', function (){
  396. //医生列表
  397. Route::get('/get/list', [app\admin\controller\medical\Doctor::class, 'getDoctorList']);
  398. //添加医生
  399. Route::post('/create/doctor', [app\admin\controller\medical\Doctor::class, 'addDoctor']);
  400. //医生编辑
  401. Route::post('/update/doctor', [app\admin\controller\medical\Doctor::class, 'updateDoctor']);
  402. //删除医生
  403. Route::post('/delete', [app\admin\controller\medical\Doctor::class, 'deleteDoctor']);
  404. //医生详情
  405. Route::get('/get/info', [app\admin\controller\medical\Doctor::class, 'getDoctorInfo']);
  406. //医生每天可预约人数
  407. Route::post('/set/appointment', [app\admin\controller\medical\Doctor::class, 'setAppointment']);
  408. //医生每天可预约人数信息
  409. Route::get('/appointment/info', [app\admin\controller\medical\Doctor::class, 'getAppointment']);
  410. })->middleware([
  411. app\admin\middleware\JwtAuthMiddleware::class,
  412. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  413. ]);
  414. //分类
  415. Route::group('/categorys', function (){
  416. //分类列表
  417. Route::get('/get/list', [app\admin\controller\category\Category::class, 'getCategoryList']);
  418. //分类详情
  419. Route::get('/get/info', [app\admin\controller\category\Category::class, 'categoryInfo']);
  420. //分类编辑
  421. Route::post('/update', [app\admin\controller\category\Category::class, 'updateCategory']);
  422. //分类删除
  423. Route::get('/get/delete', [app\admin\controller\category\Category::class, 'delCategory']);
  424. //分类添加
  425. Route::post('/insert', [app\admin\controller\category\Category::class, 'addCategory']);
  426. //修改分类状态
  427. Route::get('/get/status', [app\admin\controller\category\Category::class, 'updateStatus']);
  428. //获取全部分类
  429. Route::get('/get/lower', [app\admin\controller\category\Category::class, 'getLower']);
  430. })->middleware([
  431. app\admin\middleware\JwtAuthMiddleware::class,
  432. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  433. ]);
  434. //公告模块
  435. Route::group('/notice', function (){
  436. //公告列表
  437. Route::get('/get/list', [app\admin\controller\notice\Notice::class, 'getNoticeList']);
  438. //公告详情
  439. Route::get('/get/info', [app\admin\controller\notice\Notice::class, 'noticeInfo']);
  440. //公告编辑
  441. Route::post('/update', [app\admin\controller\notice\Notice::class, 'updateNotice']);
  442. //公告删除
  443. Route::get('/get/delete', [app\admin\controller\notice\Notice::class, 'delNotice']);
  444. //公告添加
  445. Route::post('/insert', [app\admin\controller\notice\Notice::class, 'addNotice']);
  446. })->middleware([
  447. app\admin\middleware\JwtAuthMiddleware::class,
  448. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  449. ]);
  450. //悦活-健康超市
  451. Route::group('/life', function (){
  452. //商品列表
  453. Route::get('/get/list', [app\admin\controller\life\Goods::class, 'getGoodsList']);
  454. //商品详情
  455. Route::get('/get/info', [app\admin\controller\life\Goods::class, 'goodsInfo']);
  456. //商品编辑
  457. Route::post('/update', [app\admin\controller\life\Goods::class, 'updateGoods']);
  458. //商品删除
  459. Route::get('/get/delete', [app\admin\controller\life\Goods::class, 'delGoods']);
  460. //商品添加
  461. Route::post('/insert', [app\admin\controller\life\Goods::class, 'addGoods']);
  462. //修改商品状态
  463. Route::get('/get/status', [app\admin\controller\life\Goods::class, 'updateStatus']);
  464. //订单列表
  465. Route::get('/order/list', [app\admin\controller\life\GoodsOrder::class, 'getOrderList']);
  466. //订单详情
  467. Route::get('/order/info', [app\admin\controller\life\GoodsOrder::class, 'orderInfo']);
  468. //修改支付状态
  469. Route::post('/order/paystatus', [app\admin\controller\life\GoodsOrder::class, 'updatePayStatus']);
  470. })->middleware([
  471. app\admin\middleware\JwtAuthMiddleware::class,
  472. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  473. ]);
  474. //悦活-万悦影院
  475. Route::group('/cinema', function (){
  476. //影片列表
  477. Route::get('/get/list', [app\admin\controller\life\Cinema::class, 'getCinemaList']);
  478. //影片详情
  479. Route::get('/get/info', [app\admin\controller\life\Cinema::class, 'cinemaInfo']);
  480. //影片编辑
  481. Route::post('/update', [app\admin\controller\life\Cinema::class, 'updateCinema']);
  482. //影片删除
  483. Route::get('/get/delete', [app\admin\controller\life\Cinema::class, 'delCinema']);
  484. //影片添加
  485. Route::post('/insert', [app\admin\controller\life\Cinema::class, 'addCinema']);
  486. //修改影片状态
  487. Route::get('/get/status', [app\admin\controller\life\Cinema::class, 'updateStatus']);
  488. //订单列表
  489. Route::get('/order/list', [app\admin\controller\life\CinemaOrder::class, 'getOrderList']);
  490. //订单详情
  491. Route::get('/order/info', [app\admin\controller\life\CinemaOrder::class, 'orderInfo']);
  492. //订单支付状态
  493. Route::post('/order/paystatus', [app\admin\controller\life\CinemaOrder::class, 'updatePayStatus']);
  494. })->middleware([
  495. app\admin\middleware\JwtAuthMiddleware::class,
  496. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  497. ]);
  498. //悦活-影片类型
  499. Route::group('/mold', function (){
  500. //影片列表
  501. Route::get('/get/list', [app\admin\controller\life\CinemaMold::class, 'getMoldList']);
  502. //影片详情
  503. Route::get('/get/info', [app\admin\controller\life\CinemaMold::class, 'moldInfo']);
  504. //所有类型
  505. Route::get('/get/all', [app\admin\controller\life\CinemaMold::class, 'getMoldAll']);
  506. //影片编辑
  507. Route::post('/update', [app\admin\controller\life\CinemaMold::class, 'updateMold']);
  508. //影片删除
  509. Route::get('/get/delete', [app\admin\controller\life\CinemaMold::class, 'delMold']);
  510. //影片添加
  511. Route::post('/insert', [app\admin\controller\life\CinemaMold::class, 'addMold']);
  512. })->middleware([
  513. app\admin\middleware\JwtAuthMiddleware::class,
  514. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  515. ]);
  516. //悦活-影片演职
  517. Route::group('/performers', function (){
  518. //演职列表
  519. Route::get('/get/list', [app\admin\controller\life\CinemaPerformers::class, 'getPerformersList']);
  520. //演职详情
  521. Route::get('/get/info', [app\admin\controller\life\CinemaPerformers::class, 'performersInfo']);
  522. //所有演职
  523. Route::get('/get/all', [app\admin\controller\life\CinemaPerformers::class, 'getPerformersAll']);
  524. //演职编辑
  525. Route::post('/update', [app\admin\controller\life\CinemaPerformers::class, 'updatePerformers']);
  526. //演职删除
  527. Route::get('/get/delete', [app\admin\controller\life\CinemaPerformers::class, 'delPerformers']);
  528. //演职添加
  529. Route::post('/insert', [app\admin\controller\life\CinemaPerformers::class, 'addPerformers']);
  530. })->middleware([
  531. app\admin\middleware\JwtAuthMiddleware::class,
  532. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  533. ]);
  534. //悦活-影片排期
  535. Route::group('/scheduling', function (){
  536. //排期列表
  537. Route::get('/get/list', [app\admin\controller\life\CinemaScheduling::class, 'getSchedulingList']);
  538. //排期详情
  539. Route::get('/get/info', [app\admin\controller\life\CinemaScheduling::class, 'schedulingInfo']);
  540. //排期编辑
  541. Route::post('/update', [app\admin\controller\life\CinemaScheduling::class, 'updateScheduling']);
  542. //排期删除
  543. Route::get('/get/delete', [app\admin\controller\life\CinemaScheduling::class, 'delScheduling']);
  544. //排期添加
  545. Route::post('/insert', [app\admin\controller\life\CinemaScheduling::class, 'addScheduling']);
  546. })->middleware([
  547. app\admin\middleware\JwtAuthMiddleware::class,
  548. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  549. ]);
  550. //悦活-生态农场-一亩心田
  551. Route::group('/land', function (){
  552. //地块列表
  553. Route::get('/get/list', [app\admin\controller\life\FarmLand::class, 'getLandList']);
  554. //地块详情
  555. Route::get('/get/info', [app\admin\controller\life\FarmLand::class, 'landInfo']);
  556. //地块编辑
  557. Route::post('/update', [app\admin\controller\life\FarmLand::class, 'updateLand']);
  558. //地块删除
  559. Route::get('/get/delete', [app\admin\controller\life\FarmLand::class, 'delLand']);
  560. //地块添加
  561. Route::post('/insert', [app\admin\controller\life\FarmLand::class, 'addLand']);
  562. //订单列表
  563. Route::get('/order/list', [app\admin\controller\life\FarmLandOrder::class, 'getOrderList']);
  564. //订单详情
  565. Route::get('/order/info', [app\admin\controller\life\FarmLandOrder::class, 'getOrderInfo']);
  566. //支付状态
  567. Route::post('/order/paystatus', [app\admin\controller\life\FarmLandOrder::class, 'updatePayStatus']);
  568. })->middleware([
  569. app\admin\middleware\JwtAuthMiddleware::class,
  570. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  571. ]);
  572. //悦活-套餐
  573. Route::group('/lpackage', function (){
  574. //套餐列表
  575. Route::get('/get/list', [app\admin\controller\life\Package::class, 'getPackageList']);
  576. //套餐详情
  577. Route::get('/get/info', [app\admin\controller\life\Package::class, 'packageInfo']);
  578. //套餐编辑
  579. Route::post('/update', [app\admin\controller\life\Package::class, 'updatePackage']);
  580. //套餐删除
  581. Route::get('/get/delete', [app\admin\controller\life\Package::class, 'delPackage']);
  582. //套餐添加
  583. Route::post('/insert', [app\admin\controller\life\Package::class, 'addPackage']);
  584. })->middleware([
  585. app\admin\middleware\JwtAuthMiddleware::class,
  586. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  587. ]);
  588. //悦活-套餐项目
  589. Route::group('/lpackagegoods', function (){
  590. //套餐项目列表
  591. Route::get('/get/list', [app\admin\controller\life\PackageGoods::class, 'getPackageGoodsList']);
  592. //套餐项目详情
  593. Route::get('/get/info', [app\admin\controller\life\PackageGoods::class, 'packageGoodsInfo']);
  594. //套餐项目编辑
  595. Route::post('/update', [app\admin\controller\life\PackageGoods::class, 'updatePackageGoods']);
  596. //套餐项目删除
  597. Route::get('/get/delete', [app\admin\controller\life\PackageGoods::class, 'delPackageGoods']);
  598. //套餐项目添加
  599. Route::post('/insert', [app\admin\controller\life\PackageGoods::class, 'addPackageGoods']);
  600. })->middleware([
  601. app\admin\middleware\JwtAuthMiddleware::class,
  602. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  603. ]);
  604. //悦活-套餐订单
  605. Route::group('/lpackageorder', function (){
  606. //影片列表
  607. Route::get('/order/list', [app\admin\controller\life\PackageOrder::class, 'getOrderList']);
  608. //订单详情
  609. Route::get('/order/info', [app\admin\controller\life\PackageOrder::class, 'getOrderInfo']);
  610. //修改订单完成状态
  611. Route::get('/order/finish', [app\admin\controller\life\PackageOrder::class, 'updateFinish']);
  612. //修改订单支付状态
  613. Route::post('/order/paystatus', [app\admin\controller\life\PackageOrder::class, 'updatePayStatus']);
  614. })->middleware([
  615. app\admin\middleware\JwtAuthMiddleware::class,
  616. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  617. ]);
  618. //悦活-万悦书院订单
  619. Route::group('/academy', function (){
  620. //订单列表
  621. Route::get('/order/list', [app\admin\controller\life\BookCourseOrder::class, 'getOrderList']);
  622. //订单详情
  623. Route::get('/order/info', [app\admin\controller\life\BookCourseOrder::class, 'getOrderInfo']);
  624. //删除订单
  625. Route::get('/order/del', [app\admin\controller\life\BookCourseOrder::class, 'delOrder']);
  626. //删除订单
  627. Route::post('/order/paystatus', [app\admin\controller\life\BookCourseOrder::class, 'updatePayStatus']);
  628. })->middleware([
  629. app\admin\middleware\JwtAuthMiddleware::class,
  630. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  631. ]);
  632. //悦活-书院
  633. Route::group('/book', function (){
  634. //课程列表
  635. Route::get('/get/list', [app\admin\controller\life\Book::class, 'getBookList']);
  636. //课程详情
  637. Route::get('/get/info', [app\admin\controller\life\Book::class, 'bookInfo']);
  638. //课程编辑
  639. Route::post('/update', [app\admin\controller\life\Book::class, 'updateBook']);
  640. //课程删除
  641. Route::get('/get/delete', [app\admin\controller\life\Book::class, 'delBook']);
  642. //课程添加
  643. Route::post('/insert', [app\admin\controller\life\Book::class, 'addBook']);
  644. //修改课程状态
  645. Route::get('/get/status', [app\admin\controller\life\Book::class, 'updateStatus']);
  646. })->middleware([
  647. app\admin\middleware\JwtAuthMiddleware::class,
  648. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  649. ]);
  650. //悦活-书院课程目录
  651. Route::group('/course', function (){
  652. //课程目录列表
  653. Route::get('/get/list', [app\admin\controller\life\BookCourse::class, 'getBookCourseList']);
  654. //课程目录详情
  655. Route::get('/get/info', [app\admin\controller\life\BookCourse::class, 'courseInfo']);
  656. //课程目录编辑
  657. Route::post('/update', [app\admin\controller\life\BookCourse::class, 'updateBookCourse']);
  658. //课程目录删除
  659. Route::get('/get/delete', [app\admin\controller\life\BookCourse::class, 'delBookCourse']);
  660. //课程目录添加
  661. Route::post('/insert', [app\admin\controller\life\BookCourse::class, 'addBookCourse']);
  662. //修改课程目录状态
  663. Route::get('/get/status', [app\admin\controller\life\BookCourse::class, 'updateStatus']);
  664. })->middleware([
  665. app\admin\middleware\JwtAuthMiddleware::class,
  666. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  667. ]);
  668. //悦活-书院课程排期
  669. Route::group('/books', function (){
  670. //排期列表
  671. Route::get('/get/list', [app\admin\controller\life\BookScheduling::class, 'getBookSchedulingList']);
  672. //排期详情
  673. Route::get('/get/info', [app\admin\controller\life\BookScheduling::class, 'schedulingInfo']);
  674. //排期编辑
  675. Route::post('/update', [app\admin\controller\life\BookScheduling::class, 'updateBookScheduling']);
  676. //排期删除
  677. Route::get('/get/delete', [app\admin\controller\life\BookScheduling::class, 'delBookScheduling']);
  678. //排期添加
  679. Route::post('/insert', [app\admin\controller\life\BookScheduling::class, 'addBookScheduling']);
  680. })->middleware([
  681. app\admin\middleware\JwtAuthMiddleware::class,
  682. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  683. ]);
  684. //悦活-健康美食
  685. Route::group('/food', function (){
  686. //健康美食列表
  687. Route::get('/get/list', [app\admin\controller\life\Food::class, 'getFoodList']);
  688. //健康美食详情
  689. Route::get('/get/info', [app\admin\controller\life\Food::class, 'foodInfo']);
  690. //健康美食编辑
  691. Route::post('/update', [app\admin\controller\life\Food::class, 'updateFood']);
  692. //健康美食删除
  693. Route::get('/get/delete', [app\admin\controller\life\Food::class, 'delFood']);
  694. //健康美食添加
  695. Route::post('/insert', [app\admin\controller\life\Food::class, 'addFood']);
  696. //修改健康美食状态
  697. Route::get('/get/status', [app\admin\controller\life\Food::class, 'updateStatus']);
  698. //健康美食单品列表
  699. Route::get('/type/list', [app\admin\controller\life\Food::class, 'getFoodAll']);
  700. //健康美食订单列表
  701. Route::get('/order/list', [app\admin\controller\life\FoodOrder::class, 'getOrderList']);
  702. //健康美食订单详情
  703. Route::get('/order/info', [app\admin\controller\life\FoodOrder::class, 'orderInfo']);
  704. //支付状态
  705. Route::post('/order/paystatus', [app\admin\controller\life\FoodOrder::class, 'updatePayStatus']);
  706. })->middleware([
  707. app\admin\middleware\JwtAuthMiddleware::class,
  708. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  709. ]);
  710. //悦活-农庄美食/采摘游玩
  711. Route::group('/play', function (){
  712. //农庄美食/采摘游玩列表
  713. Route::get('/get/list', [app\admin\controller\life\Play::class, 'getPlayList']);
  714. //农庄美食/采摘游玩详情
  715. Route::get('/get/info', [app\admin\controller\life\Play::class, 'playInfo']);
  716. //农庄美食/采摘游玩编辑
  717. Route::post('/update', [app\admin\controller\life\Play::class, 'updatePlay']);
  718. //农庄美食/采摘游玩删除
  719. Route::get('/get/delete', [app\admin\controller\life\Play::class, 'delPlay']);
  720. //农庄美食/采摘游玩添加
  721. Route::post('/insert', [app\admin\controller\life\Play::class, 'addPlay']);
  722. //修改农庄美食/采摘游玩状态
  723. Route::get('/get/status', [app\admin\controller\life\Play::class, 'updateStatus']);
  724. //农庄美食/采摘游玩单品列表
  725. Route::get('/type/list', [app\admin\controller\life\Play::class, 'getPlayAll']);
  726. })->middleware([
  727. app\admin\middleware\JwtAuthMiddleware::class,
  728. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  729. ]);
  730. //教师模块
  731. Route::group('/teacher', function (){
  732. //教师列表
  733. Route::get('/get/list', [app\admin\controller\life\Teacher::class, 'getTeacherList']);
  734. //教师详情
  735. Route::get('/get/info', [app\admin\controller\life\Teacher::class, 'teacherInfo']);
  736. //教师编辑
  737. Route::post('/update', [app\admin\controller\life\Teacher::class, 'updateTeacher']);
  738. //教师删除
  739. Route::get('/get/delete', [app\admin\controller\life\Teacher::class, 'delTeacher']);
  740. //教师添加
  741. Route::post('/insert', [app\admin\controller\life\Teacher::class, 'addTeacher']);
  742. //获取所有教师
  743. Route::get('/get/all', [app\admin\controller\life\Teacher::class, 'getTeacherAll']);
  744. })->middleware([
  745. app\admin\middleware\JwtAuthMiddleware::class,
  746. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  747. ]);
  748. //管家
  749. Route::group('/housekeeper', function (){
  750. //管家列表
  751. Route::get('/get/list', [app\admin\controller\housekeeper\Housekeeper::class, 'getHousekeeperList']);
  752. //添加管家
  753. Route::post('/add', [app\admin\controller\housekeeper\Housekeeper::class, 'addHousekeeper']);
  754. //编辑管家
  755. Route::post('/update', [app\admin\controller\housekeeper\Housekeeper::class, 'updateHousekeeper']);
  756. //管家详情
  757. Route::get('/get/info', [app\admin\controller\housekeeper\Housekeeper::class, 'getInfo']);
  758. //删除管家
  759. Route::post('/delete', [app\admin\controller\housekeeper\Housekeeper::class, 'delHousekeeper']);
  760. })->middleware([
  761. app\admin\middleware\JwtAuthMiddleware::class,
  762. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  763. ]);
  764. //居家模块
  765. Route::group('/home', function (){
  766. //项目
  767. //项目列表
  768. Route::get('/goods/list', [app\admin\controller\home\HomeGoods::class, 'getGoodsList']);
  769. //项目详情
  770. Route::get('/goods/info', [app\admin\controller\home\HomeGoods::class, 'goodsInfo']);
  771. //项目编辑
  772. Route::post('/goods/update', [app\admin\controller\home\HomeGoods::class, 'updateGoods']);
  773. //项目删除
  774. Route::get('/goods/delete', [app\admin\controller\home\HomeGoods::class, 'delGoods']);
  775. //项目添加
  776. Route::post('/goods/insert', [app\admin\controller\home\HomeGoods::class, 'addGoods']);
  777. //Banner
  778. //列表
  779. Route::get('/banner/list', [app\admin\controller\home\HomeBanner::class, 'getBannerList']);
  780. //详情
  781. Route::get('/banner/info', [app\admin\controller\home\HomeBanner::class, 'bannerInfo']);
  782. //编辑
  783. Route::post('/banner/update', [app\admin\controller\home\HomeBanner::class, 'updateBanner']);
  784. //删除
  785. Route::get('/banner/delete', [app\admin\controller\home\HomeBanner::class, 'delBanner']);
  786. //添加
  787. Route::post('/banner/insert', [app\admin\controller\home\HomeBanner::class, 'addBanner']);
  788. //订单
  789. //列表
  790. Route::get('/order/list', [app\admin\controller\home\HomeOrder::class, 'getOrderList']);
  791. //详情
  792. Route::get('/order/info', [app\admin\controller\home\HomeOrder::class, 'getOrderInfo']);
  793. })->middleware([
  794. app\admin\middleware\JwtAuthMiddleware::class,
  795. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  796. ]);
  797. //养老产品模块
  798. Route::group('/raise', function (){
  799. //养老产品列表
  800. Route::get('/get/list', [app\admin\controller\raise\RaiseOldGoods::class, 'getGoodsList']);
  801. //养老产品详情
  802. Route::get('/get/info', [app\admin\controller\raise\RaiseOldGoods::class, 'goodsInfo']);
  803. //养老产品编辑
  804. Route::post('/update', [app\admin\controller\raise\RaiseOldGoods::class, 'updateGoods']);
  805. //养老产品删除
  806. Route::get('/get/delete', [app\admin\controller\raise\RaiseOldGoods::class, 'delGoods']);
  807. //养老产品添加
  808. Route::post('/insert', [app\admin\controller\raise\RaiseOldGoods::class, 'addGoods']);
  809. //养老产品上下架
  810. Route::get('/get/status', [app\admin\controller\raise\RaiseOldGoods::class, 'updateStatus']);
  811. //养老产品订单列表
  812. Route::get('/order/list', [app\admin\controller\raise\RaiseOldGoodsOrder::class, 'getOrderList']);
  813. //养老产品订单详情
  814. Route::get('/order/info', [app\admin\controller\raise\RaiseOldGoodsOrder::class, 'getOrderInfo']);
  815. //养老产品订单发货
  816. Route::post('/order/express', [app\admin\controller\raise\RaiseOldGoodsOrder::class, 'updateOrder']);
  817. //支付状态
  818. Route::post('/order/paystatus', [app\admin\controller\raise\RaiseOldGoodsOrder::class, 'updatePayStatus']);
  819. })->middleware([
  820. app\admin\middleware\JwtAuthMiddleware::class,
  821. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  822. ]);
  823. //生态农场-绿色蔬菜
  824. Route::group('/farmgoods', function (){
  825. //蔬菜列表
  826. Route::get('/get/list', [app\admin\controller\life\FarmGoods::class, 'getFarmGoodsList']);
  827. //蔬菜详情
  828. Route::get('/get/info', [app\admin\controller\life\FarmGoods::class, 'farmGoodsInfo']);
  829. //蔬菜编辑
  830. Route::post('/update', [app\admin\controller\life\FarmGoods::class, 'updateFarmGoods']);
  831. //蔬菜删除
  832. Route::get('/get/delete', [app\admin\controller\life\FarmGoods::class, 'delFarmGoods']);
  833. //蔬菜添加
  834. Route::post('/insert', [app\admin\controller\life\FarmGoods::class, 'addFarmGoods']);
  835. //订单列表
  836. Route::get('/order/list', [app\admin\controller\life\FarmOrder::class, 'getOrderList']);
  837. //订单详情
  838. Route::get('/order/info', [app\admin\controller\life\FarmOrder::class, 'orderInfo']);
  839. //发货
  840. Route::post('/order/delivery', [app\admin\controller\life\FarmOrder::class, 'orderDelivery']);
  841. //支付状态
  842. Route::post('/order/paystatus', [app\admin\controller\life\FarmOrder::class, 'updatePayStatus']);
  843. //修改状态
  844. Route::get('/get/status', [app\admin\controller\life\FarmGoods::class, 'updateStatus']);
  845. })->middleware([
  846. app\admin\middleware\JwtAuthMiddleware::class,
  847. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  848. ]);
  849. //健康模块
  850. Route::group('/healthy', function (){
  851. //订单列表
  852. Route::get('/order/list', [app\admin\controller\healthy\HealthyOrder::class, 'getOrderList']);
  853. //订单详情
  854. Route::get('/order/info', [app\admin\controller\healthy\HealthyOrder::class, 'getOrderInfo']);
  855. //支付状态
  856. Route::post('/order/paystatus', [app\admin\controller\healthy\HealthyOrder::class, 'updatePayStatus']);
  857. //健康列表
  858. Route::get('/get/list', [app\admin\controller\healthy\HealthyProduct::class, 'getProductList']);
  859. //健康详情
  860. Route::get('/get/info', [app\admin\controller\healthy\HealthyProduct::class, 'productInfo']);
  861. //健康编辑
  862. Route::post('/update', [app\admin\controller\healthy\HealthyProduct::class, 'updateProduct']);
  863. //健康删除
  864. Route::get('/get/delete', [app\admin\controller\healthy\HealthyProduct::class, 'delProduct']);
  865. //健康添加
  866. Route::post('/insert', [app\admin\controller\healthy\HealthyProduct::class, 'addProduct']);
  867. //健康审核
  868. Route::post('/auto', [app\admin\controller\healthy\HealthyProduct::class, 'autoProduct']);
  869. //修改状态
  870. Route::get('/get/status', [app\admin\controller\healthy\HealthyProduct::class, 'updateStatus']);
  871. //发货
  872. Route::post('/order/delivery', [app\admin\controller\healthy\HealthyOrder::class, 'orderDelivery']);
  873. })->middleware([
  874. app\admin\middleware\JwtAuthMiddleware::class,
  875. app\admin\middleware\AdminAuthMiddleware::class,//鉴权权限
  876. ]);
  877. Route::options('[{path: .+}]', function (){
  878. return response('');
  879. });
  880. });