rgb 转换成 int color 值
color = r << 16 + g << 8 + b
color 转换成 rgb 值
r = (color >> 16 ) & 0xff
g = (color >> 8) & 0xff
b = color & 0xff
{
"name": "string",
"style": "string",
"color": 0,
"size": 0,
"desc": "string",
"coord": {
"lng": 0,
"lat": 0
}
}
curl --location --request POST 'https://192.168.88.32:9781/bvcsp/v1/maplabel/point/create' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"style": "string",
"color": 0,
"size": 0,
"desc": "string",
"coord": {
"lng": 0,
"lat": 0
}
}'
{
"code": 0,
"msg": "string",
"data": {
"id": "string",
"name": "string",
"style": "string",
"color": 0,
"size": 0,
"desc": "string",
"coord": {
"lng": 0,
"lat": 0
},
"creator": "string",
"creatorName": "string"
}
}