businessTacticsRelDao.go 941 B

1234567891011121314151617181920212223
  1. package dao
  2. import (
  3. "gorm.io/gorm"
  4. "time"
  5. )
  6. type BusinessTacticsRel struct {
  7. GroupId string `comment:"归属灯杆分组id:p+id" json:"groupId,omitempty"`
  8. DeviceId string `comment:"归属设备id:sn" json:"deviceId,omitempty"`
  9. ModelId int `comment:"物模id" json:"modelId,omitempty"`
  10. ModelSid string `comment:"sn_(设备sn)_modelTid_(model_id)_sid_(物模属性sid)" json:"modelSid,omitempty"`
  11. TacticsId int `comment:"业务告警策略id" json:"tacticsId,omitempty"`
  12. LampPoleSn string `comment:"灯杆sn" json:"lampPoleSn,omitempty"`
  13. OperaterUser string `comment:"操作用户ID" json:"operaterUser,omitempty"`
  14. OperaterTime time.Time `comment:"修改时间" json:"operaterTime"`
  15. TenantId string `comment:"租户ID" json:"tenantId,omitempty"`
  16. gorm.Model `json:"Gorm.Model"`
  17. }
  18. func (BusinessTacticsRel) TableName() string {
  19. return "warn_business_tactics_rel"
  20. }