分页

简要描述:

  • 分页

请求URL:

  • http://192.168.11.145/device-management/device/type/page

请求方式:

  • Get

参数:

参数名 必选 类型 说明
name String 名称, 模糊查询
page int 页码
limit int 每页条数

请求示例

http://192.168.11.145/device-management/device/type/page?page=1&limit=10&name

返回示例

{
    "msg": "success",
    "code": 0,
    "data": {
        "total": 2,
        "size": 10,
        "current": 1,
        "records": [
            {
                "delFlag": "0",
                "remark": null,
                "createTime": "2020-11-03 10:25:08",
                "updateTime": "2020-11-03 10:57:54",
                "createBy": 2,
                "updateBy": null,
                "id": 2,
                "code": null,
                "tenantId": 44,
                "name": "name11",
                "indexCode": null,
                "parentId": 0,
                "parentName": null,
                "createName": "梁云",
                "children": null
            },
            {
                "delFlag": "0",
                "remark": null,
                "createTime": "2020-11-03 10:44:29",
                "updateTime": "2020-11-03 10:57:54",
                "createBy": 2,
                "updateBy": 2,
                "id": 3,
                "code": null,
                "tenantId": 44,
                "name": "qwe",
                "indexCode": "2-",
                "parentId": 2,
                "parentName": "name11",
                "createName": "梁云",
                "children": null
            }
        ],
        "pages": 1
    }
}

返回参数说明

参数名 类型 说明
code int 状态码, 0:成功;其他:异常
message String 描述信息
data object 返回数据
id Integer id
code String 编号
tenantId Integer 租户 ID
name String 名称
indexCode String 索引列(所有父级编码,用-分割)
parentId Integer 父级Id
parentName String 父级名称
createName String 创建人

备注