models

package
v0.0.0-...-8c6f8b2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type City

type City struct {
	Id     int    `json:"id" db:"_id"`
	Name   string `json:"name" db:"name"`
	CityId int    `json:"cityId" db:"city_id"`
}

func (*City) String

func (city *City) String() string

type Location

type Location struct {
	Ip           string            `json:"ip"`
	City         map[string]string `json:"city"`
	Country      map[string]string `json:"country"`
	Subdivisions map[string]string `json:"Subdivisions"`
	Latitude     float64           `json:"latitude"`
	Longitude    float64           `json:"longitude"`
}

func (*Location) GetCity

func (location *Location) GetCity(name string) string

type Province

type Province struct {
	Id         int    `json:"id" db:"_id"`
	Name       string `json:"name" db:"name"`
	ProvinceId int    `json:"provinceId" db:"province_id"`
}

func (*Province) String

func (province *Province) String() string

type Token

type Token struct {
	AccessToken string    `json:"accessToken"`
	ExpiresAt   time.Time `json:"expiresAt"`
}

type User

type User struct {
	ID       int64  `json:"id"`
	Username string `json:"username" header:"username"`
	Password string `json:"password" header:"password"`
}

Jump to

Keyboard shortcuts

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