delivery

package
v0.0.0-...-054ff44 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(service participant.ServiceInterface)

Types

type ParticipantDelivery

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

func (*ParticipantDelivery) Create

func (delivery *ParticipantDelivery) Create(w http.ResponseWriter, r *http.Request)

func (*ParticipantDelivery) GetAll

func (delivery *ParticipantDelivery) GetAll(w http.ResponseWriter, r *http.Request)

func (*ParticipantDelivery) Update

func (delivery *ParticipantDelivery) Update(w http.ResponseWriter, r *http.Request)

type ParticipantReq

type ParticipantReq struct {
	Name  string `json:"name" form:"name"`
	Phone string `json:"phone" form:"phone"`
	Age   int    `json:"age" form:"age"`
	Photo string `json:"photo" form:"photo"`
}

type ParticipatResp

type ParticipatResp struct {
	Name  string `json:"name"`
	Phone string `json:"phone"`
	Age   int    `json:"age"`
	Photo string `json:"photo"`
}

func FromCoreList

func FromCoreList(dataCore []participant.ParticipantCore) []ParticipatResp

Jump to

Keyboard shortcuts

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