{
"name": "转发mysql",
"type": "DB",
"host": "127.0.0.1",
"port": 3306,
"url": "",
"username": "root",
"password": "root",
"dbName": "db_test",
"dbDriver": "mysql",
"dbTable": "t_forward"
}
curl --location --request POST 'ssiot.cc/api/forward/server/add' \
--header 'Authentication: 在用户管理中创建或通过login接口获取' \
--header 'Authentication;' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "转发mysql",
"type": "DB",
"host": "127.0.0.1",
"port": 3306,
"url": "",
"username": "root",
"password": "root",
"dbName": "db_test",
"dbDriver": "mysql",
"dbTable": "t_forward"
}'
{"code":200,"message":"操作成功","result":{"id":"721212f00ed04725ad480be55a8f30d0","name":"liuzhou转发mq","type":"MQTT","host":"120.25.223.131","port":41883,"url":"","username":"","password":"","dbName":"","creatorId":"","agencyId":"","createTime":"2023-03-14T16:49:12.5012247+08:00","updateTime":"2023-03-14T16:49:12.5012247+08:00","connectStatus":"","lastForwardTime":null,"forwardCount":0},"success":true,"timestamp":1678783752552}