services

package
v0.0.0-...-11fa6ca Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() fx.Option

Types

type UserService

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

func (*UserService) Construct

func (*UserService) Construct() interface{}

func (*UserService) Create

func (s *UserService) Create(user *models.User) (*models.User, error)

func (*UserService) Delete

func (s *UserService) Delete(userLogin *models.User, id uint) error

func (*UserService) FindAll

func (s *UserService) FindAll(page, perPage int) (map[string]interface{}, error)

func (*UserService) FindByID

func (s *UserService) FindByID(id uint) (*models.User, error)

func (*UserService) Update

func (s *UserService) Update(id uint, user *models.User) (*models.User, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳