account

package
v0.0.0-...-a70d403 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLoginStatus

func CheckLoginStatus(db *sql.DB, U Account) bool

func Create

func Create(db *sql.DB)

func Delete

func Delete(db *sql.DB, Id string) (bool, error)

func Insert

func Insert(db *sql.DB, A Account) error

func InsertAdminUser

func InsertAdminUser(db *sql.DB)

func UpdateState

func UpdateState(db *sql.DB, state string, originId int) error

Types

type Account

type Account struct {
	Id          int
	Name        string
	Password    string
	Website     string
	Origin      string
	OriginId    int
	Age         int
	Email       string
	Admin       bool
	Create_time time.Time
	Modify_time time.Time
	State       string
}

func GetUserInfo

func GetUserInfo(db *sql.DB, U Account) Account

func Login

func Login(db *sql.DB, U Account) Account

func Select

func Select(db *sql.DB, U Account) Account

func Selects

func Selects(db *sql.DB, U Account) []Account

func (Account) String

func (u Account) String() string

Jump to

Keyboard shortcuts

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