plugin

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelPlugin added in v1.5.0

func DelPlugin(c *gin.Context)

func GetPluginInfo added in v1.5.0

func GetPluginInfo(c *gin.Context)

GetPluginInfo 用于处理插件详情接口的请求

func ListPlugin added in v1.5.0

func ListPlugin(c *gin.Context)

func RegisterPluginRouter

func RegisterPluginRouter(r gin.IRouter)

RegisterPluginRouter 插件

func UploadPlugin

func UploadPlugin(c *gin.Context)

Types

type Plugin added in v1.5.0

type Plugin struct {
	brand.Plugin
	BuildStatus int `json:"build_status"` // build状态,-1 build失败,0正在build,1 build成功
}

type PluginInfo

type PluginInfo struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Image       string `json:"image"`
	Version     string `json:"version"`
	Brand       string `json:"brand"`
	Info        string `json:"info"`
	IsAdded     bool   `json:"is_added"`
	IsNewest    bool   `json:"is_newest"`
	DownloadURL string `json:"download_url"` // 前端插件压缩包?
}

type PluginInfoReq

type PluginInfoReq struct {
	PluginID string `uri:"id"`
}

PluginInfoReq 插件详情接口请求参数

type PluginInfoResp

type PluginInfoResp struct {
	Plugin PluginInfo `json:"plugin"`
}

PluginInfoResp 插件详情接口返回数据

type Req added in v1.5.0

type Req struct {
	ListType int `form:"list_type"`
}

type Resp added in v1.5.0

type Resp struct {
	Plugins []Plugin `json:"plugins"`
}

type UploadPluginReq

type UploadPluginReq struct {
	File multipart.File
	// contains filtered or unexported fields
}

type UploadPluginResp

type UploadPluginResp struct {
	PluginInfo plugin.Plugin `json:"plugin_info"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL