mapping

package
v0.0.0-...-f15602e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mapping contains logic to convert domain entities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAddressResponse

func CreateAddressResponse(addr *address.Address) rest.Address

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

func CreateCartListResponse(carts cart.Carts) rest.CartList

CreateCartListResponse transform domain entity to rest response.

func CreateCartResponse

func CreateCartResponse(c *cart.Cart) rest.Cart

CreateCartResponse transform domain entity to rest response.

func CreateCategoryResponse

func CreateCategoryResponse(c *category.Category) rest.Category

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

func CreateGetUserResponse(u *user.User) rest.User

CreateGetUserResponse transform domain entity to rest response.

func CreateLoginResponse

func CreateLoginResponse(token string) rest.LoginResponse

CreateLoginResponse transform domain entity to rest response.

func CreateProductResponse

func CreateProductResponse(p *product.Product) rest.Product

CreateProductResponse transform domain entity to rest response.

func CreateProductsResponse

func CreateProductsResponse(products product.Products) []rest.Product

CreateProductsResponse transform domain entity to rest response.

func CreateUploadImageResponse

func CreateUploadImageResponse(img *product.Image) rest.Image

CreateUploadImageResponse transform domain entity to rest response.

func CreateUploadImagesResponse

func CreateUploadImagesResponse(images product.Images) rest.ImageList

CreateUploadImagesResponse transform domain entity to rest response.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL