domainBAPI接口说明.md 1.7 KB

domainBAPI接口说明

接口1: 路由查询

  • 实现细节:

基本透传结果,需要注意非联通号码返回信息不同

POST HTTP://127.0.0.1:12091/domainB/api/route/
Content-Type: application/json

{
  "phoneNumber": "18503369666",
  "fromSystem": "test"
}
{
  "success": true,
  "code": 200,
  "message": "成功",
  "data": {
    "phoneNumber": "18503369666",
    "isUnicomNumber": true,
    "userStatus": "2",
    "routeType": "00",
    "eparchyCode": "0335",
    "provinceCode": "18"
  }
}

接口2: 5GSA查询

  • 实现细节:

需要查询全国用户,因此需要套一层路由查询

POST HTTP://127.0.0.1:12091/domainB/api/sa/
Content-Type: application/json

{
  "phoneNumber": "18503369666",
  "fromSystem": "test"
}
{
  "success": true,
  "code": 200,
  "message": "成功",
  "data": {
    "isUnicomNumber": true,
    "isHaveSa": true,
    "isUdmUser": true
  }
}

接口3: 功能查询

  • 实现细节:

由于操作员权限限制,查询仅支持河北联通用户,需要注意处理非河北联通用户及非联通用户的特殊情况

POST HTTP://127.0.0.1:12091/domainB/api/product/saAndVolte/
Content-Type: application/json

{
  "phoneNumber": "18503369666",
  "fromSystem": "test"
}
{
  "success": true,
  "code": 200,
  "message": "成功",
  "data": {
    "isHebeiUnicomNumber": true,
    "isHaveSa": true,
    "isHaveVolte": true
  }
}

接口4:用户资料三户返回

POST HTTP://127.0.0.1:12091/domainB/api/threePart/userState/
Content-Type: application/json

{
  "phoneNumber": "18503369666",
  "fromSystem": "test"
}

```json { "success": true, "code": 200, "message": "成功", "data": {

"userState": "0"

} }