userImpl

package
v0.0.0-...-c4a8052 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserRepo

func NewUserRepo(tx *gorm.DB) user.IUserRepo

func NewUserRoute

func NewUserRoute(userService user.IUserService) user.IUserRoute

Types

type UserRepo

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

func (*UserRepo) Delete

func (s *UserRepo) Delete(id uint) (uint, error)

func (*UserRepo) First

func (s *UserRepo) First(querier *dto.UserQuerier) (*entity.User, error)

func (*UserRepo) Get

func (s *UserRepo) Get(id uint) (*entity.User, error)

func (*UserRepo) List

func (s *UserRepo) List(querier *dto.UserQuerier) ([]*entity.User, error)

func (*UserRepo) Save

func (s *UserRepo) Save(form *entity.User) (*entity.User, error)

type UserRouteImpl

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

func (*UserRouteImpl) Delete

func (r *UserRouteImpl) Delete(c fiber.Ctx) error

func (*UserRouteImpl) First

func (r *UserRouteImpl) First(c fiber.Ctx) error

func (*UserRouteImpl) Get

func (r *UserRouteImpl) Get(c fiber.Ctx) error

func (*UserRouteImpl) List

func (r *UserRouteImpl) List(c fiber.Ctx) error

func (*UserRouteImpl) Register

func (r *UserRouteImpl) Register(root fiber.Router)

func (*UserRouteImpl) Save

func (r *UserRouteImpl) Save(c fiber.Ctx) error

type UserService

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

func NewUserService

func NewUserService(repo repo.IRepo) *UserService

func (*UserService) Delete

func (s *UserService) Delete(ctx context.Context, id uint) (uint, error)

func (*UserService) First

func (s *UserService) First(ctx context.Context, querier *dto.UserQuerier) (*entity.User, error)

func (*UserService) Get

func (s *UserService) Get(ctx context.Context, id uint) (*entity.User, error)

func (*UserService) List

func (s *UserService) List(ctx context.Context, querier *dto.UserQuerier) ([]*entity.User, error)

func (*UserService) Save

func (s *UserService) Save(ctx context.Context, form *entity.User) (*entity.User, error)

Jump to

Keyboard shortcuts

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