bus_config.go 437 B

1234567891011121314151617181920
  1. package model
  2. import (
  3. "dy-admin/internal/pcmserver/common"
  4. )
  5. type CabinetConfig struct {
  6. ID int `json:"id"` // config的id
  7. ManageModel uint8 `json:"manageModel"` // 管理方式 1-强制管理模式 2-人性化管理方式
  8. }
  9. type BusConfig struct {
  10. common.Model
  11. Config string `json:"config" gorm:"comment:详细配置"`
  12. common.ModelTime
  13. }
  14. func (m *BusConfig) TableName() string {
  15. return "bus_configs"
  16. }