feat: 新增账号安全模块及资质校验功能
- 新增账号安全页面及支付密码验证组件 - 新增用户类型选择流程及商家资质管理 - 新增订单资质校验逻辑,师傅需满足订单证书要求 - 新增企业资质认证相关数据库表及接口 - 优化用户列表展示,区分个人与商家用户类型
这个提交包含在:
23
db/schema_account_security.sql
普通文件
23
db/schema_account_security.sql
普通文件
@@ -0,0 +1,23 @@
|
||||
CREATE TABLE IF NOT EXISTS `fa_user_security` (
|
||||
`user_id` int unsigned NOT NULL,
|
||||
`payment_password_hash` varchar(255) NOT NULL DEFAULT '',
|
||||
`failed_attempts` int unsigned NOT NULL DEFAULT 0,
|
||||
`locked_until` int unsigned NOT NULL DEFAULT 0,
|
||||
`payment_failed_attempts` int unsigned NOT NULL DEFAULT 0,
|
||||
`payment_locked_until` int unsigned NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`user_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='账号安全凭证';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `fa_user_enterprise_cert` (
|
||||
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
||||
`user_id` int unsigned NOT NULL,
|
||||
`company_name` varchar(255) NOT NULL,
|
||||
`license_no` varchar(64) NOT NULL,
|
||||
`license_image` varchar(255) NOT NULL,
|
||||
`legal_person` varchar(100) NOT NULL DEFAULT '',
|
||||
`verify_status` enum('pending','pass','reject') NOT NULL DEFAULT 'pending',
|
||||
`audit_msg` varchar(500) NOT NULL DEFAULT '',
|
||||
`createtime` int unsigned NOT NULL DEFAULT 0,
|
||||
`updatetime` int unsigned NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id`), UNIQUE KEY `user_id` (`user_id`), KEY `verify_status` (`verify_status`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户企业资质认证';
|
||||
在新工单中引用
屏蔽一个用户