Documentation ¶
Overview ¶
Package mappers is the package that maps objects back and fort between dto and domain
Package mappers is the package that maps objects back and fort between dto and domain ¶
Package mappers is the package that maps objects back and fort between dto and domain ¶
Package mappers is the package that maps objects back and fort between dto and domain ¶
Package mappers is the package that maps objects back and fort between dto and domain
Index ¶
- func MapAddRequestRequest2Request(request dto.AddRequestRequest) (domain.Request, error)
- func MapAddTripRequest2Trip(trip dto.AddTripRequest) (domain.Trip, error)
- func MapAddUserRequest2User(ur dto.AddUserRequest) domain.User
- func MapCities2CitiesDTO(cities []domain.City) []dto.CityDTO
- func MapCity2CityDTO(city domain.City) dto.CityDTO
- func MapConversation2ConversationResponse(conversation domain.Conversation) dto.ConversationResponse
- func MapConversations2ConversationResponses(conversations []domain.Conversation) []dto.ConversationResponse
- func MapCountry2CountryDTO(country domain.Country) dto.CountryDTO
- func MapMessage2MessageResponse(message domain.Message) dto.MessageResponse
- func MapMessages2MessageResponses(messages []domain.Message) []dto.MessageResponse
- func MapRequest2RequestListResponse(request *domain.Request) *dto.RequestListResponse
- func MapRequest2RequestResponse(request *domain.Request) *dto.RequestResponse
- func MapRequests2RequestListResponses(requests *[]domain.Request) *[]dto.RequestListResponse
- func MapTrip2TripListItem(trip domain.Trip) dto.TripListItem
- func MapTripDetail2TripDetailResponse(tripDetail domain.TripDetail) dto.TripDetailResponse
- func MapTrips2TripListItems(trips []*domain.Trip) []dto.TripListItem
- func MapUser2LUserResponse(u domain.User) dto.LongUserResponse
- func MapUser2SUserResponse(u domain.User) dto.ShortUserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapAddRequestRequest2Request ¶
func MapAddRequestRequest2Request(request dto.AddRequestRequest) (domain.Request, error)
MapAddRequestRequest2Request maps the request dto to the domain request
func MapAddTripRequest2Trip ¶
func MapAddTripRequest2Trip(trip dto.AddTripRequest) (domain.Trip, error)
MapAddTripRequest2Trip maps a dto.AddTripRequest to a domain.Trip
func MapAddUserRequest2User ¶
func MapAddUserRequest2User(ur dto.AddUserRequest) domain.User
MapAddUserRequest2User maps dto UserRequest to domain User
func MapCities2CitiesDTO ¶
MapCities2CitiesDTO maps []domain.City to []dto.CityDTO
func MapCity2CityDTO ¶
MapCity2CityDTO maps domain.City to dto.CityDTO
func MapConversation2ConversationResponse ¶
func MapConversation2ConversationResponse(conversation domain.Conversation) dto.ConversationResponse
MapConversation2ConversationResponse maps a domain.Conversation to a dto.ConversationResponse
func MapConversations2ConversationResponses ¶
func MapConversations2ConversationResponses(conversations []domain.Conversation) []dto.ConversationResponse
MapConversations2ConversationResponses maps a slice of domain.Conversation to a slice of dto.ConversationResponse
func MapCountry2CountryDTO ¶
func MapCountry2CountryDTO(country domain.Country) dto.CountryDTO
MapCountry2CountryDTO maps domain.Country to dto.CountryDTO
func MapMessage2MessageResponse ¶
func MapMessage2MessageResponse(message domain.Message) dto.MessageResponse
MapMessage2MessageResponse maps a domain.Message to a dto.MessageResponse
func MapMessages2MessageResponses ¶
func MapMessages2MessageResponses(messages []domain.Message) []dto.MessageResponse
MapMessages2MessageResponses maps a slice of domain.Message to a slice of dto.MessageResponse
func MapRequest2RequestListResponse ¶
func MapRequest2RequestListResponse(request *domain.Request) *dto.RequestListResponse
MapRequest2RequestListResponse maps the domain request to the request list response dto
func MapRequest2RequestResponse ¶
func MapRequest2RequestResponse(request *domain.Request) *dto.RequestResponse
MapRequest2RequestResponse maps the domain request to the request response dto
func MapRequests2RequestListResponses ¶
func MapRequests2RequestListResponses(requests *[]domain.Request) *[]dto.RequestListResponse
MapRequests2RequestListResponses maps the domain requests to the request list response dtos
func MapTrip2TripListItem ¶
func MapTrip2TripListItem(trip domain.Trip) dto.TripListItem
MapTrip2TripListItem maps a domain.Trip to a dto.TripListItem
func MapTripDetail2TripDetailResponse ¶
func MapTripDetail2TripDetailResponse(tripDetail domain.TripDetail) dto.TripDetailResponse
MapTripDetail2TripDetailResponse maps a domain.TripDetail to a dto.TripDetailResponse
func MapTrips2TripListItems ¶
func MapTrips2TripListItems(trips []*domain.Trip) []dto.TripListItem
MapTrips2TripListItems maps a slice of domain.Trip to a slice of dto.TripListItem
func MapUser2LUserResponse ¶
func MapUser2LUserResponse(u domain.User) dto.LongUserResponse
MapUser2LUserResponse maps domain User to dto ShortUserResponse
func MapUser2SUserResponse ¶
func MapUser2SUserResponse(u domain.User) dto.ShortUserResponse
MapUser2SUserResponse maps domain User to dto ShortUserResponse
Types ¶
This section is empty.