router/api-router.go:391。controller.ApplyVendorOperation,controller/vendor_meta.go:125。model:write。同时需要满足接口的角色和业务要求。Authorization: Bearer ********************curl --location '/api/vendors/operations' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"action": "assign",
"vendor_ids": [
1
],
"model_ids": [
1
],
"target_vendor_id": 0,
"expected_version": "string",
"property1": "string",
"property2": "string"
}'{
"success": true,
"message": "string",
"data": {
"updated_models": [
0
],
"deleted_vendors": [
0
],
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}