admin.php 54 KB

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