Documentation
¶
Index ¶
- type ConfigGetRequest
- type ConfigResponse
- type PluginConfigDownloadRequest
- type PluginConfigResponse
- type PluginConfigUploadRequest
- type PluginRequest
- type PluginResponse
- type Response
- func ErrDeny(msg string, data ...interface{}) (int, Response)
- func ErrIpt(msg string, data ...interface{}) (int, Response)
- func ErrJwt(msg string, data ...interface{}) (int, Response)
- func ErrOpt(msg string, data ...interface{}) (int, Response)
- func ErrSvr(msg string, data ...interface{}) (int, Response)
- func Ext(msg string, data ...interface{}) (int, Response)
- func Fail(msg string, data ...interface{}) (int, Response)
- func Page(msg string, items interface{}, count int) (int, Response)
- func Succ(msg string, data ...interface{}) (int, Response)
- type SelectEpRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigGetRequest ¶
type ConfigGetRequest struct {
// Key 使用目录方式获取指定yaml key内容
// [暂不支持] 如 setting/save_path, advanced/download/queue_max_num
// all 获取所有配置项,json格式
// raw 获取所有配置项,yaml文本格式
// comment 获取所有配置项的注释文本
Key string `json:"key" form:"key" default:"all"`
}
type ConfigResponse ¶
type PluginConfigDownloadRequest ¶
type PluginConfigDownloadRequest struct {
PluginRequest
}
type PluginConfigResponse ¶
type PluginConfigResponse struct {
PluginResponse
Data string `json:"data"` //base64编码后的数据
}
type PluginConfigUploadRequest ¶
type PluginConfigUploadRequest struct {
PluginRequest
Data string `json:"data" binding:"required"` //base64格式的文本数据
}
type PluginRequest ¶
type PluginRequest struct {
Name string `json:"name" form:"name" binding:"required"` //插件文件名
}
func (PluginRequest) FindFile ¶
func (p PluginRequest) FindFile() (string, error)
type PluginResponse ¶
type PluginResponse struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.