controllers

package
v0.0.0-...-3a8b1bb Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepo

type UserRepo struct {
	Db *gorm.DB
}

func New

func New() *UserRepo

func (*UserRepo) CreateUser

func (repository *UserRepo) CreateUser(c *gin.Context)

create user

func (*UserRepo) DeleteUser

func (repository *UserRepo) DeleteUser(c *gin.Context)

delete user

func (*UserRepo) GetUser

func (repository *UserRepo) GetUser(c *gin.Context)

get user by id

func (*UserRepo) GetUsers

func (repository *UserRepo) GetUsers(c *gin.Context)

get users

func (*UserRepo) UpdateUser

func (repository *UserRepo) UpdateUser(c *gin.Context)

update user

Jump to

Keyboard shortcuts

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