获取列表

更新时间:2021-02-22 17:12:58

接口说明

获取列表

基本信息

请求方式:POST

请求路径:

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

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
tenant_code query string 租户号
table_name body string t_room 表名
row_version body string 1576064378 时间戳
last_id body string 39f7ad35-790e-3267-6d41-2b3cc31a8f0c 最新数据主键ID
append_condition body object 需要查询的字段
append_condition.id body string 128b7666-d99c-4b0e-925d-b25001d00875 自定义查询条件
is_deleted body string 0 一次获取的数据条数
limit body string 10 是否删除状态

请求示例


{
    "table_name":"t_room",
    "row_version":"1576064378",
    "last_id": "39f7ad35-790e-3267-6d41-2b3cc31a8f0c",
    "append_condition":{"id":"128b7666-d99c-4b0e-925d-b25001d00875"},
    "is_deleted":"0",
    "limit":"10"
}

返回成功示例

{
    "errcode": 0,
    "errMsg": "获取成功",
    "rowVersion": 1591177628119,
    "lastId": "39de9ca9-104a-a9d7-5918-71c7332227a7",
    "data": []
 }

返回参数说明(成功)

参数名 参数类型 描述
errcode number 错误码
errMsg string 错误描述
rowVersion number 时间戳
lastId string 最新数据ID
data array 接口返回数据

失败返回示例

{
    "errcode": 9000,
    "errMsg": "租户code不能为空",
    "data": []
  }

返回参数说明(失败)

参数名 参数类型 描述
errcode number 错误码
errMsg string 错误描述
data array 接口返回数据

results matching ""

    No results matching ""