更新时间:2024-11-21 GMT+08:00
分享

根据object_id查询对象布局

功能介绍

按照object_id查询对象布局。

URI

GET AstroZero域名/u-route/baas/metadata/v1.0/object/{object_id}/Layout

表1 路径参数

参数

是否必选

参数类型

描述

object_Id

String

参数解释

对象的ID值,可通过调用查询所有自定义对象接口查看(响应消息中的“id”)。

约束限制

不涉及。

取值范围

不涉及。

默认取值

不涉及。

请求参数

响应参数

表2 响应参数

参数

参数类型

描述

resCode

String

参数解释

返回码。

取值范围

如果返回“0”代表请求成功,其他错误码说明请参考错误码

resMsg

String

参数解释

返回消息。

取值范围

如果成功状态,通常会返回“Success”,其他情况会返回具体的错误信息。

result

Array

参数解释

成功返回Layout对象信息的列表。

请求示例

按照ObjectID查询Layout列表。
GET https://AstroZero域名/u-route/baas/metadata/v1.0/object/cust000001Dgez2L19N2/Layout

响应示例

{
  "resCode": "0",
  "resMsg": "成功",
  "result": [
        {
            "belongTo": "",
            "content": "{\"name\":\"\",\"type\":\"\",\"view\":{\"name\":\"__layout__Test__t1__CST__detail\",\"fields\":[\"name\",\"Test__xxx__CST\",\"Test__Field1__CST\",\"Test__Field11__CST\",\"Test__Field3__CST\"]}}",
            "createdBy": "10gd000001DHHEwmE1NQ",
            "createdBy.name": "test00xx",
            "createdDate": "2024-06-06 16:19:07",
            "custom": true,
            "description": "Object detail layout",
            "events": [],
            "id": "000D000001Dgez2PYjS4",
            "isBaseline": false,
            "label": "t1 Detail",
            "lastModifiedBy": "10gd000001DHHEwmE1NQ",
            "lastModifiedBy.name": "test00xx",
            "lastModifiedDate": "2024-06-07 11:05:50",
            "name": "t1 Detail",
            "objectId": "cust000001Dgez2L19N2",
            "owner": "10gd000001DHHEwmE1NQ",
            "owner.name": "test00xx",
            "params": [],
            "protectMode": 0,
            "type": "ObjectDetailLayout",
            "visibility": 0
        },
        {
            "belongTo": "",
            "content": "{\"name\":\"\",\"type\":\"\",\"view\":{\"name\":\"__layout__Test__t1__CST__tymbj\",\"fields\":[\"name\",\"Test__xxx__CST\",\"Test__Field1__CST\",\"Test__Field11__CST\",\"Test__Field3__CST\"]}}",
            "createdBy": "10gd000001DHHEwmE1NQ",
            "createdBy.name": "test00xx",
            "createdDate": "2024-06-07 11:41:37",
            "custom": true,
            "description": "Object detail layout",
            "events": [],
            "id": "000D000001Di03Y85Faq",
            "isBaseline": false,
            "label": "tymbj",
            "lastModifiedBy": "10gd000001DHHEwmE1NQ",
            "lastModifiedBy.name": "test00xx",
            "lastModifiedDate": "2024-06-07 11:41:37",
            "name": "tymbj",
            "objectId": "cust000001Dgez2L19N2",
            "owner": "10gd000001DHHEwmE1NQ",
            "owner.name": "test00xx",
            "params": [],
            "protectMode": 0,
            "type": "ObjectDetailLayout",
            "visibility": 0
        },
        {
            "belongTo": "",
            "content": "{\"name\":\"\",\"type\":\"\",\"view\":{\"name\":\"__lay#@@#out__Test__t1__CST__asdasdassadasdasssssssssssssssssssssssssdasfasfasfasf\",\"fields\":[\"name\",\"Test__xxx__CST\",\"Test__Field1__CST\",\"Test__Field11__CST\",\"Test__Field3__CST\"]}}",
            "createdBy": "10gd000001DHHEwmE1NQ",
            "createdBy.name": "test00xx",
            "createdDate": "2024-06-07 14:12:39",
            "custom": true,
            "description": "Object detail layout",
            "events": [],
            "id": "000D000001DiAqgg54Nc",
            "isBaseline": false,
            "label": "asdassdasdasfasadsdasd",
            "lastModifiedBy": "10gd000001DHHEwmE1NQ",
            "lastModifiedBy.name": "test00xx",
            "lastModifiedDate": "2024-06-07 14:12:39",
            "name": "asdassdasdasfasadsdasd",
            "objectId": "cust000001Dgez2L19N2",
            "owner": "10gd000001DHHEwmE1NQ",
            "owner.name": "test00xx",
            "params": [],
            "protectMode": 0,
            "type": "ObjectDetailLayout",
            "visibility": 0
        },
        {
            "belongTo": "",
            "content": "{\"name\":\"\",\"type\":\"\",\"view\":{\"name\":\"__layout__Test__t1__CST__records\",\"fields\":[\"name\"]}}",
            "createdBy": "10gd000001DHHEwmE1NQ",
            "createdBy.name": "test00xx",
            "createdDate": "2024-06-06 16:19:07",
            "custom": true,
            "description": "Object records layout",
            "events": [],
            "id": "000D000001Dgez2PYjS5",
            "isBaseline": false,
            "label": "t1 Records",
            "lastModifiedBy": "10gd000001DHHEwmE1NQ",
            "lastModifiedBy.name": "test00xx",
            "lastModifiedDate": "2024-06-06 16:19:07",
            "name": "t1 Records",
            "objectId": "cust000001Dgez2L19N2",
            "owner": "10gd000001DHHEwmE1NQ",
            "owner.name": "test00xx",
            "params": [],
            "protectMode": 0,
            "type": "ObjectRecordsLayout",
            "visibility": 0
        },
        {
            "belongTo": "",
            "content": "{\"name\":\"\",\"type\":\"\",\"view\":{\"name\":\"__layout__Test__t1__CST__dasdsdasdasdsdddddddddddddddddd\",\"fields\":[\"name\"]}}",
            "createdBy": "10gd000001DHHEwmE1NQ",
            "createdBy.name": "test00xx",
            "createdDate": "2024-06-07 11:45:07",
            "custom": true,
            "description": "Object records layout",
            "events": [],
            "id": "000D000001Di0J4JicDo",
            "isBaseline": false,
            "label": "dasdsdasdasdsdddddddddddddddddd",
            "lastModifiedBy": "10gd000001DHHEwmE1NQ",
            "lastModifiedBy.name": "test00xx",
            "lastModifiedDate": "2024-06-07 11:45:07",
            "name": "dasdsdasdasdsdddddddddddddddddd",
            "objectId": "cust000001Dgez2L19N2",
            "owner": "10gd000001DHHEwmE1NQ",
            "owner.name": "test00xx",
            "params": [],
            "protectMode": 0,
            "type": "ObjectRecordsLayout",
            "visibility": 0
        }
    ]
}   

状态码

状态码请参见状态码

错误码

错误码请参见错误码

相关文档