ot_plugins.go 634 B

1234567891011121314151617181920212223242526272829
  1. package models
  2. import (
  3. "go-admin/common/models"
  4. )
  5. type OtPlugins struct {
  6. models.Model
  7. Name string `json:"name" gorm:"type:varchar(64);comment:插件名"`
  8. Alias string `json:"alias" gorm:"type:varchar(64);comment:插件英文别名"`
  9. Url string `json:"url" gorm:"type:varchar(512);comment:插件地址"`
  10. Config string `json:"config" gorm:"type:varchar(512);comment:配置json格式"`
  11. models.ModelTime
  12. models.ControlBy
  13. }
  14. func (OtPlugins) TableName() string {
  15. return "ot_plugins"
  16. }
  17. func (e *OtPlugins) Generate() models.ActiveRecord {
  18. o := *e
  19. return &o
  20. }
  21. func (e *OtPlugins) GetId() interface{} {
  22. return e.Id
  23. }