router/api-router.go:260。controller.FetchUpstreamRatios,controller/ratio_sync.go:211。option:write。同时需要满足接口的角色和业务要求。curl --location '/api/ratio_sync/fetch' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"channel_ids": [
0
],
"upstreams": [
{
"id": 0,
"name": "string",
"base_url": "string",
"endpoint": "string",
"property1": "string",
"property2": "string"
}
],
"timeout": 0,
"property1": "string",
"property2": "string"
}'{
"data": {
"differences": {
"property1": {
"property1": {
"current": null,
"upstreams": {
"property1": "string",
"property2": "string"
},
"confidence": {
"property1": true,
"property2": true
},
"property1": "string",
"property2": "string"
},
"property2": {
"current": null,
"upstreams": {
"property1": "string",
"property2": "string"
},
"confidence": {
"property1": true,
"property2": true
},
"property1": "string",
"property2": "string"
}
},
"property2": {
"property1": {
"current": null,
"upstreams": {
"property1": "string",
"property2": "string"
},
"confidence": {
"property1": true,
"property2": true
},
"property1": "string",
"property2": "string"
},
"property2": {
"current": null,
"upstreams": {
"property1": "string",
"property2": "string"
},
"confidence": {
"property1": true,
"property2": true
},
"property1": "string",
"property2": "string"
}
}
},
"prices": {
"property1": "string",
"property2": "string"
},
"test_results": [
{
"name": "string",
"status": "string",
"error": "string",
"property1": "string",
"property2": "string"
}
],
"property1": "string",
"property2": "string"
},
"success": true,
"property1": "string",
"property2": "string"
}