model

package
v0.0.0-...-52bb2e6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DeviceVerified int64 = -1

DeviceVerified indicates the device was verified.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	gorm.Model
	ContentID int64
	IsPrinted bool
}

Content stores the contents sent to print.

type Device

type Device struct {
	gorm.Model
	MemobirdID       string
	UserID           uint
	VerificationCode int64
}

Device stores the memobird devices.

func (*Device) GenerateVerificationCode

func (d *Device) GenerateVerificationCode() *Device

GenerateVerificationCode sets the VerificationCode to a random number.

func (Device) IsVerified

func (d Device) IsVerified() bool

IsVerified returns true if the device was verified.

type User

type User struct {
	gorm.Model
	TelegramID       int64
	TelegramUserName string
	TelegramFullName string
}

User stores the users of bot.

Jump to

Keyboard shortcuts

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