增加提现相关的与打款相关逻辑

This commit is contained in:
yml
2026-06-06 13:16:44 +08:00
parent 8a2d2f2a18
commit 5c830fe1f4
32 changed files with 3835 additions and 72 deletions
@@ -82,10 +82,11 @@ CREATE TABLE IF NOT EXISTS withdrawal_requests (
-- 添加提现相关权限(如果不存在)
INSERT IGNORE INTO permissions (code, name, resource, action) VALUES
('withdrawal:list', '查看提现申请', 'withdrawal', 'list'),
('withdrawal:review', '审核提现申请', 'withdrawal', 'review'),
('withdrawal:list', '查看提现列表', 'withdrawal', 'list'),
('withdrawal:review', '审核提现', 'withdrawal', 'review'),
('withdrawal:pay', '确认打款', 'withdrawal', 'pay'),
('withdrawal:detail', '查看提现详情', 'withdrawal', 'detail');
('withdrawal:detail', '查看提现详情', 'withdrawal', 'detail'),
('withdrawal:approve', '提现审核', 'withdrawal', 'approve');
-- 钱包管理员流水权限(如果不存在)
INSERT IGNORE INTO permissions (code, name, resource, action) VALUES
@@ -101,6 +102,6 @@ SELECT
(SELECT id FROM roles WHERE code = 'finance'),
id
FROM permissions
WHERE code IN ('withdrawal:list', 'withdrawal:review', 'withdrawal:pay', 'withdrawal:detail', 'wallet:admin_ledger');
WHERE code IN ('withdrawal:list', 'withdrawal:review', 'withdrawal:pay', 'withdrawal:detail', 'withdrawal:approve', 'wallet:admin_ledger');
SET FOREIGN_KEY_CHECKS = 1;