mirror of https://gitee.com/answerdev/answer.git
feat(plugin): add link address for plugin
This commit is contained in:
parent
a1bdb2bd80
commit
666471ec24
|
@ -55,6 +55,7 @@ func (pc *PluginController) GetPluginList(ctx *gin.Context) {
|
|||
Version: info.Version,
|
||||
Enabled: plugin.StatusManager.IsEnabled(info.SlugName),
|
||||
HaveConfig: pluginConfigMapping[info.SlugName],
|
||||
Link: info.Link,
|
||||
})
|
||||
return nil
|
||||
})
|
||||
|
|
|
@ -24,6 +24,7 @@ type GetPluginListResp struct {
|
|||
Version string `json:"version"`
|
||||
Enabled bool `json:"enabled"`
|
||||
HaveConfig bool `json:"have_config"`
|
||||
Link string `json:"link"`
|
||||
}
|
||||
|
||||
type UpdatePluginStatusReq struct {
|
||||
|
|
|
@ -7,6 +7,7 @@ type Info struct {
|
|||
Description Translator
|
||||
Author string
|
||||
Version string
|
||||
Link string
|
||||
}
|
||||
|
||||
// Base is the base plugin
|
||||
|
|
Loading…
Reference in New Issue