GetPluginConfig 获取插件配置
(httpResponse http.ResponseWriter, httpRequest *http.Request)
| 242 | |
| 243 | //GetPluginConfig 获取插件配置 |
| 244 | func GetPluginConfig(httpResponse http.ResponseWriter, httpRequest *http.Request) { |
| 245 | |
| 246 | pluginName := httpRequest.PostFormValue("pluginName") |
| 247 | flag, result, err := plugin.GetPluginConfig(pluginName) |
| 248 | if !flag { |
| 249 | |
| 250 | controller.WriteError(httpResponse, |
| 251 | "210000", |
| 252 | "plugin", |
| 253 | "[ERROR]The plugin does not exist!", |
| 254 | err) |
| 255 | return |
| 256 | |
| 257 | } |
| 258 | controller.WriteResultInfo(httpResponse, "plugin", "pluginConfig", result) |
| 259 | |
| 260 | return |
| 261 | } |
| 262 | |
| 263 | //CheckIndexIsExist 判断插件优先级是否存在 |
| 264 | func CheckIndexIsExist(httpResponse http.ResponseWriter, httpRequest *http.Request) { |
nothing calls this directly
no test coverage detected