db

package
v0.0.0-...-7372eca Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdministratorColID        = "id"
	AdministratorColUser      = "user"
	AdministratorColPassword  = "passwd"
	AdministratorColIPAddress = "ip_address"
	AdministratorColLastLogin = "last_login"
)

Administrator table columns

Variables

This section is empty.

Functions

func Engine

func Engine() *xorm.Engine

Engine 获取 db 对象

Types

type Administrator

type Administrator struct {
	ID        uint64    `xorm:"pk autoincr 'id'"`
	User      string    `xorm:"varchar(16) unique 'user' "`
	Password  string    `xorm:"varchar(18) 'passwd'"`
	IPAddress string    `xorm:"'ip_address'"`
	LastLogin time.Time `xorm:"'last_login'"`
}

Administrator adminstrator table

func (Administrator) TableName

func (Administrator) TableName() string

TableName .

type Register

type Register struct {
}

Register 注册器

func (Register) CheckIn

func (Register) CheckIn() (err error)

CheckIn 实现 IRegister 接口,以注册获取初始化好的 db 对象。

func (Register) Name

func (Register) Name() string

Name .

Jump to

Keyboard shortcuts

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