model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 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 App

type App struct {
	inkstone.Model
	Name   string
	Secret string
	Active bool
}

func NewApp

func NewApp(name, secret string) *App

type AuthToken

type AuthToken struct {
	inkstone.Model
	AccessToken  string `db:"access_token"`
	RefreshToken string `db:"refresh_token"`
	AppId        uint32 `db:"app_id"`
	AccountId    uint32 `db:"account_id"`
}

func NewAuthToken

func NewAuthToken(accessToken, refreshToken string, appId, accountId uint32) *AuthToken

type Staff

type Staff struct {
	inkstone.Model
	Email     string
	Password  string
	Phone     string
	Super     bool
	Active    bool
	Departure bool
}

func NewStaff

func NewStaff(email, password, phone string, super bool) *Staff

Jump to

Keyboard shortcuts

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