model

package
v0.0.0-...-6ca33d0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config *conf
View Source
var DB *gorm.DB

Functions

func Convert

func Convert(user, pass string) string

Types

type Acls

type Acls struct {
	ID          int    `gorm:"primary_key:AUTO_INCREMENT"`
	Domain      string `gorm:"type:varchar(100);not null;unique"`
	Url         string `gorm:"type:varchar(1024)"`
	Title       string `gorm:"type:varchar(1024)"`
	Keywords    string `gorm:"type:varchar(1024)"`
	Description string `gorm:"type:varchar(1024)"`
	Favicon     string `gorm:"type:varchar(1024)"`
	Method      string `gorm:"type:varchar(36)"`
	Comment     string `gorm:"type:varchar(1024)"`
	Count       string `gorm:"type:varchar(36)"`
	Countid     string `gorm:"type:varchar(36)"`
	Username    string `gorm:"type:varchar(36)"`
}

type Users

type Users struct {
	ID       int    `gorm:"primary_key:AUTO_INCREMENT"`
	Username string `gorm:"type:varchar(36)"`
	Password string `gorm:"type:varchar(36);not null;unique"`
	Email    string `gorm:"type:varchar(255);not null;unique"`
	Lastdate time.Time
}

Jump to

Keyboard shortcuts

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