repos

package
v1.0.3-0...-554643c Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Area

type Area struct {
	ID       int    `db:"_id"`
	Name     string `db:"name"`
	PoiID    int    `db:"poi_id"`
	Rank     int    `db:"rank"`
	TenantID int    `db:"tenant_id"`
}

func FetchAreas

func FetchAreas() (areas []Area, err error)

type Table

type Table struct {
	ID       int    `db:"_id"`
	AreaID   int    `db:"area_id"`
	Name     string `db:"name"`
	PoiID    int    `db:"poi_id"`
	Rank     int    `db:"rank"`
	Seats    int    `db:"seats"`
	TableID  int    `db:"table_id"`
	TenantID int    `db:"tenant_id"`
}

func FetchTables

func FetchTables(areaID int) (tables []Table, err error)

type User

type User struct {
	ID         int64  `db:"_id"`
	IsLast     bool   `db:"is_last"`
	IsMaster   bool   `db:"is_master"`
	Login      string `db:"login"`
	PoiId      int    `db:"poi_id"`
	PoiName    string `db:"poi_name"`
	PosId      string `db:"pos_id"`
	TenantID   int    `db:"tenant_id"`
	Token      string `db:"token"`
	Validation string `db:"validation"`
}

func FetchUser

func FetchUser() (user User, err error)

Jump to

Keyboard shortcuts

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