增加提现相关的与打款相关逻辑
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;
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
-- 添加加密字段到实名认证表
|
||||
ALTER TABLE user_realname
|
||||
ADD COLUMN encrypted_name VARCHAR(255) NOT NULL DEFAULT '' COMMENT '加密的完整姓名' AFTER masked_name,
|
||||
ADD COLUMN encrypted_id_no VARCHAR(255) NOT NULL DEFAULT '' COMMENT '加密的完整身份证号' AFTER masked_id_no;
|
||||
|
||||
-- 为已有记录添加索引(加密字段不需要索引)
|
||||
-- 但保留原有的 user_id 唯一索引
|
||||
Reference in New Issue
Block a user