新增分享,找回密码,实名认证,签约

This commit is contained in:
唐明明
2023-08-25 14:04:31 +08:00
parent 32cc588ae7
commit 0f7c37d548
106 changed files with 2130 additions and 1313 deletions

45
api/interfaces/idcard.js Normal file
View File

@@ -0,0 +1,45 @@
/*
* 手太欠
* 愿这世界都如故事里一样 美好而动人~
*/
import { req, upload } from "../request"
// 上传身份证
const updIdcard = (path, data) => upload({
key : "upload",
url : "user/certification/upload",
path,
data
})
// 提交身份信息
const ocr = data => req({
url : "user/certification",
data,
method : "POST"
})
// 获取认证信息
const getInfo = () => req({
url : "user/certification",
})
// 获取认证地址
const signUrl = data => req({
url : "user/certification/go_real",
data
})
// 获取签约地址
const pactUrl = () => req({
url : "user/certification/go_contract"
})
export default ({
updIdcard,
ocr,
getInfo,
signUrl,
pactUrl
})