序:重点就是取别名和collection中添加column=“XX(去重字段)”
结果集
{
"code": 0,
"msg": null,
"data": {
"userId": 13,
"nickname": "林菲菲",
"userPicList": [{
"id": 2,
"picUr": "https://gimg2.baidu.com/image_search",
"userId": 13
},
{
"id": 3,
"picUr": "https://gimg2.baidu.com/image_search",
"userId": 13
}
],
"userHobbies": [{
"id": 1,
"userId": 13,
"itemIds": "{\"1\":\"吃鸡\",\"2\":\"贪吃蛇\"}",
"name": "游戏"
},
{
"id": 2,
"userId": 13,
"itemIds": "{\"1\":\"古典\"}",
"name": "音乐"
}
]
}
}
···