Add plugin
AddPlugin¶
Description: Register a new plugin by providing its metadata, configuration, and hook/event settings.
Request Parameters¶
{
"priority": 1,
"version": 100,
"name": "SamplePlugin",
"module_name": "sample_plugin",
"web": "https://plugin.example.com",
"description": "This plugin handles sample tasks.",
"module": "SampleModule",
"file": "sample_plugin.so",
"config": "{...}",
"enable": 1,
"mode": 0,
"hook_trade": 1,
"hook_user": 1,
"event_trade": 1,
"event_account": 1,
"server_api": 1
}
Response Parameters¶
{
"data": "OK"
}