增加提现相关的与打款相关逻辑
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user