You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
494 B
20 lines
494 B
package databus |
|
|
|
import ( |
|
"go-common/library/time" |
|
) |
|
|
|
// TableName case tablename |
|
func (*Topic) TableName() string { |
|
return "topic" |
|
} |
|
|
|
// Topic topic |
|
type Topic struct { |
|
ID int `gorm:"column:id" json:"id"` |
|
Topic string `gorm:"column:topic" json:"topic"` |
|
Cluster string `gorm:"column:cluster" json:"cluster"` |
|
Remark string `gorm:"column:remark" json:"remark"` |
|
Ctime time.Time `gorm:"column:ctime" json:"ctime"` |
|
Mtime time.Time `gorm:"column:mtime" json:"-"` |
|
}
|
|
|