Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PersonRequest ¶
type PersonRequest struct {
Sex data.Sex `schema:"sex"`
Group data.PersonGroup `schema:"group"`
DomainName string `schema:"domain-name"`
DomainSuffix string `schema:"domain-suffix"`
}
GET person request URL parameters
type PersonResponse ¶
type PersonResponse struct {
FirstName string `json:"first-name"`
LastName string `json:"last-name"`
Email string `json:"email"`
Trivia string `json:"trivia"`
}
GET person request response body
func (*PersonResponse) FromPerson ¶
func (personResponse *PersonResponse) FromPerson(person data.Person, personRequest PersonRequest)
update person response using person
Click to show internal directories.
Click to hide internal directories.