Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
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:"-"`
}