app.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?php
  2. use think\facade\Route;
  3. Route::rule('login', 'admin/Common/login');//登录
  4. Route::rule('logout', 'admin/Common/logout');//登出
  5. Route::rule('upload', 'admin/Common/upload');//上传图片
  6. Route::rule('unitAll', 'admin/Common/unitAll');//获取全部商品单位
  7. //【版本】
  8. Route::rule('version', 'admin/Version/lastVersion');//最新版本
  9. Route::rule('versionList', 'Admin/Version/getList');//版本列表
  10. Route::rule('versionAdd', 'Admin/Version/create');//新建版本
  11. //【菜单】
  12. Route::rule('menuList', 'admin/Menu/list');//获取用户菜单列表
  13. Route::rule('menuAll', 'admin/Menu/all');//获取全部菜单
  14. Route::rule('menuAdd', 'admin/Menu/add');//添加菜单
  15. Route::rule('menuSave', 'admin/Menu/edit');//编辑菜单
  16. Route::rule('menuDel', 'admin/Menu/delete');//删除菜单
  17. Route::rule('menuStatus', 'admin/Menu/status');//启禁用菜单
  18. Route::rule('menuActionAdd', 'admin/Action/add');//给菜单添加按钮
  19. Route::rule('menuAction', 'admin/Action/list');//获取菜单下按钮列表
  20. Route::rule('menuActionStatus', 'admin/Action/status');//菜单下按钮启禁用
  21. Route::rule('menuActionSave', 'admin/Action/edit');//修改菜单下按钮
  22. Route::rule('menuActionDel', 'admin/Action/delete');//删除菜单下按钮
  23. Route::rule('menuActionlist', 'admin/Action/index');//获取所有菜单下的所有按钮
  24. //【角色】
  25. Route::rule('roleList', 'admin/Role/list');//获取角色列表
  26. Route::rule('roleAll', 'admin/Role/all');//获取全部角色
  27. Route::rule('roleAdd', 'admin/Role/add');//添加角色
  28. Route::rule('roleRead', 'admin/Role/read');//获取角色详情
  29. Route::rule('roleEdit', 'admin/Role/edit');//编辑角色
  30. Route::rule('roleDelete', 'admin/Role/delete');//删除角色
  31. Route::rule('roleStatus', 'admin/Role/status');//启禁用角色
  32. //【运营账号】
  33. Route::rule('adminList', 'admin/Admin/list');//获取运营账号列表
  34. Route::rule('adminAdd', 'admin/Admin/add');//添加运营账号
  35. Route::rule('adminRead', 'admin/Admin/read');//获取运营账号详情
  36. Route::rule('adminEdit', 'admin/Admin/edit');//编辑运营账号
  37. Route::rule('adminDelete', 'admin/Admin/delete');//删除运营账号
  38. Route::rule('adminStatus', 'admin/Admin/status');//启禁用运营账号
  39. Route::rule('adminChangePasswod', 'admin/Admin/changePasswod');//更改密码
  40. Route::rule('adminResetPasswod', 'admin/Admin/resetPasswod');//重置密码(慎用)
  41. //【视频】
  42. Route::rule('videoList', 'admin/Video/list');//获取视频列表
  43. Route::rule('videoAdd', 'admin/Video/add');//添加视频
  44. Route::rule('videoRead', 'admin/Video/read');//获取视频详情
  45. Route::rule('videoEdit', 'admin/Video/rdit');//编辑视频
  46. Route::rule('videoChange', 'admin/Video/change');//视频启禁用
  47. Route::rule('videoDelete', 'admin/Video/delete');//删除视频
  48. //【卡类型】
  49. Route::rule('cardList', 'admin/Card/list');//获取卡类型列表
  50. Route::rule('cardAll', 'admin/Card/all');//获取全部卡类型
  51. Route::rule('cardAdd', 'admin/Card/add');//添加卡类型
  52. Route::rule('cardRead', 'admin/Card/read');//获取卡类型详情
  53. Route::rule('cardEdit', 'admin/Card/edit');//编辑卡类型
  54. Route::rule('cardChange', 'admin/Card/change');//卡类型启禁用
  55. Route::rule('cardDelete', 'admin/Card/delete');//删除卡类型
  56. //【企业】
  57. Route::rule('companyList', 'admin/Company/list');//获取企业列表
  58. Route::rule('companyAll', 'admin/Company/all');//获取全部企业
  59. Route::rule('companyAdd', 'admin/Company/add');//添加企业
  60. Route::rule('companyRead', 'admin/Company/read');//获取企业详情
  61. Route::rule('companyEdit', 'admin/Company/edit');//编辑企业
  62. Route::rule('companyChange', 'admin/Company/status');//企业启禁用
  63. Route::rule('companyDelete', 'admin/Company/delete');//删除企业
  64. //【视频分组】
  65. Route::rule('videoGroupList', 'admin/VideoGroup/list');//获取视频分组列表
  66. Route::rule('videoGroupAdd', 'admin/VideoGroup/add');//添加视频分组
  67. Route::rule('videoGroupRead', 'admin/VideoGroup/read');//获取视频分组详情
  68. Route::rule('videoGroupEdit', 'admin/VideoGroup/edit');//编辑视频分组
  69. Route::rule('videoGroupChange', 'admin/VideoGroup/status');//视频分组启禁用
  70. Route::rule('videoGroupDelete', 'admin/VideoGroup/delete');//删除视频分组
  71. Route::rule('videoGroupTop', 'admin/VideoGroup/top');//视频分组置顶
  72. //【商品】
  73. Route::rule('goodList', 'admin/Good/list');//获取商品列表
  74. Route::rule('goodAdd', 'admin/Good/add');//添加商品
  75. Route::rule('goodRead', 'admin/Good/read');//获取商品详情
  76. Route::rule('goodEdit', 'admin/Good/edit');//编辑商品
  77. Route::rule('goodChange', 'admin/Good/status');//商品启禁用
  78. Route::rule('goodDelete', 'admin/Good/delete');//删除商品
  79. //【商品分组】
  80. Route::rule('goodGroupList', 'admin/GoodGroup/list');//获取商品分组列表
  81. Route::rule('goodGroupAdd', 'admin/GoodGroup/add');//添加商品分组
  82. Route::rule('goodGroupRead', 'admin/GoodGroup/read');//获取商品分组详情
  83. Route::rule('goodGroupEdit', 'admin/GoodGroup/edit');//编辑商品分组
  84. Route::rule('goodGroupChange', 'admin/GoodGroup/status');//商品分组启禁用
  85. Route::rule('goodGroupDelete', 'admin/GoodGroup/delete');//删除商品分组
  86. //【兑换商品库存】
  87. Route::rule('inventoryExchangeList', 'admin/InventoryExchange/list');//获取兑换商品列表
  88. Route::rule('inventoryExchangeAdd', 'admin/InventoryExchange/add');//添加兑换商品库存
  89. Route::rule('inventoryExchangeRead', 'admin/InventoryExchange/read');//获取兑换商品库存详情
  90. Route::rule('inventoryExchangeEdit', 'admin/InventoryExchange/edit');//编辑兑换商品库存
  91. Route::rule('inventoryExchangeLog', 'admin/InventoryExchange/log');//兑换商品库存变动记录
  92. //【商城商品库存】
  93. Route::rule('inventoryShoppingList', 'admin/InventoryShopping/list');//获取商城商品库存列表
  94. Route::rule('inventoryShoppingAdd', 'admin/InventoryShopping/add');//添加商城商品库存
  95. Route::rule('inventoryShoppingRead', 'admin/InventoryShopping/read');//获取商城商品库存详情
  96. Route::rule('inventoryShoppingEdit', 'admin/InventoryShopping/edit');//编辑商城商品库存
  97. Route::rule('inventoryShoppingLog', 'admin/InventoryShopping/log');//商城商品库存变动记录
  98. //【账户】
  99. Route::rule('accoountBatchAdd', 'admin/Account/batchAdd');//批量添加账户
  100. Route::rule('accoountAdd', 'admin/Account/add');//添加
  101. Route::rule('accoountList', 'admin/Account/list');//列表
  102. Route::rule('accoountRead', 'admin/Account/read');//读取
  103. Route::rule('accoountEdit', 'admin/Account/edit');//修改
  104. Route::rule('accoountDelete', 'admin/Account/delete');//删除