ot_ifram.go 673 B

123456789101112131415161718192021222324252627282930
  1. package models
  2. import (
  3. "go-admin/common/models"
  4. )
  5. type OtIfram struct {
  6. models.Model
  7. Desc string `json:"desc" gorm:"type:varchar(256);comment:Desc"`
  8. Url string `json:"url" gorm:"type:varchar(512);comment:iframe地址"`
  9. PageTag string `json:"pageTag" gorm:"type:varchar(64);comment:页面标识"`
  10. AppId int64 `json:"appId" gorm:"type:int(11);comment:AppID"`
  11. Overall int64 `json:"overall" gorm:"type:int(11);comment:Overall"`
  12. models.ModelTime
  13. models.ControlBy
  14. }
  15. func (OtIfram) TableName() string {
  16. return "ot_iframe"
  17. }
  18. func (e *OtIfram) Generate() models.ActiveRecord {
  19. o := *e
  20. return &o
  21. }
  22. func (e *OtIfram) GetId() interface{} {
  23. return e.Id
  24. }