services

package
v0.0.0-...-b412fb3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService() (*UserService, error)

func (*UserService) CreateUser

func (userService *UserService) CreateUser(user *models.User) (*models.User, error)

func (*UserService) DeleteUser

func (userService *UserService) DeleteUser(id int64) error

func (*UserService) GetUser

func (userService *UserService) GetUser(id int64) (*models.User, error)

func (*UserService) ListUsers

func (userService *UserService) ListUsers() ([]*models.User, error)

func (*UserService) UpdateUser

func (userService *UserService) UpdateUser(id int64, user *models.User) (*models.User, error)

Jump to

Keyboard shortcuts

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