Documentation
¶
Index ¶
- func CreateLimitAndOffset(page int) (limit, offset int)
- func FormatPagedData[T any](data T, totalData int, page int, limit int) *dto.DataWithPaging[T]
- func GetProductIdsInCart(cart []*entity.Cart) []uint32
- func LogJSON(value any)
- func MapCartQueryToEntities(data []*entity.CartQueryRes) (carts []*entity.Cart, totalCart int)
- func MapCartToProductCartRes(cart []*entity.Cart, products []*pb.ProductCart) []*dto.ProductCartRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLimitAndOffset ¶
func FormatPagedData ¶
func GetProductIdsInCart ¶
func MapCartQueryToEntities ¶
func MapCartQueryToEntities(data []*entity.CartQueryRes) (carts []*entity.Cart, totalCart int)
func MapCartToProductCartRes ¶
func MapCartToProductCartRes(cart []*entity.Cart, products []*pb.ProductCart) []*dto.ProductCartRes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.