更新时间:2024-06-28 GMT+08:00
分享

根据ID查询标准页面

功能介绍

按view_id查询标准页面。

URI

GET AstroZero域名/u-route/baas/metadata/v1.0/View/{view_id}

表1 参数说明

参数

是否必选

参数类型

描述

view_id

String

参数解释

标准页面的ID值,可通过调用5.2.8.1-查询标准页面列表接口查看(响应消息中的“id”)。

约束限制

不涉及。

取值范围

不涉及。

默认取值

不涉及。

请求参数

响应参数

表2 响应参数

参数

参数类型

描述

resCode

String

参数解释

返回码。

取值范围

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

resMsg

String

参数解释

返回消息。

取值范围

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

result

Object

参数解释

成功返回标准页面的详细信息。

请求示例

按照标准页面ID“003g000001DHkGa4LkkC”查询该应用详细信息。

GET https://AstroZero域名/u-route/baas/metadata/v1.0/View/003g000001DHkGa4LkkC

响应示例

{
	"resCode": "0",
	"resMsg": "成功",
        "result": {
             "active": false,
             "application": null,
             "belongTo": "000f000001DHIByJ3nKC",
             "belongTo.__objectType": "Application",
             "belongTo.name": "",
             "createdBy": "10gd000001DHHEwmE1NQ",
             "createdBy.__objectType": "User",
             "createdBy.name": "test00xx",
             "createdDate": "2024-05-22 16:02:55",
             "custom": true,
             "customStyle": null,
             "description": null,
             "events": [{
                "action": "[{\"type\":\"$core.execJSCode\",\"options\":{\"content\":\"// Current Component\\r\\nlet _component = context.getCurrentComponent()\\r\\n\\r\\n// Current Form\\r\\nlet  _form = _component.getForm()\\r\\n\\r\\n_form.formSave()\\r\\n\"}}]",
                "belongTo": null,
                "createdBy": "10gd000001DHHEwmE1NQ",
                "createdBy.__objectType": "User",
                "createdBy.name": "test00xx",
                "createdDate": "2024-05-22 16:02:55",
                "custom": true,
                "id": "003h000001DHkGa8bjhA",
                "installedPackage": null,
                "lastModifiedBy": "10gd000001DHHEwmE1NQ",
                "lastModifiedBy.__objectType": "User",
                "lastModifiedBy.name": "test00xx",
                "lastModifiedDate": "2024-05-22 16:02:55",
                "name": "button_0_click",
                "owner": "10gd000001DHHEwmE1NQ",
                "owner.__objectType": "User",
                "owner.name": "test00xx",
                "protectMode": 0,
                "view": "003g000001DHkGa4LkkC",
                "view.__objectType": "View",
                "view.name": "__layout__Test__ApprovedResource__CST__detail",
                "visibility": 0
               },
               {
                "action": "[{\"type\":\"$core.execJSCode\",\"options\":{\"content\":\"// Current Component\\r\\nlet _component = context.getCurrentComponent()\\r\\n\\r\\n// Current Form\\r\\nlet  _form = _component.getForm()\\r\\n\\r\\n_form.resetFields()\\r\\n\"}}]",
                "belongTo": null,
                "createdBy": "10gd000001DHHEwmE1NQ",
                "createdBy.__objectType": "User",
                "createdBy.name": "test00xx",
                "createdDate": "2024-05-22 16:02:55",
                "custom": true,
                "id": "003h000001DHkGa8tKpE",
                "installedPackage": null,
                "lastModifiedBy": "10gd000001DHHEwmE1NQ",
                "lastModifiedBy.__objectType": "User",
                "lastModifiedBy.name": "test00xx",
                "lastModifiedDate": "2024-05-22 16:02:55",
                "name": "button_1_click",
                "owner": "10gd000001DHHEwmE1NQ",
                "owner.__objectType": "User",
                "owner.name": "test00xx",
                "protectMode": 0,
                "view": "003g000001DHkGa4LkkC",
                "view.__objectType": "View",
                "view.name": "__layout__Test__ApprovedResource__CST__detail",
                "visibility": 0
               }
             ],
             "id": "003g000001DHkGa4LkkC",
             "installedPackage": null,
             "label": "Test__ApprovedResource__CST Detail",
             "lastModifiedBy": "10gd000001DHHEwmE1NQ",
             "lastModifiedBy.__objectType": "User",
             "lastModifiedBy.name": "test00xx",
             "lastModifiedDate": "2024-05-22 16:02:55",
             "layer": "null",
             "libraries": "[]",
             "lockTime": "",
             "lockUser": "",
             "logo": null,
             "name": "__layout__Test__ApprovedResource__CST__detail",
             "overridable": true,
             "owner": "10gd000001DHHEwmE1NQ",
             "owner.__objectType": "User",
             "owner.name": "test00xx",
             "pageType": null,
             "protectMode": 0,
             "referencePageId": null,
             "type": "Page",
             "version": "1.0.1",
             "viewData": "{\"key\":1,\"type\":\"DesignerPage\",\"props\":{\"name\":\"DesignerPage_1\"},\"elements\":[{\"key\":1538107283948000,\"type\":\"form\",\"props\":{\"labelPosition\":\"top\",\"labelWidth\":120,\"name\":\"form_0\",\"dataSource\":\"Test__ApprovedResource__CST\",\"dataSourceType\":\"Entity\",\"layout\":{\"key\":\"one_one_one\",\"value\":[8,8,8]},\"dataSourceId\":\"Test__ApprovedResource__CST\"},\"attrs\":{},\"on\":{},\"elements\":[{\"key\":1535715199303019,\"type\":\"title\",\"props\":{\"text\":\"ApprovedResource\",\"value\":\"ApprovedResource\",\"class\":\"form-title-container\",\"name\":\"title_1\"},\"attrs\":{},\"on\":{},\"elements\":[]},{\"key\":1535715199303039,\"type\":\"container\",\"props\":{\"name\":\"container_1\"},\"attrs\":{},\"on\":{},\"elements\":[{\"key\":1535715199303036,\"type\":\"layoutgrid\",\"props\":{\"name\":\"layoutgrid_1\"},\"attrs\":{},\"on\":{},\"elements\":[{\"key\":1888001472428500,\"type\":\"row\",\"props\":{\"layout\":{\"pc\":{\"key\":\"one_one_one\",\"value\":[8,8,8]},\"pad\":{\"key\":\"pad1\",\"value\":[24]},\"phone\":{\"key\":\"phone1\",\"value\":[24]}},\"name\":\"row_0\"},\"attrs\":{},\"on\":{},\"elements\":[{\"key\":1888001472428501,\"type\":\"col\",\"props\":{\"align\":\"left\",\"lg\":8,\"md\":8,\"sm\":24,\"xs\":24,\"name\":\"col_3\"},\"attrs\":{},\"on\":{},\"elements\":[{\"key\":1888001472428502,\"dataBinding\":{\"default\":{\"model\":[\"form_0\",\"name\"]}},\"type\":\"input\",\"props\":{\"type\":\"text\",\"dataField\":\"name\",\"dataFieldType\":\"xs_string\",\"label\":\"{\\\"en_US\\\":\\\"Name\\\",\\\"zh_CN\\\":\\\"名称\\\"}\",\"name\":\"input_1716364974936\",\"readonly\":false}}]}]}]},{\"key\":1535946611880038,\"type\":\"container\",\"props\":{\"align\":\"center\",\"class\":\"form-buttons-container\",\"name\":\"container_1\"},\"attrs\":{},\"on\":{},\"elements\":[{\"key\":1535946611880036,\"type\":\"button\",\"props\":{\"text\":\"{\\\"en_US\\\":\\\"Save\\\",\\\"fr_FR\\\":\\\"\\\",\\\"ja_JP\\\":\\\"\\\",\\\"zh_CN\\\":\\\"保存\\\"}\",\"style\":\"margin-right:20px;\",\"type\":\"primary\",\"name\":\"button_0\"},\"attrs\":{},\"on\":{\"click\":{\"actions\":[{\"type\":\"$core.execJSCode\",\"options\":{\"content\":\"// Current Component\\r\\nlet _component = context.getCurrentComponent()\\r\\n\\r\\n// Current Form\\r\\nlet  _form = _component.getForm()\\r\\n\\r\\n_form.formSave()\\r\\n\"}}],\"graph\":\"\",\"serviceList\":[]}},\"elements\":[]},{\"key\":1535946611880037,\"type\":\"button\",\"props\":{\"text\":\"{\\\"en_US\\\":\\\"Reset\\\",\\\"fr_FR\\\":\\\"\\\",\\\"ja_JP\\\":\\\"\\\",\\\"zh_CN\\\":\\\"重置\\\"}\",\"style\":\"\",\"name\":\"button_1\"},\"attrs\":{},\"on\":{\"click\":{\"actions\":[{\"type\":\"$core.execJSCode\",\"options\":{\"content\":\"// Current Component\\r\\nlet _component = context.getCurrentComponent()\\r\\n\\r\\n// Current Form\\r\\nlet  _form = _component.getForm()\\r\\n\\r\\n_form.resetFields()\\r\\n\"}}],\"graph\":\"\",\"serviceList\":[]}},\"elements\":[]}]}]}],\"dataBinding\":{\"default\":{\"model\":[\"form_0\"]}}}],\"dependencies\":[{\"names\":{\"extendNames\":[],\"pageMasterNames\":[],\"cardNames\":[]}}],\"version\":\"1.0.2\"}",
             "viewModel": "{\"form_0\":{\"mapping\":[{\"bindType\":\"object\",\"bindName\":\"Test__ApprovedResource__CST\",\"include\":\"ALL\",\"exclude\":\"\"}],\"fields\":[{\"name\":\"form_0\",\"label\":\"form_0\",\"type\":\"object\",\"isRequired\":false,\"defaultValue\":{},\"expand\":false,\"orign\":[{\"type\":\"Test__ApprovedResource__CST\",\"name\":\"Test__ApprovedResource__CST\",\"mappingField\":\"Test__ApprovedResource__CST\"}],\"rootInstanceId\":\"form_0\",\"_uid\":0},{\"name\":\"name\",\"label\":\"{\\\"en_US\\\":\\\"Name\\\",\\\"zh_CN\\\":\\\"名称\\\"}\",\"type\":\"xs_string\",\"orign\":[{\"type\":\"object\",\"name\":\"Test__ApprovedResource__CST\",\"mappingField\":\"name\"}],\"parentId\":\"form_0\",\"expand\":false,\"rootInstanceId\":\"form_0\",\"_uid\":1}],\"actions\":[{\"name\":\"query\",\"type\":\"object\",\"method\":\"query\",\"uri\":\"Test__ApprovedResource__CST\",\"input\":[],\"output\":[{\"fieldName\":\"name\",\"mappingField\":\"name\"}]},{\"name\":\"save\",\"type\":\"object\",\"method\":\"save\",\"uri\":\"Test__ApprovedResource__CST\",\"output\":[],\"input\":[{\"fieldName\":\"name\",\"mappingField\":\"name\"}]},{\"name\":\"delete\",\"type\":\"object\",\"method\":\"delete\",\"uri\":\"Test__ApprovedResource__CST\",\"output\":[],\"input\":[{\"fieldName\":\"name\",\"mappingField\":\"name\"}]},{\"name\":\"count\",\"type\":\"object\",\"method\":\"count\",\"uri\":\"Test__ApprovedResource__CST\",\"input\":[],\"output\":[]}]}}",
             "visibility": 0
    }
}

状态码

状态码请参见状态码

错误码

错误码请参见错误码

相关文档