user

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

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type M

type M struct {
	ID        int64     `json:"id"`
	FirstName string    `json:"first_name"`
	LastName  string    `json:"last_name"`
	Age       int       `json:"age"`
	UpdatedAt time.Time `json:"updated_at"`
	CreatedAt time.Time `json:"created_at"`
}

User is a struct that Model a user

type R

type R interface {
	AuditUserByID(model UserID) error
	GetByID(model *M) (M, error)
}

UserRepository is a repository interface for user

type U

type U interface {
	GetByUserID(id UserID) (M, error)
	AuditUserByID(id UserID) error
}

UserUsecase is a usecase interface for user

type UserID

type UserID = int64

ID is a type that represents a user id

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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