Documentation ¶
Overview ¶
Package mapping contains logic to convert domain entities
Index ¶
- func CreateAddressResponse(addr *address.Address) rest.Address
- func CreateAddressesResponse(addresses address.Addresses) rest.AddressList
- func CreateCartListResponse(carts cart.Carts) rest.CartList
- func CreateCartResponse(c *cart.Cart) rest.Cart
- func CreateCategoryResponse(c *category.Category) rest.Category
- func CreateGetCategoriesResponse(categories category.Categories) rest.CategoryList
- func CreateGetProductsResponse(products *product.QueryResult) rest.ProductList
- func CreateGetUserResponse(u *user.User) rest.User
- func CreateLoginResponse(token string) rest.LoginResponse
- func CreateProductResponse(p *product.Product) rest.Product
- func CreateProductsResponse(products product.Products) []rest.Product
- func CreateUploadImageResponse(img *product.Image) rest.Image
- func CreateUploadImagesResponse(images product.Images) rest.ImageList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAddressResponse ¶
CreateAddressResponse transform domain entity to rest response.
func CreateAddressesResponse ¶
func CreateAddressesResponse(addresses address.Addresses) rest.AddressList
CreateAddressesResponse transform domain entity to rest response.
func CreateCartListResponse ¶
CreateCartListResponse transform domain entity to rest response.
func CreateCartResponse ¶
CreateCartResponse transform domain entity to rest response.
func CreateCategoryResponse ¶
CreateCategoryResponse transform domain entity to rest response.
func CreateGetCategoriesResponse ¶
func CreateGetCategoriesResponse(categories category.Categories) rest.CategoryList
CreateGetCategoriesResponse transform domain entity to rest response.
func CreateGetProductsResponse ¶
func CreateGetProductsResponse(products *product.QueryResult) rest.ProductList
CreateGetProductsResponse transform domain entity to rest response.
func CreateGetUserResponse ¶
CreateGetUserResponse transform domain entity to rest response.
func CreateLoginResponse ¶
func CreateLoginResponse(token string) rest.LoginResponse
CreateLoginResponse transform domain entity to rest response.
func CreateProductResponse ¶
CreateProductResponse transform domain entity to rest response.
func CreateProductsResponse ¶
CreateProductsResponse transform domain entity to rest response.
func CreateUploadImageResponse ¶
CreateUploadImageResponse transform domain entity to rest response.
Types ¶
This section is empty.