Implement credit parse result polling and sentinel handling
This commit is contained in:
@@ -113,18 +113,50 @@ response = requests.post(
|
||||
curl -s -X POST http://localhost:8000/api/service/interface/invokeService/xfeature \
|
||||
-H 'Content-Type: application/x-www-form-urlencoded' \
|
||||
-d serialNum=CCDI_CREDIT_1 \
|
||||
-d orgCode=902000 \
|
||||
-d orgCode=999000 \
|
||||
-d runType=1 \
|
||||
-d remotePath=http://127.0.0.1:62318/profile/credit-html/sample-credit.html \
|
||||
-d model=LXCUSTALL
|
||||
```
|
||||
|
||||
成功时返回:
|
||||
发起成功时返回:
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"code": 1000,
|
||||
"code": 10000,
|
||||
"data": {
|
||||
"mappingOutputFields": {
|
||||
"message": "文件写入成功,流水号为: CCDI_CREDIT_1"
|
||||
},
|
||||
"reasonMessage": "Running successfully",
|
||||
"outputFields": {
|
||||
"C_S_ZXJXMESSAGE": "文件写入成功,流水号为: CCDI_CREDIT_1"
|
||||
},
|
||||
"procCode": "999000",
|
||||
"bizId": "CCDI_CREDIT_1",
|
||||
"reasonCode": 200,
|
||||
"status": 1
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
再用相同 `serialNum` 查询解析结果:
|
||||
|
||||
```bash
|
||||
curl -s -X POST http://localhost:8000/api/service/interface/invokeService/xfeatureResult \
|
||||
-H 'Content-Type: application/x-www-form-urlencoded' \
|
||||
-d serialNum=CCDI_CREDIT_1 \
|
||||
-d orgCode=999000 \
|
||||
-d runType=1
|
||||
```
|
||||
|
||||
结果成功时返回:
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"code": 10000,
|
||||
"data": {
|
||||
"mappingOutputFields": {
|
||||
"message": "成功",
|
||||
@@ -134,7 +166,10 @@ curl -s -X POST http://localhost:8000/api/service/interface/invokeService/xfeatu
|
||||
"lx_debt": {},
|
||||
"lx_publictype": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
"reasonMessage": "成功",
|
||||
"reasonCode": 200,
|
||||
"status": 1
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -145,7 +180,7 @@ curl -s -X POST http://localhost:8000/api/service/interface/invokeService/xfeatu
|
||||
curl -s -X POST http://localhost:8000/api/service/interface/invokeService/xfeature \
|
||||
-H 'Content-Type: application/x-www-form-urlencoded' \
|
||||
-d serialNum=CCDI_CREDIT_1 \
|
||||
-d orgCode=902000 \
|
||||
-d orgCode=999000 \
|
||||
-d runType=1 \
|
||||
-d remotePath=http://127.0.0.1:62318/profile/credit-html/sample-credit.html \
|
||||
-d model=error_ERR_10001
|
||||
@@ -270,8 +305,9 @@ pytest tests/ -v --cov=. --cov-report=html
|
||||
| 4 | POST | `/watson/api/project/upload/getpendings` | 检查解析状态 |
|
||||
| 5 | POST | `/watson/api/project/batchDeleteUploadFile` | 删除文件 |
|
||||
| 6 | POST | `/watson/api/project/getBSByLogId` | 获取银行流水 |
|
||||
| 7 | POST | `/api/service/interface/invokeService/xfeature` | 征信解析 Mock |
|
||||
| 8 | GET | `/credit/health` | 征信解析健康检查 |
|
||||
| 7 | POST | `/api/service/interface/invokeService/xfeature` | 征信解析发起 Mock |
|
||||
| 8 | POST | `/api/service/interface/invokeService/xfeatureResult` | 征信解析结果 Mock |
|
||||
| 9 | GET | `/credit/health` | 征信解析健康检查 |
|
||||
|
||||
## ⚠️ 错误码列表
|
||||
|
||||
|
||||
Reference in New Issue
Block a user