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
615 B

package user
import (
"github.com/golangkit/formatime"
)
type Notice struct {
ID uint `gorm:"column:id;primary_key" json:"id"`
Type int `gorm:"column:type" json:"type"`
UserID uint `gorm:"column:user_id" json:"userId"`
Content string `gorm:"column:content" json:"content"`
CreatTime formatime.Second `gorm:"column:creat_time" json:"creatTime"`
IsShow uint `gorm:"column:is_show" json:"isShow"`
}
// TableName sets the insert table name for this struct type
func (r *Notice) TableName() string {
return "recook_user_notice"
}