model

package
v0.0.0-...-d458fd3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: MIT Imports: 4 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 {
	ID        int64  `json:id`
	UserID    int    `json:user_id`
	UserName  string `json:user_name`
	FirstName string `json:first_name`
}

func ListUser

func ListUser(db *sqlx.DB) (persons []User)

func (*User) DeleteUser

func (p *User) DeleteUser(db *sqlx.DB)

func (*User) GetUser

func (p *User) GetUser(db *sqlx.DB, id int64) (*User, error)

func (*User) SaveUser

func (p *User) SaveUser(db *sqlx.DB)

type UserInter

type UserInter interface {
	SaveUser(ulist *User)
	UpdateUser(id uint64, ulist *User) error
	DeleteUser(id uint64) error
	GetUser(id uint64) *User
}

Jump to

Keyboard shortcuts

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