infrastructure

package
v0.0.0-...-e6ffba7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUserHandler

func CreateUserHandler(ctx *gin.Context)

func GetAllUsersHandler

func GetAllUsersHandler(ctx *gin.Context)

func InitApi

func InitApi()

Types

type UserRepository

type UserRepository struct{}

func (*UserRepository) Create

func (r *UserRepository) Create(user domain.User) (domain.User, error)

func (*UserRepository) GetAll

func (r *UserRepository) GetAll() ([]domain.User, error)

type UserVM

type UserVM struct {
	ID       uint   `json:"id"`
	Nickname string `json:"nickname"`
}

Jump to

Keyboard shortcuts

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