account

package
v0.0.0-...-e1a70cd Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 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 Controller

type Controller struct {
	ConfigService     *config.Service
	AccountService    *Service
	CareerService     *career.Service
	LocalErrorService *localerror.Service
}

func NewController

func NewController(
	cfg *config.Service,
	as *Service,
	cs *career.Service,
	les *localerror.Service,
) *Controller

func (*Controller) GetCareer

func (c *Controller) GetCareer(w http.ResponseWriter, r *http.Request)

Get Career : HTTP endpoint to get the career of an account @Tags Accounts @Description Get a career @Produce json @Param ehid path string true "EHID" @Success 200 {object} GetCareerResponseDto "Success Response" @Failure 400 "BadRequest" @Failure 500 "InternalServerError" @Router /accounts/{ehid}/career [GET]

func (*Controller) GetProfile

func (c *Controller) GetProfile(w http.ResponseWriter, r *http.Request)

Get Profile : HTTP endpoint to get the profile of an account @Tags Accounts @Description Get a profile @Produce json @Param ehid path string true "EHID" @Success 200 {object} GetProfileResponseDto "Success Response" @Failure 400 "BadRequest" @Failure 500 "InternalServerError" @Router /accounts/{ehid}/profile [GET]

type GetCareerResponseDto

type GetCareerResponseDto = dtorespwithdata.Class[[]career.Aggregate]

type GetProfileResponseDto

type GetProfileResponseDto = dtorespwithdata.Class[profile.Aggregate]

type Service

type Service struct {
	ConfigService *config.Service
	CareerService *career.Service
	AuthxClient   *libauthxc.Client
}

func NewService

func NewService(
	cfg *config.Service,
	cs *career.Service,
) *Service

func (*Service) RetrieveCareer

func (s *Service) RetrieveCareer(ehid string) ([]career.Aggregate, error)

func (*Service) RetrieveProfile

func (s *Service) RetrieveProfile(ehid string) (*profile.Aggregate, error)

Jump to

Keyboard shortcuts

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