external_notify.go 450 B

123456789
  1. package model
  2. type ExternalNotify struct {
  3. Model
  4. Type string `json:"type" cosy:"add:required;update:omitempty" gorm:"index"`
  5. Language string `json:"language" cosy:"add:required;update:omitempty" gorm:"index"`
  6. Config map[string]string `json:"config" cosy:"add:required;update:omitempty" gorm:"serializer:json[aes]"`
  7. Enabled bool `json:"enabled" cosy:"add:omitempty;update:omitempty" gorm:"default:1"`
  8. }