entityUser

package
v0.0.0-...-2a611ce Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Services

type Services interface {
	GetUsers(ctx context.Context) ([]User, error)
	NewUser(ctx context.Context, inputUser User) error
	EditUser(ctx context.Context, newUser User) (User, error)
	FindUser(ctx context.Context, UserID uint) (User, error)
	FindUserByUserName(ctx context.Context, Username string) (User, error)
	DeleteUser(ctx context.Context, UserID uint) error
	UsernameExist(ctx context.Context, input string) error
}

type User

type User struct {
	ID         uint
	Username   string
	Password   string
	Email      string
	DOB        time.Time
	MobileNo   string
	NationalID string
}

Jump to

Keyboard shortcuts

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