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