mysql

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorUserExist       = errors.New("用户已存在")
	ErrorInvalidPassword = errors.New("用户名或密码错误")
	ErrorBusy            = errors.New("服务忙")
)

Functions

func CheckUserExsist

func CheckUserExsist(p *model.User) (err error)

func CheckUserNameAndPassWord

func CheckUserNameAndPassWord(p *model.User) (err error)

func GetAllBadIp

func GetAllBadIp() ([]model.BadIp, error)

GetAllBadIp 查询所有BadIp

func GetAllBadWords

func GetAllBadWords() ([]model.BadWords, error)

GetAllBadWords 查询所有BadWords

func New

func New(cfg *config.Config) *gorm.DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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