uniugm/admin/apps/game/model/devicepush.go
2025-04-28 15:56:04 +08:00

29 lines
529 B
Go

package model
import (
"admin/internal/db"
"time"
)
func init() {
db.RegisterTableModels(DevicePush{})
}
type DevicePush struct {
ID int `gorm:"primarykey" readonly:"true"`
ProjectId string
Account string `name:"账号" desc:"给账号所属的设备做推送"`
Title string `name:"通知标题" desc:""`
Content string `name:"通知内容"`
CreatedAt time.Time `readonly:"true"`
}
func (lm *DevicePush) TableName() string {
return "device_push"
}
func (m *DevicePush) GetId() int {
return m.ID
}