productservice

package
v0.0.0-...-3414fa2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category = product.Category

type CreateCategoryRequest

type CreateCategoryRequest = product.CreateCategoryRequest

type CreateCategoryResponse

type CreateCategoryResponse = product.CreateCategoryResponse

type CreateProductRequest

type CreateProductRequest = product.CreateProductRequest

type CreateProductResponse

type CreateProductResponse = product.CreateProductResponse

type CreateReviewRequest

type CreateReviewRequest = product.CreateReviewRequest

type CreateReviewResponse

type CreateReviewResponse = product.CreateReviewResponse

type CreateSkuRequest

type CreateSkuRequest = product.CreateSkuRequest

type CreateSkuResponse

type CreateSkuResponse = product.CreateSkuResponse

type DeleteCategoryRequest

type DeleteCategoryRequest = product.DeleteCategoryRequest

type DeleteCategoryResponse

type DeleteCategoryResponse = product.DeleteCategoryResponse

type DeleteProductRequest

type DeleteProductRequest = product.DeleteProductRequest

type DeleteProductResponse

type DeleteProductResponse = product.DeleteProductResponse

type DeleteReviewRequest

type DeleteReviewRequest = product.DeleteReviewRequest

type DeleteReviewResponse

type DeleteReviewResponse = product.DeleteReviewResponse

type DeleteSkuRequest

type DeleteSkuRequest = product.DeleteSkuRequest

type DeleteSkuResponse

type DeleteSkuResponse = product.DeleteSkuResponse

type Empty

type Empty = product.Empty

type GetCategoriesResponse

type GetCategoriesResponse = product.GetCategoriesResponse

type GetCategoryRequest

type GetCategoryRequest = product.GetCategoryRequest

type GetCategoryResponse

type GetCategoryResponse = product.GetCategoryResponse

type GetProductRequest

type GetProductRequest = product.GetProductRequest

type GetProductResponse

type GetProductResponse = product.GetProductResponse

type GetSkuRequest

type GetSkuRequest = product.GetSkuRequest

type GetSkuResponse

type GetSkuResponse = product.GetSkuResponse

type ListCategoriesRequest

type ListCategoriesRequest = product.ListCategoriesRequest

type ListCategoriesResponse

type ListCategoriesResponse = product.ListCategoriesResponse

type ListProductsRequest

type ListProductsRequest = product.ListProductsRequest

type ListProductsResponse

type ListProductsResponse = product.ListProductsResponse

type ListReviewsRequest

type ListReviewsRequest = product.ListReviewsRequest

type ListReviewsResponse

type ListReviewsResponse = product.ListReviewsResponse

type ListSkusRequest

type ListSkusRequest = product.ListSkusRequest

type ListSkusResponse

type ListSkusResponse = product.ListSkusResponse

type Product

type Product = product.Product

type ProductService

type ProductService interface {
	// Product Management
	CreateProduct(ctx context.Context, in *CreateProductRequest, opts ...grpc.CallOption) (*CreateProductResponse, error)
	UpdateProduct(ctx context.Context, in *UpdateProductRequest, opts ...grpc.CallOption) (*UpdateProductResponse, error)
	GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*GetProductResponse, error)
	ListProducts(ctx context.Context, in *ListProductsRequest, opts ...grpc.CallOption) (*ListProductsResponse, error)
	DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*DeleteProductResponse, error)
	// Category Management
	CreateCategory(ctx context.Context, in *CreateCategoryRequest, opts ...grpc.CallOption) (*CreateCategoryResponse, error)
	UpdateCategory(ctx context.Context, in *UpdateCategoryRequest, opts ...grpc.CallOption) (*UpdateCategoryResponse, error)
	DeleteCategory(ctx context.Context, in *DeleteCategoryRequest, opts ...grpc.CallOption) (*DeleteCategoryResponse, error)
	GetCategory(ctx context.Context, in *GetCategoryRequest, opts ...grpc.CallOption) (*GetCategoryResponse, error)
	ListCategories(ctx context.Context, in *ListCategoriesRequest, opts ...grpc.CallOption) (*ListCategoriesResponse, error)
	GetCategories(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetCategoriesResponse, error)
	// SKU Management
	CreateSku(ctx context.Context, in *CreateSkuRequest, opts ...grpc.CallOption) (*CreateSkuResponse, error)
	UpdateSku(ctx context.Context, in *UpdateSkuRequest, opts ...grpc.CallOption) (*UpdateSkuResponse, error)
	GetSku(ctx context.Context, in *GetSkuRequest, opts ...grpc.CallOption) (*GetSkuResponse, error)
	ListSkus(ctx context.Context, in *ListSkusRequest, opts ...grpc.CallOption) (*ListSkusResponse, error)
	DeleteSku(ctx context.Context, in *DeleteSkuRequest, opts ...grpc.CallOption) (*DeleteSkuResponse, error)
	// Review Management
	CreateReview(ctx context.Context, in *CreateReviewRequest, opts ...grpc.CallOption) (*CreateReviewResponse, error)
	UpdateReview(ctx context.Context, in *UpdateReviewRequest, opts ...grpc.CallOption) (*UpdateReviewResponse, error)
	DeleteReview(ctx context.Context, in *DeleteReviewRequest, opts ...grpc.CallOption) (*DeleteReviewResponse, error)
	ListReviews(ctx context.Context, in *ListReviewsRequest, opts ...grpc.CallOption) (*ListReviewsResponse, error)
}

func NewProductService

func NewProductService(cli zrpc.Client) ProductService

type Review

type Review = product.Review

type Sku

type Sku = product.Sku

type SkuAttribute

type SkuAttribute = product.SkuAttribute

type UpdateCategoryRequest

type UpdateCategoryRequest = product.UpdateCategoryRequest

type UpdateCategoryResponse

type UpdateCategoryResponse = product.UpdateCategoryResponse

type UpdateProductRequest

type UpdateProductRequest = product.UpdateProductRequest

type UpdateProductResponse

type UpdateProductResponse = product.UpdateProductResponse

type UpdateReviewRequest

type UpdateReviewRequest = product.UpdateReviewRequest

type UpdateReviewResponse

type UpdateReviewResponse = product.UpdateReviewResponse

type UpdateSkuRequest

type UpdateSkuRequest = product.UpdateSkuRequest

type UpdateSkuResponse

type UpdateSkuResponse = product.UpdateSkuResponse

Jump to

Keyboard shortcuts

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