bean

package
v0.0.0-...-ce9cc70 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminUserView

type AdminUserView struct {
	UserID string `gorm:";unique" form:"userID" json:"userID"` // 手机号码
	Name   string `gorm:"not null" form:"name" json:"name"`
	Email  string `gorm:"not null" form:"email" json:"email"`
}

AdminUserView AdminUserView

type AdminUsers

type AdminUsers struct {
	gorm.Model
	User
}

AdminUsers AdminUsers

type DBConfig

type DBConfig struct {
	Dialect      string
	Database     string
	User         string
	Password     string
	Host         string
	Port         int
	Charset      string
	URL          string
	MaxIdleConns int
	MaxOpenConns int
}

DBConfig DBConfig Struct

type FormParams

type FormParams struct {
	Params string `form:"params" json:"params"` // params
	ID     string `form:"id" json:"id"`         // id
	Name   string `form:"name" json:"name"`     // name
	Key    string `form:"key" json:"key"`       // key
	Value  string `form:"value" json:"value"`   // value

}

FormParams FormParams

type JWTConfig

type JWTConfig struct {
	SigningKey string
	ExpireTime time.Duration
	Realm      string
}

JWTConfig JWTConfig

type ServerConfig

type ServerConfig struct {
	Port        []string
	Mode        string
	GormLogMode string
	ViewLimit   int
	Passphrase  string
	Key         string
}

ServerConfig ServerConfig Struct

type User

type User struct {
	UserID string `gorm:";unique" form:"userID" json:"userID"` // 手机号码
	Name   string `gorm:"not null" form:"name" json:"name"`
	Passwd string `gorm:"not null" form:"passwd" json:"passwd"`
	Email  string `gorm:"not null" form:"email" json:"email"`
}

User User

type UserParams

type UserParams struct {
	UserID string `form:"userid" json:"userid"` // userid
	Name   string `form:"name" json:"name"`     // name
	Pwd    string `form:"pwd" json:"pwd"`       // parssword
	Email  string `form:"email" json:"email"`   // email
	OldPwd string `form:"oldpwd" json:"oldpwd"` // old parssword
}

UserParams UserParams

type UserView

type UserView struct {
	UserID string `gorm:";unique" form:"userID" json:"userID"` // 手机号码
	Name   string `gorm:"not null" form:"name" json:"name"`
	Email  string `gorm:"not null" form:"email" json:"email"`
}

UserView UserView

type Users

type Users struct {
	gorm.Model
	User
}

Users Users

Jump to

Keyboard shortcuts

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