model

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const TableNamePluginInfo = "plugin_info"

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginInfo

type PluginInfo struct {
	*v.Model
	Name        string `json:"name"`        // 名称
	Description string `json:"description"` // 简介
	KeyName     string `json:"keyName"`     // Key名(唯一标识)
	Hook        string `json:"hook"`        // Hook 名(如 upload),同 Hook 同时只能启用一个
	Readme      string `json:"readme"`      // 使用说明(markdown)
	Version     string `json:"version"`     // 版本
	Author      string `json:"author"`      // 作者
	Status      int    `json:"status"`      // 状态 0-禁用 1-启用
	Content     string `json:"content"`     // 插件内容(JSON:{type,data},data 为可执行脚本)
	TsContent   string `json:"tsContent"`   // TS 源码(JSON:{type:'ts',data},留档参考)
	PluginJson  string `json:"pluginJson"`  // 插件的 plugin.json(JSON)
	Config      string `json:"config"`      // 配置(JSON,支持 @env 多环境)
}

PluginInfo 插件信息(参照 cool-admin-midway plugin 模块 PluginInfoEntity)

func NewPluginInfo

func NewPluginInfo() *PluginInfo

NewPluginInfo 创建一个 PluginInfo 模型实例

func (*PluginInfo) TableName

func (*PluginInfo) TableName() string

TableName PluginInfo 的表名

Jump to

Keyboard shortcuts

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