Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorResponse ¶
type CreateAuthorDto ¶
type CreateAuthorResponseDto ¶
type CreateProductDto ¶
type ProductResponse ¶
type ProductResponse struct { ProductID string `json:"productId"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Price float64 `json:"price,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` UpdatedAt time.Time `json:"updatedAt,omitempty"` }
func ProductResponseFromGrpc ¶
func ProductResponseFromGrpc(product *readerService.Product) *ProductResponse
type ProductsListResponse ¶
type ProductsListResponse struct { TotalCount int64 `json:"totalCount" bson:"totalCount"` TotalPages int64 `json:"totalPages" bson:"totalPages"` Page int64 `json:"page" bson:"page"` Size int64 `json:"size" bson:"size"` HasMore bool `json:"hasMore" bson:"hasMore"` Products []*ProductResponse `json:"products" bson:"products"` }
func ProductsListResponseFromGrpc ¶
func ProductsListResponseFromGrpc(listResponse *readerService.SearchRes) *ProductsListResponse
type UpdateProductDto ¶
Click to show internal directories.
Click to hide internal directories.