models

package
v0.0.0-...-31ddaea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceToken

type DeviceToken struct {
	ID        string    `bson:"_id"`
	UserId    string    `bson:"user_id"`
	Token     string    `bson:"token"`
	OsName    string    `bson:"os_name"`
	CreatedAt time.Time `bson:"created_at"`
	UpdatedAt time.Time `bson:"updated_at"`
}

func (DeviceToken) TableName

func (DeviceToken) TableName() string

type Notification

type Notification struct {
	ID        string    `bson:"_id"`
	UserId    string    `bson:"user_id"`
	Type      string    `bson:"type"`
	Data      string    `bson:"data"`
	CreatedAt time.Time `bson:"created_at"`
	UpdatedAt time.Time `bson:"updated_at"`
}

func (Notification) TableName

func (Notification) TableName() string

type NotificationMeta

type NotificationMeta struct {
	Data    []*Notification `bson:"data,omitempty"`
	Page    int             `json:"page,omitempty"`
	PerPage int             `json:"per_page,omitempty"`
	Total   int             `json:"total,omitempty"`
}

type Template

type Template struct {
	ID        string    `bson:"_id"`
	Name      string    `bson:"name"`
	Data      string    `bson:"data"`
	CreatedAt time.Time `bson:"created_at"`
	UpdatedAt time.Time `bson:"updated_at"`
}

func (Template) TableName

func (Template) TableName() string

type TemplateMeta

type TemplateMeta struct {
	Data    []*Template `bson:"data,omitempty"`
	Page    int         `json:"page,omitempty"`
	PerPage int         `json:"per_page,omitempty"`
	Total   int         `json:"total,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL