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.
22 lines
688 B
22 lines
688 B
package user
|
|
|
|
import (
|
|
"github.com/golangkit/formatime"
|
|
"recook/internal/v2/lib/db"
|
|
)
|
|
|
|
type RecookUserNoticeModel struct {
|
|
db.BaseModel
|
|
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 *RecookUserNoticeModel) TableName() string {
|
|
return "recook_user_notice"
|
|
}
|