添加点的时候,我们采用后插法,prePointId表示上一个节点的id;如果为0,表示在头部插入节点;
添加多个点时,prePointId 为-1表示在上一个节点后添加;返回值中,如果id <= 0 表示未插入成功
{
"mapLabelId": "string",
"coords": [
{
"id": 0,
"prePointId": 0,
"lng": 0,
"lat": 0
}
]
}
curl --location --request POST 'https://192.168.88.32:9781/bvcsp/v1/maplabel/location/create' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"mapLabelId": "string",
"coords": [
{
"id": 0,
"prePointId": 0,
"lng": 0,
"lat": 0
}
]
}'
{
"code": 0,
"msg": "string",
"data": [
{
"id": 0,
"prePointId": 0,
"mapLabelId": "string",
"lng": 0,
"lat": 0
}
]
}