backend.php 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. <?php
  2. $common = file_exists(__DIR__ . '/common.php') ? require __DIR__ . '/common.php' : [];
  3. $backend = [
  4. // ----------------------- 菜单配置 ----------------------- //
  5. 'config' => [
  6. // 菜单配置
  7. 'menu' => [
  8. 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
  9. 'icon' => 'fa fa-puzzle-piece',
  10. ],
  11. // 子模块配置
  12. 'modules' => [
  13. ],
  14. ],
  15. // ----------------------- 快捷入口 ----------------------- //
  16. 'cover' => [
  17. ],
  18. // ----------------------- 菜单配置 ----------------------- //
  19. 'menu' => [
  20. // [
  21. // 'title' => '概况',
  22. // 'route' => 'default/index',
  23. // 'icon' => '',
  24. // 'params' => [
  25. //
  26. // ],
  27. // 'child' => [
  28. //
  29. // ],
  30. // ],
  31. [
  32. 'title' => '笔记管理',
  33. 'route' => 'notes/index',
  34. 'icon' => '',
  35. 'params' => [
  36. ],
  37. 'child' => [
  38. ],
  39. ],
  40. [
  41. 'title' => '笔记分类',
  42. 'route' => 'cate/index',
  43. 'icon' => '',
  44. 'params' => [
  45. ],
  46. 'child' => [
  47. ],
  48. ],
  49. [
  50. 'title' => '审核管理',
  51. 'route' => 'notes/check',
  52. 'icon' => '',
  53. 'params' => [
  54. ],
  55. 'child' => [
  56. ],
  57. ],
  58. [
  59. 'title' => '奖励明细',
  60. 'route' => 'reward/index',
  61. 'icon' => '',
  62. 'params' => [
  63. ],
  64. 'child' => [
  65. ],
  66. ],
  67. [
  68. 'title' => '广告图',
  69. 'route' => 'ad/index',
  70. 'icon' => '',
  71. 'params' => [
  72. ],
  73. 'child' => [
  74. ],
  75. ],
  76. [
  77. 'title' => '评论管理',
  78. 'route' => 'default/comment-list',
  79. 'icon' => '',
  80. 'params' => [],
  81. 'child' => [],
  82. ],
  83. [
  84. 'title' => '基础设置',
  85. 'route' => 'config/index',
  86. 'icon' => '',
  87. 'params' => [
  88. ],
  89. 'child' => [
  90. ],
  91. ],
  92. ],
  93. // ----------------------- 权限配置 ----------------------- //
  94. 'authItem' => [
  95. [
  96. 'title' => '运营笔记',
  97. 'name' => '',
  98. 'app_id' => 'backend',
  99. 'is_addon' => 1,
  100. 'addons_name' => 'OperatingNote',
  101. 'child'=>[
  102. [
  103. 'title' => '概况',
  104. 'name' => 'default/index',
  105. 'app_id' => 'backend',
  106. 'is_addon' => 1,
  107. 'addons_name' => 'OperatingNote',
  108. 'child'=>[],
  109. ],
  110. [
  111. 'title' => '笔记管理',
  112. 'name' => 'note/index',
  113. 'app_id' => 'backend',
  114. 'is_addon' => 1,
  115. 'addons_name' => 'OperatingNote',
  116. 'child'=>[
  117. [
  118. 'title' => '编辑',
  119. 'name' => 'notes/edit',
  120. 'app_id' => 'backend',
  121. 'is_addon' => 1,
  122. 'addons_name' => 'OperatingNote',
  123. ],
  124. [
  125. 'title' => '获取评论',
  126. 'name' => 'notes/search-comment',
  127. 'app_id' => 'backend',
  128. 'is_addon' => 1,
  129. 'addons_name' => 'OperatingNote',
  130. ],
  131. [
  132. 'title' => '发布评论',
  133. 'name' => 'notes/admin-reply',
  134. 'app_id' => 'backend',
  135. 'is_addon' => 1,
  136. 'addons_name' => 'OperatingNote',
  137. ],
  138. [
  139. 'title' => '编辑评论',
  140. 'name' => 'notes/comment-edit',
  141. 'app_id' => 'backend',
  142. 'is_addon' => 1,
  143. 'addons_name' => 'OperatingNote',
  144. ],
  145. ],
  146. ],
  147. [
  148. 'title' => '笔记分类',
  149. 'name' => 'setting/index',
  150. 'app_id' => 'backend',
  151. 'is_addon' => 1,
  152. 'addons_name' => 'OperatingNote',
  153. 'child'=>[
  154. [
  155. 'title' => '编辑',
  156. 'name' => 'cate/edit',
  157. 'app_id' => 'backend',
  158. 'is_addon' => 1,
  159. 'addons_name' => 'OperatingNote',
  160. ],
  161. ],
  162. ],
  163. [
  164. 'title' => '审核管理',
  165. 'name' => 'notes/check',
  166. 'app_id' => 'backend',
  167. 'is_addon' => 1,
  168. 'addons_name' => 'OperatingNote',
  169. 'child'=>[
  170. ],
  171. ],
  172. [
  173. 'title' => '奖励明细',
  174. 'name' => 'reward/index',
  175. 'app_id' => 'backend',
  176. 'is_addon' => 1,
  177. 'addons_name' => 'OperatingNote',
  178. 'child'=>[
  179. ],
  180. ],
  181. [
  182. 'title' => '广告图',
  183. 'name' => 'ad/index',
  184. 'app_id' => 'backend',
  185. 'is_addon' => 1,
  186. 'addons_name' => 'OperatingNote',
  187. 'child'=>[[
  188. 'title' => '编辑',
  189. 'name' => 'ad/edit',
  190. 'app_id' => 'backend',
  191. 'is_addon' => 1,
  192. 'addons_name' => 'OperatingNote',
  193. ],
  194. ],
  195. ],
  196. [
  197. 'title' => '评论管理',
  198. 'name' => 'default/comment-list',
  199. 'app_id' => 'backend',
  200. 'is_addon' => 1,
  201. 'addons_name' => 'OperatingNote',
  202. 'child' => [
  203. [
  204. 'title' => '修改状态',
  205. 'name' => 'default/comment-change-status',
  206. 'app_id' => 'backend',
  207. 'is_addon' => 1,
  208. 'addons_name' => 'OperatingNote',
  209. ],
  210. [
  211. 'title' => '删除',
  212. 'name' => 'default/comment-del',
  213. 'app_id' => 'backend',
  214. 'is_addon' => 1,
  215. 'addons_name' => 'OperatingNote',
  216. ],
  217. [
  218. 'title' => '置顶',
  219. 'name' => 'default/comment-up-top',
  220. 'app_id' => 'backend',
  221. 'is_addon' => 1,
  222. 'addons_name' => 'OperatingNote',
  223. ],
  224. ],
  225. ],
  226. [
  227. 'title' => '基础设置',
  228. 'name' => 'config/index',
  229. 'app_id' => 'backend',
  230. 'is_addon' => 1,
  231. 'addons_name' => 'OperatingNote',
  232. 'child'=>[
  233. ],
  234. ],
  235. ]
  236. ]
  237. ],
  238. ];
  239. return array_merge($common,$backend);