user

package
v0.0.0-...-04d14b8 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserRequestBody

type CreateUserRequestBody struct {
	IdentityId uuid.UUID `json:"identity_id" valid:"-"`
	Email      string    `json:"email" valid:"email"`
	FirstName  string    `json:"first_name" valid:"-"`
	LastName   string    `json:"last_name" valid:"-"`
}

type ResponseDto

type ResponseDto struct {
	Id models.EntityId `json:"id"`
}

type Service

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

func NewService

func NewService(repository models.UserRepository) *Service

func (*Service) CreateUser

func (s *Service) CreateUser(rw http.ResponseWriter, rq *http.Request) (interface{}, error)

func (*Service) GetUser

func (s *Service) GetUser(rw http.ResponseWriter, rq *http.Request) (interface{}, error)

func (*Service) ListUsers

func (s *Service) ListUsers(rw http.ResponseWriter, rq *http.Request) (interface{}, error)

func (*Service) RemoveUser

func (s *Service) RemoveUser(rw http.ResponseWriter, rq *http.Request) (interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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