是否可以在ExtJS 6.0.2框架上建立模型(用户和组)之间的链接,如果这些模型来自不同的网址,采用这种类型的json格式? 协会应该在字段'group_id'上一对一
JSON响应示例:
url:data / groups.json
{
"success": true,
"groups": [
{"name": "admins", "id":1, "description": "full access"},
{"name": "users", "id":2, "description": "limit access"},
{"name": "guests", "id":3, "description": "others"},
]
}
url:data / users.json
{
"success": true,
"users": [
{
"name":"Ted",
"age": 22,
"gender":"Male",
"id":1,
"group_id": 2
},
{
"name":"Ed",
"age" : 33,
"gender":"Male",
"id":2,
"group_id": 1
},
{
"name":"Test",
"age" : 44,
"gender":"Female",
"id":3,
"group_id": 1
}
]
}