feat(plugin): add link address for plugin

This commit is contained in:
LinkinStars 2023-03-02 11:03:24 +08:00
parent a1bdb2bd80
commit 666471ec24
3 changed files with 3 additions and 0 deletions

View File

@ -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
})

View File

@ -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 {

View File

@ -7,6 +7,7 @@ type Info struct {
Description Translator
Author string
Version string
Link string
}
// Base is the base plugin