ot_app_dashboard.go 526 B

123456789101112131415161718192021222324252627
  1. package models
  2. import (
  3. "go-admin/common/models"
  4. )
  5. type OtAppDashboard struct {
  6. models.Model
  7. AppId int64 `json:"appId" gorm:"type:bigint(20);comment:应用ID"`
  8. DashboardUid string `json:"dashboardUid" gorm:"type:varchar(64);comment:grafana dashboard uid"`
  9. models.ModelTime
  10. models.ControlBy
  11. }
  12. func (OtAppDashboard) TableName() string {
  13. return "ot_app_dashboard"
  14. }
  15. func (e *OtAppDashboard) Generate() models.ActiveRecord {
  16. o := *e
  17. return &o
  18. }
  19. func (e *OtAppDashboard) GetId() interface{} {
  20. return e.Id
  21. }