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]
Click to show internal directories.
Click to hide internal directories.