member

package
v0.0.0-...-20be885 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 7 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
	LocalErrorService *localerror.Service
	MembershipService *membership.Service
}

func NewController

func NewController(
	cfg *config.Service,
	les *localerror.Service,
	ms *membership.Service,
) *Controller

func (*Controller) GetHistory

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

Get History : HTTP endpoint to get the history of organization nodes @Tags Members @Description Get a member's current organization nodes @Produce json @Param ehid path string true "Employee Hash ID" @Param sort query string false "Start Date's sorting direction (asc or desc)" @Success 200 {object} GetHistoryResponseDto "Success Response" @Failure 400 "BadRequest" @Failure 500 "InternalServerError" @Router /members/{ehid}/history [GET]

func (*Controller) GetNodes

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

Get Nodes : HTTP endpoint to get current organization nodes @Tags Members @Description Get a member's current organization nodes @Produce json @Param ehid path string true "Employee Hash ID" @Success 200 {object} GetNodesResponseDto "Success Response" @Failure 400 "BadRequest" @Failure 500 "InternalServerError" @Router /members/{ehid}/nodes [GET]

type GetHistoryResponseDto

type GetHistoryResponseDto = dtorespwithdata.Class[[]membership.ViewEntity]

type GetNodesResponseDto

type GetNodesResponseDto = dtorespwithdata.Class[[]membership.ViewEntity]

Jump to

Keyboard shortcuts

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