Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkCreateRequest ¶
type LinkCreateRequest struct {
URL string `json:"url"`
}
type LinkResponse ¶
type LinkResponse struct { ID uint `json:"id"` URL string `json:"url"` ShortURL string `json:"short_url"` }
func MapLinkListResponse ¶
func MapLinkListResponse(links []domain.Link) []LinkResponse
func MapLinkResponse ¶
func MapLinkResponse(link domain.Link) LinkResponse
type UserLoginRequest ¶
type UserLoginResponse ¶
type UserResponse ¶
type UserResponse struct { ID uint `json:"id"` Email string `json:"email"` Links []LinkResponse `json:"links"` }
func MapUserResponse ¶
func MapUserResponse(user *domain.User) *UserResponse
Click to show internal directories.
Click to hide internal directories.