Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestOrganizationInsertionBody ¶
type RequestOrganizationInsertionBody struct { OrganizationName string `json:"name" validate:"required"` Type string `json:"type" validate:"required"` AddressLine1 string `json:"address_line_1"` AddressLine2 string `json:"address_line_2"` City string `json:"city"` Country string `json:"country"` Zip string `json:"zip"` ContactPerson string `json:"contact_person"` ContactDetails string `json:"contact_details"` Website string `json:"website"` Comments string `json:"comments"` }
func CreateRequestBodyForOrganizationCreation ¶
func CreateRequestBodyForOrganizationCreation(r *http.Request) (RequestOrganizationInsertionBody, error)
type RequestOrganizationUpdateBody ¶
type RequestOrganizationUpdateBody struct { OrganizationName string `json:"name" validate:"required"` AddressLine1 string `json:"address_line_1"` AddressLine2 string `json:"address_line_2"` City string `json:"city"` Country string `json:"country"` Zip string `json:"zip"` ContactPerson string `json:"contact_person"` ContactDetails string `json:"contact_details"` Website string `json:"website"` Comments string `json:"comments"` }
func CreateRequestBodyForOrganizationUpdate ¶
func CreateRequestBodyForOrganizationUpdate(r *http.Request) (RequestOrganizationUpdateBody, error)
type RequestUserBody ¶
type RequestUserBody struct { OrganizationID string `json:"organization_id"` OtherName string `json:"other_name"` FirstName string `json:"first_name" validate:"required"` LastName string `json:"last_name" validate:"required"` NameInitials string `json:"name_initials"` Email string `json:"email" validate:"required,email"` State models.State `json:"state" default:"DEACTIVE"` Roles json.RawMessage `json:"roles"` ContactNumber string `json:"contact_number"` }
func CreateRequestBodyForUser ¶
func CreateRequestBodyForUser(r *http.Request) (RequestUserBody, error)
Click to show internal directories.
Click to hide internal directories.