package entity import "gitlab.wodcloud.com/smart-operation/so-operation-api/src/pkg/beagle/jsontime" type AlertClass struct { ClassId int `json:"class_id" xorm:"'class_id' pk autoincr"` // 主键id ClassName string `json:"class_name" xorm:"'class_name'"` // 分类名称 ParentId int `json:"parent_id" xorm:"'parent_id'"` // 父级id SortOrder int `json:"sort_order" xorm:"'sort_order'"` // 排序 Source int `json:"source" xorm:"source"` // 数据来源 1:默认 2:自定义 CreatedBy string `json:"created_by" xorm:"'created_by'"` // 创建人 CreatedAt jsontime.Time `json:"created_at" xorm:"'created_at'"` // 创建时间 UpdatedBy string `json:"updated_by" xorm:"'updated_by'"` // 更新人 UpdatedAt jsontime.Time `json:"updated_at" xorm:"'updated_at'"` // 更新时间 } func (m *AlertClass) TableName() string { return "alert_class" }