我在环回项目中有以下模型定义:`
{
"name": "Program",
"base": "PersistedModel",
"properties": {
"sId": {
"type": "string",
"required": true,
"length": 20
},
"Category": {
"type": "string",
"length": 255,
"description": "Category"
},
"ProgramName": {
"type": "string",
"length": 255,
"description": "Program Name"
},
"Program_Status": {
"type": "string",
"length": 255,
"description": "Program Status"
}
},
"validations": [],
"relations": {
"account": {
"type": "belongsTo",
"model": "Account",
"foreignKey": "Account__c",
"primaryKey": "sId"
},
},
"methods": {}
}
`
我想获取在任何其他模型中的字段名称中定义的描述值。无论如何在 loopback 或 express.js 中可以得到它?