You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package models
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type Item struct {
|
|
gorm.Model
|
|
Message string
|
|
UserID uint
|
|
}
|
|
|
|
func (item Item) GetId() int {
|
|
return int(item.ID)
|
|
}
|
|
|
|
func (item Item) GetMessage() string {
|
|
return item.Message
|
|
}
|