menu.sql 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. -- 菜单 SQL
  2. INSERT INTO system_menu(
  3. name, permission, type, sort, parent_id,
  4. path, icon, component, status, component_name
  5. )
  6. VALUES (
  7. '积分设置管理', '', 2, 0, 2162,
  8. 'config', '', 'point/config/index', 0, 'PointConfig'
  9. );
  10. -- 按钮父菜单ID
  11. -- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码
  12. SELECT @parentId := LAST_INSERT_ID();
  13. -- 按钮 SQL
  14. INSERT INTO system_menu(
  15. name, permission, type, sort, parent_id,
  16. path, icon, component, status
  17. )
  18. VALUES (
  19. '积分设置查询', 'point:config:query', 3, 1, @parentId,
  20. '', '', '', 0
  21. );
  22. INSERT INTO system_menu(
  23. name, permission, type, sort, parent_id,
  24. path, icon, component, status
  25. )
  26. VALUES (
  27. '积分设置创建', 'point:config:create', 3, 2, @parentId,
  28. '', '', '', 0
  29. );
  30. INSERT INTO system_menu(
  31. name, permission, type, sort, parent_id,
  32. path, icon, component, status
  33. )
  34. VALUES (
  35. '积分设置更新', 'point:config:update', 3, 3, @parentId,
  36. '', '', '', 0
  37. );
  38. INSERT INTO system_menu(
  39. name, permission, type, sort, parent_id,
  40. path, icon, component, status
  41. )
  42. VALUES (
  43. '积分设置删除', 'point:config:delete', 3, 4, @parentId,
  44. '', '', '', 0
  45. );
  46. INSERT INTO system_menu(
  47. name, permission, type, sort, parent_id,
  48. path, icon, component, status
  49. )
  50. VALUES (
  51. '积分设置导出', 'point:config:export', 3, 5, @parentId,
  52. '', '', '', 0
  53. );
  54. -- 菜单 SQL
  55. INSERT INTO system_menu(
  56. name, permission, type, sort, parent_id,
  57. path, icon, component, status, component_name
  58. )
  59. VALUES (
  60. '积分签到规则管理', '', 2, 0, 2162,
  61. 'sign-in-config', '', 'point/signInConfig/index', 0, 'SignInConfig'
  62. );
  63. -- 按钮父菜单ID
  64. -- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码
  65. SELECT @parentId := LAST_INSERT_ID();
  66. -- 按钮 SQL
  67. INSERT INTO system_menu(
  68. name, permission, type, sort, parent_id,
  69. path, icon, component, status
  70. )
  71. VALUES (
  72. '积分签到规则查询', 'point:sign-in-config:query', 3, 1, @parentId,
  73. '', '', '', 0
  74. );
  75. INSERT INTO system_menu(
  76. name, permission, type, sort, parent_id,
  77. path, icon, component, status
  78. )
  79. VALUES (
  80. '积分签到规则创建', 'point:sign-in-config:create', 3, 2, @parentId,
  81. '', '', '', 0
  82. );
  83. INSERT INTO system_menu(
  84. name, permission, type, sort, parent_id,
  85. path, icon, component, status
  86. )
  87. VALUES (
  88. '积分签到规则更新', 'point:sign-in-config:update', 3, 3, @parentId,
  89. '', '', '', 0
  90. );
  91. INSERT INTO system_menu(
  92. name, permission, type, sort, parent_id,
  93. path, icon, component, status
  94. )
  95. VALUES (
  96. '积分签到规则删除', 'point:sign-in-config:delete', 3, 4, @parentId,
  97. '', '', '', 0
  98. );
  99. INSERT INTO system_menu(
  100. name, permission, type, sort, parent_id,
  101. path, icon, component, status
  102. )
  103. VALUES (
  104. '积分签到规则导出', 'point:sign-in-config:export', 3, 5, @parentId,
  105. '', '', '', 0
  106. );
  107. -- 菜单 SQL
  108. INSERT INTO system_menu(
  109. name, permission, type, sort, parent_id,
  110. path, icon, component, status, component_name
  111. )
  112. VALUES (
  113. '用户积分记录管理', '', 2, 0, 2162,
  114. 'record', '', 'point/record/index', 0, 'PointRecord'
  115. );
  116. -- 按钮父菜单ID
  117. -- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码
  118. SELECT @parentId := LAST_INSERT_ID();
  119. -- 按钮 SQL
  120. INSERT INTO system_menu(
  121. name, permission, type, sort, parent_id,
  122. path, icon, component, status
  123. )
  124. VALUES (
  125. '用户积分记录查询', 'point:record:query', 3, 1, @parentId,
  126. '', '', '', 0
  127. );
  128. INSERT INTO system_menu(
  129. name, permission, type, sort, parent_id,
  130. path, icon, component, status
  131. )
  132. VALUES (
  133. '用户积分记录创建', 'point:record:create', 3, 2, @parentId,
  134. '', '', '', 0
  135. );
  136. INSERT INTO system_menu(
  137. name, permission, type, sort, parent_id,
  138. path, icon, component, status
  139. )
  140. VALUES (
  141. '用户积分记录更新', 'point:record:update', 3, 3, @parentId,
  142. '', '', '', 0
  143. );
  144. INSERT INTO system_menu(
  145. name, permission, type, sort, parent_id,
  146. path, icon, component, status
  147. )
  148. VALUES (
  149. '用户积分记录删除', 'point:record:delete', 3, 4, @parentId,
  150. '', '', '', 0
  151. );
  152. INSERT INTO system_menu(
  153. name, permission, type, sort, parent_id,
  154. path, icon, component, status
  155. )
  156. VALUES (
  157. '用户积分记录导出', 'point:record:export', 3, 5, @parentId,
  158. '', '', '', 0
  159. );
  160. -- 菜单 SQL
  161. INSERT INTO system_menu(
  162. name, permission, type, sort, parent_id,
  163. path, icon, component, status, component_name
  164. )
  165. VALUES (
  166. '用户签到积分管理', '', 2, 0, 2162,
  167. 'sign-in-record', '', 'point/signInRecord/index', 0, 'SignInRecord'
  168. );
  169. -- 按钮父菜单ID
  170. -- 暂时只支持 MySQL。如果你是 Oracle、PostgreSQL、SQLServer 的话,需要手动修改 @parentId 的部分的代码
  171. SELECT @parentId := LAST_INSERT_ID();
  172. -- 按钮 SQL
  173. INSERT INTO system_menu(
  174. name, permission, type, sort, parent_id,
  175. path, icon, component, status
  176. )
  177. VALUES (
  178. '用户签到积分查询', 'point:sign-in-record:query', 3, 1, @parentId,
  179. '', '', '', 0
  180. );
  181. INSERT INTO system_menu(
  182. name, permission, type, sort, parent_id,
  183. path, icon, component, status
  184. )
  185. VALUES (
  186. '用户签到积分创建', 'point:sign-in-record:create', 3, 2, @parentId,
  187. '', '', '', 0
  188. );
  189. INSERT INTO system_menu(
  190. name, permission, type, sort, parent_id,
  191. path, icon, component, status
  192. )
  193. VALUES (
  194. '用户签到积分更新', 'point:sign-in-record:update', 3, 3, @parentId,
  195. '', '', '', 0
  196. );
  197. INSERT INTO system_menu(
  198. name, permission, type, sort, parent_id,
  199. path, icon, component, status
  200. )
  201. VALUES (
  202. '用户签到积分删除', 'point:sign-in-record:delete', 3, 4, @parentId,
  203. '', '', '', 0
  204. );
  205. INSERT INTO system_menu(
  206. name, permission, type, sort, parent_id,
  207. path, icon, component, status
  208. )
  209. VALUES (
  210. '用户签到积分导出', 'point:sign-in-record:export', 3, 5, @parentId,
  211. '', '', '', 0
  212. );