Commit fcbbbc737d9cd65c37cb8bef3357049510634f16

Authored by jason
1 parent 4f7c7f56

wallet - 管理端, 充值套餐脚本

Showing 1 changed file with 55 additions and 0 deletions
sql/mysql/pay_wallet.sql
... ... @@ -125,3 +125,58 @@ CREATE TABLE `pay_wallet_recharge` (
125 125 `tenant_id` bigint(0) NOT NULL DEFAULT 0 COMMENT '租户编号',
126 126 PRIMARY KEY (`id`) USING BTREE
127 127 ) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '会员钱包充值' ROW_FORMAT = Dynamic;
  128 +
  129 +-- 钱包充值套餐菜单脚本
  130 +
  131 +INSERT INTO system_menu(
  132 + name, permission, type, sort, parent_id,
  133 + path, icon, component, status, component_name
  134 +)
  135 +VALUES (
  136 + '钱包管理', '', 1, 5, 1117,
  137 + 'wallet', 'ep:caret-right', '', 0, ''
  138 + );
  139 +SELECT @parentId := LAST_INSERT_ID();
  140 +INSERT INTO system_menu(
  141 + name, permission, type, sort, parent_id,
  142 + path, icon, component, status, component_name
  143 +)
  144 +VALUES (
  145 + '充值套餐', '', 2, 2, @parentId,
  146 + 'wallet-recharge-package', 'fa:leaf', 'pay/wallet/rechargePackage/index', 0, 'WalletRechargePackage'
  147 + );
  148 +SELECT @parentId := LAST_INSERT_ID();
  149 +
  150 +-- 按钮 SQL
  151 +INSERT INTO system_menu(
  152 + name, permission, type, sort, parent_id,
  153 + path, icon, component, status
  154 +)
  155 +VALUES (
  156 + '钱包充值套餐查询', 'pay:wallet-recharge-package:query', 3, 1, @parentId,
  157 + '', '', '', 0
  158 + );
  159 +INSERT INTO system_menu(
  160 + name, permission, type, sort, parent_id,
  161 + path, icon, component, status
  162 +)
  163 +VALUES (
  164 + '钱包充值套餐创建', 'pay:wallet-recharge-package:create', 3, 2, @parentId,
  165 + '', '', '', 0
  166 + );
  167 +INSERT INTO system_menu(
  168 + name, permission, type, sort, parent_id,
  169 + path, icon, component, status
  170 +)
  171 +VALUES (
  172 + '钱包充值套餐更新', 'pay:wallet-recharge-package:update', 3, 3, @parentId,
  173 + '', '', '', 0
  174 + );
  175 +INSERT INTO system_menu(
  176 + name, permission, type, sort, parent_id,
  177 + path, icon, component, status
  178 +)
  179 +VALUES (
  180 + '钱包充值套餐删除', 'pay:wallet-recharge-package:delete', 3, 4, @parentId,
  181 + '', '', '', 0
  182 + );
... ...