Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mappable ¶
type Mappable interface {
Map() DTO
}
Mappable - Defines an interface for a model that want translate himself to a dto
type UserDTO ¶
type UserDTO struct { ID int64 `json:"id"` Name null.String `json:"name"` Lastname null.String `json:"lastname"` Gender null.String `json:"gender"` }
UserDTO - Defines user dto
func MapUserDTO ¶
MapUserDTO - Maps dto from a Mappable interface
Click to show internal directories.
Click to hide internal directories.