plugin.go 624 B

12345678910111213141516
  1. package models
  2. import (
  3. "github.com/langgenius/dify-plugin-daemon/internal/types/entities"
  4. "github.com/langgenius/dify-plugin-daemon/internal/types/entities/plugin_entities"
  5. )
  6. type Plugin struct {
  7. Model
  8. PluginID string `json:"id" orm:"index;size:127"`
  9. Refers int `json:"refers" orm:"default:0"`
  10. Checksum string `json:"checksum" orm:"size:127"`
  11. InstallType entities.PluginRuntimeType `json:"install_type" orm:"size:127;index"`
  12. ManifestType plugin_entities.DifyManifestType `json:"manifest_type" orm:"size:127"`
  13. }