ot_apps.go 823 B

12345678910111213141516171819202122232425262728293031
  1. package models
  2. import (
  3. "go-admin/common/models"
  4. )
  5. type OtApps 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. Desc string `json:"desc" gorm:"type:varchar(256);comment:业务描述"`
  10. ImgUrl string `json:"imgUrl" gorm:"type:varchar(512);comment:业务图片"`
  11. ContractInfo string `json:"contractInfo" gorm:"type:varchar(32);comment:管理信息"`
  12. ContractPhone string `json:"contractPhone" gorm:"type:varchar(16);comment:管理员手机号"`
  13. models.ModelTime
  14. models.ControlBy
  15. }
  16. func (OtApps) TableName() string {
  17. return "ot_apps"
  18. }
  19. func (e *OtApps) Generate() models.ActiveRecord {
  20. o := *e
  21. return &o
  22. }
  23. func (e *OtApps) GetId() interface{} {
  24. return e.Id
  25. }