models

package
v0.0.0-...-4c7f073 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserList map[string]*Members
)

Functions

func AddUser

func AddUser(u *Members) (value int32)

func GetAllUsers

func GetAllUsers() map[string]*Members

func Login

func Login(user *Members) error

Types

type FrontText

type FrontText struct {
	Id       int    `json:"id"`
	Language string `orm:"column(language)" json:"language"`
	Key      string `orm:"column(key)" json:"key"`
	Value    string `orm:"column(value)" json:"value"`
}

FrontText

func GetText

func GetText(key string) (frontText FrontText, err error)

type Members

type Members struct {
	Id       int    `json:"id"`
	FullName string `orm:"column(fullname)" json:"fullname"`
	Email    string `orm:"column(email);unique" json:"email"`
	Pass     string `orm:"column(pass)" json:"pass"`
	Admin    bool   `orm:"column(admin)" json:"admin"`
	Token    string `orm:"column(token)" json:"token"`
}

Members

Jump to

Keyboard shortcuts

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