Documentation ¶
Overview ¶
Package mappers is the package that maps objects back and fort between dao and domain
Package mappers is the package that maps objects back and fort between dao and domain ¶
Package mappers is the package that maps objects back and fort between dao and domain ¶
Package mappers is the package that maps objects back and fort between dao and domain ¶
Package mappers is the package that maps objects back and fort between dao and domain
Index ¶
- func MapCityDAO2City(cityDAO dao.CityDAO) domain.City
- func MapConversation2ConversationDAO(conversation *domain.Conversation) *dao.ConversationDAO
- func MapConversationDAO2Conversation(conversationDAO *dao.ConversationDAO) *domain.Conversation
- func MapConversationDAOs2Conversations(conversationsDAO []dao.ConversationDAO) []domain.Conversation
- func MapCountryDAO2Country(countryDAO dao.CountryDAO) domain.Country
- func MapCountryDAOs2Countries(countryDAOs []dao.CountryDAO) []domain.Country
- func MapMessage2MessageDAO(message *domain.Message) *dao.MessageDAO
- func MapMessageDAO2Message(messageDAO *dao.MessageDAO) *domain.Message
- func MapMessageDAOs2Messages(messagesDAO []dao.MessageDAO) []domain.Message
- func MapMessages2MessageDAOs(messages []domain.Message) []dao.MessageDAO
- func MapRequesDAOs2Requests(requestDAOs []dao.RequestDAO) *[]domain.Request
- func MapRequest2RequestDAO(request *domain.Request) *dao.RequestDAO
- func MapRequestDAO2Request(requestDAO *dao.RequestDAO) *domain.Request
- func MapTrip2TripDAO(trip domain.Trip) (dao.TripDAO, error)
- func MapTripDAO2Trip(tripDAO *dao.TripDAO) *domain.Trip
- func MapTripDAOs2Trips(tripsDAO []*dao.TripDAO) []*domain.Trip
- func MapTripDetailDAO2TripDetail(tripDetailDAO *dao.TripDetailDAO) *domain.TripDetail
- func MapUser2NewUserDAO(u domain.User) dao.UserDAO
- func MapUserDAO2User(u dao.UserDAO) domain.User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapCityDAO2City ¶
MapCityDAO2City maps a CityDAO to a City
func MapConversation2ConversationDAO ¶
func MapConversation2ConversationDAO(conversation *domain.Conversation) *dao.ConversationDAO
MapConversation2ConversationDAO maps a Conversation to a ConversationDAO
func MapConversationDAO2Conversation ¶
func MapConversationDAO2Conversation(conversationDAO *dao.ConversationDAO) *domain.Conversation
MapConversationDAO2Conversation maps a ConversationDAO to a Conversation
func MapConversationDAOs2Conversations ¶
func MapConversationDAOs2Conversations(conversationsDAO []dao.ConversationDAO) []domain.Conversation
MapConversationDAOs2Conversations maps a slice of ConversationDAO to a slice of Conversation
func MapCountryDAO2Country ¶
func MapCountryDAO2Country(countryDAO dao.CountryDAO) domain.Country
MapCountryDAO2Country maps a CountryDAO to a Country
func MapCountryDAOs2Countries ¶
func MapCountryDAOs2Countries(countryDAOs []dao.CountryDAO) []domain.Country
MapCountryDAOs2Countries maps a slice of CountryDAO to a slice of Country
func MapMessage2MessageDAO ¶
func MapMessage2MessageDAO(message *domain.Message) *dao.MessageDAO
MapMessage2MessageDAO maps a Message to a MessageDAO
func MapMessageDAO2Message ¶
func MapMessageDAO2Message(messageDAO *dao.MessageDAO) *domain.Message
MapMessageDAO2Message maps a MessageDAO to a Message
func MapMessageDAOs2Messages ¶
func MapMessageDAOs2Messages(messagesDAO []dao.MessageDAO) []domain.Message
MapMessageDAOs2Messages maps a slice of MessageDAO to a slice of Message
func MapMessages2MessageDAOs ¶
func MapMessages2MessageDAOs(messages []domain.Message) []dao.MessageDAO
MapMessages2MessageDAOs maps a slice of Message to a slice of MessageDAO
func MapRequesDAOs2Requests ¶
func MapRequesDAOs2Requests(requestDAOs []dao.RequestDAO) *[]domain.Request
MapRequesDAOs2Requests maps a slice of dao.RequestDAO to a slice of domain.Request
func MapRequest2RequestDAO ¶
func MapRequest2RequestDAO(request *domain.Request) *dao.RequestDAO
MapRequest2RequestDAO maps a domain.Request to a dao.RequestDAO
func MapRequestDAO2Request ¶
func MapRequestDAO2Request(requestDAO *dao.RequestDAO) *domain.Request
MapRequestDAO2Request maps a dao.RequestDAO to a domain.Request
func MapTrip2TripDAO ¶
MapTrip2TripDAO maps a Trip to a TripDAO
func MapTripDAO2Trip ¶
MapTripDAO2Trip maps a TripDAO to a Trip
func MapTripDAOs2Trips ¶
MapTripDAOs2Trips maps a slice of TripDAO to a slice of Trip
func MapTripDetailDAO2TripDetail ¶
func MapTripDetailDAO2TripDetail(tripDetailDAO *dao.TripDetailDAO) *domain.TripDetail
MapTripDetailDAO2TripDetail maps a TripDetailDAO to a TripDetail
func MapUser2NewUserDAO ¶
MapUser2NewUserDAO maps domain User to dao User
Types ¶
This section is empty.