model

package
v0.0.0-...-681e4f9 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	UserId   int64  `json:"user_id"`   //Id
	UserName string `json:"user_name"` //用户名称
	Password string `json:"password"`  //密码
	Age      int    `json:"age"`       //年龄

}

type UserModel

type UserModel struct {
}

func NewUserModel

func NewUserModel() *UserModel

func (*UserModel) CheckUser

func (p *UserModel) CheckUser(username string, password string) (*User, error)

func (*UserModel) CreateUser

func (p *UserModel) CreateUser(user *User) error

func (*UserModel) GetUserList

func (p *UserModel) GetUserList() ([]gorose.Data, error)

Jump to

Keyboard shortcuts

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