获取客户列表前端分页接口

更新时间:2022-09-23 13:59:43

接口说明

获取客户列表前端分页接口

基本信息

请求方式: POST

请求路径:

https://prod.open-api.mysre.cn/business-member/get-list

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
tenant_code query string 租户Code
user_id body string 用户ID
proj_id body string 项目ID
corp_id body string 公司ID
customer_type body string 分类
keyword body string 18617105201 关键字搜索
modified_start body string 业主更新时间开始时间
modified_end body string 业主更新时间结束时间
offset body number 0 页码
limit body number 20 每页记录数
building_id body string 楼栋ID

请求示例

{
    "user_id":"",
    "proj_id":"",
    "corp_id":"",
    "building_id":"",
    "customer_type":"",
    "keyword":"18617105201",
    "modified_start":"",
    "modified_end":"",
    "offset":"0",
    "limit":20
}

返回成功示例

{
    "errcode": 0,
    "errMsg": "获取成功",
    "rowVersion": "0000000000000",
    "lastId": "",
    "countData": 2,
    "data": {
        "items": [
            {
                "id": "39f95327-eda8-eaa7-4f41-371d8f87e09d",
                "name": "王镇宇",
                "mobile": "18617105201",
                "id_type": "身份证",
                "id_code": "430421199409258352",
                "customer_type": "",
                "room_list": [
                    "王镇宇的项目-一期-单区-B栋-1单元-1-104",
                    "王镇宇的项目-一期-单区-B栋-2单元-2-201",
                    "莱茵湖-一期-单区-C栋-102"
                ]
            },
            {
                "id": "39fd9b85-1979-0ea6-af53-eba93b1dadfb",
                "name": "测试测试123",
                "mobile": "18617105201!",
                "id_type": "",
                "id_code": "",
                "customer_type": "",
                "room_list": []
            },
            {
                "id": "39fe4ad9-113d-63ac-059a-d9671e336040",
                "name": "王镇宇",
                "mobile": "18617105201!",
                "id_type": "",
                "id_code": "",
                "customer_type": "",
                "room_list": []
            },
            {
                "id": "39fe4ad9-60d2-af0a-338d-90ffb308dc4f",
                "name": "王镇宇",
                "mobile": "18617105201!",
                "id_type": "",
                "id_code": "",
                "customer_type": "",
                "room_list": []
            },
            {
                "id": "f9d9125b-41f1-11ec-8384-ec0d9a46a456",
                "name": "测试测试123",
                "mobile": "18617105201!",
                "id_type": "",
                "id_code": "",
                "customer_type": "",
                "room_list": []
            },
            {
                "id": "f9dc5105-41f1-11ec-8384-ec0d9a46a456",
                "name": "王镇宇",
                "mobile": "18617105201!",
                "id_type": "",
                "id_code": "",
                "customer_type": "",
                "room_list": []
            },
            {
                "id": "f9dc55c5-41f1-11ec-8384-ec0d9a46a456",
                "name": "王镇宇",
                "mobile": "18617105201!",
                "id_type": "",
                "id_code": "",
                "customer_type": "",
                "room_list": []
            }
        ],
        "total": "7"
    }
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number 错误码
errMsg string 错误提示信息
rowVersion string 时间戳
lastId string
countData number
data object 数据集合
data.items array
data.items.id string 会员ID
data.items.name string 姓名
data.items.mobile string 手机号
data.items.id_type string 证件类型
data.items.id_code string 证件号码
data.items.customer_type string 分类
data.items.room_list array 房间列表
data.total string 记录数

失败返回示例

{
    "errcode":1001,
    "errMsg":"租户代码参数为空",
    "rowVersion":"",
    "data":[]
}

返回参数说明(失败)

参数名 参数类型 描述
errcode number
errMsg string
rowVersion string
data array

results matching ""

    No results matching ""