productclient

package
v0.0.0-...-22bdbfd Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseIDResp

type BaseIDResp = product.BaseIDResp

type BaseMsg

type BaseMsg = product.BaseMsg

type BaseResp

type BaseResp = product.BaseResp

type BaseUUIDResp

type BaseUUIDResp = product.BaseUUIDResp

type BrandCreateReq

type BrandCreateReq = product.BrandCreateReq

type BrandInfo

type BrandInfo = product.BrandInfo

type BrandListReq

type BrandListReq = product.BrandListReq

type BrandListResp

type BrandListResp = product.BrandListResp

type BrandPageReq

type BrandPageReq = product.BrandPageReq

type BrandResp

type BrandResp = product.BrandResp

type BrandUpdateReq

type BrandUpdateReq = product.BrandUpdateReq

type CategoryBase

type CategoryBase = product.CategoryBase

type CategoryCreateReq

type CategoryCreateReq = product.CategoryCreateReq

type CategoryInfo

type CategoryInfo = product.CategoryInfo

type CategoryLevelResp

type CategoryLevelResp = product.CategoryLevelResp

type CategoryListReq

type CategoryListReq = product.CategoryListReq

type CategoryListResp

type CategoryListResp = product.CategoryListResp

type CategoryUpdateReq

type CategoryUpdateReq = product.CategoryUpdateReq

type CommentInfo

type CommentInfo = product.CommentInfo

type CommentListReq

type CommentListReq = product.CommentListReq

type CommentListResp

type CommentListResp = product.CommentListResp

type Empty

type Empty = product.Empty

type GiveCouponTemplate

type GiveCouponTemplate = product.GiveCouponTemplate

type IDReq

type IDReq = product.IDReq

type IDsReq

type IDsReq = product.IDsReq

type Ids

type Ids = product.Ids

type PageInfoReq

type PageInfoReq = product.PageInfoReq

type Product

type Product interface {
	InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error)
	// Brand management
	CreateBrand(ctx context.Context, in *BrandCreateReq, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateBrand(ctx context.Context, in *BrandUpdateReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetBrandList(ctx context.Context, in *BrandListReq, opts ...grpc.CallOption) (*BrandListResp, error)
	GetBrandById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BrandInfo, error)
	DeleteBrand(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetBrandPage(ctx context.Context, in *BrandPageReq, opts ...grpc.CallOption) (*BrandListResp, error)
	// Category management
	CreateCategory(ctx context.Context, in *CategoryCreateReq, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateCategory(ctx context.Context, in *CategoryUpdateReq, opts ...grpc.CallOption) (*BaseResp, error)
	DeleteCategory(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetCategoryById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*CategoryInfo, error)
	GetCategoryLevel(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*CategoryLevelResp, error)
	GetEnableCategoryList(ctx context.Context, in *CategoryListReq, opts ...grpc.CallOption) (*CategoryListResp, error)
	// Comment management
	CreateComment(ctx context.Context, in *CommentInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateComment(ctx context.Context, in *CommentInfo, opts ...grpc.CallOption) (*BaseResp, error)
	GetCommentList(ctx context.Context, in *CommentListReq, opts ...grpc.CallOption) (*CommentListResp, error)
	GetCommentById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*CommentInfo, error)
	DeleteComment(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	// Property management
	CreateProperty(ctx context.Context, in *PropertyCreateReq, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateProperty(ctx context.Context, in *PropertyUpdateReq, opts ...grpc.CallOption) (*BaseResp, error)
	DeleteProperty(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetPropertyListByName(ctx context.Context, in *PropertyListByNameReq, opts ...grpc.CallOption) (*PropertyListResp, error)
	GetPropertyPage(ctx context.Context, in *PropertyPageReq, opts ...grpc.CallOption) (*PropertyListResp, error)
	GetPropertyById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*PropertyInfo, error)
	GetPropertyListByIds(ctx context.Context, in *PropertyListByIdsReq, opts ...grpc.CallOption) (*PropertyListResp, error)
	// PropertyValue management
	CreatePropertyValue(ctx context.Context, in *PropertyValueCreateReq, opts ...grpc.CallOption) (*BaseIDResp, error)
	DeletePropertyValue(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetPropertyValueById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*PropertyValueInfo, error)
	GetPropertyValueDetailList(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*PropertyValueDetailResp, error)
	GetPropertyValueListByPropertyId(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*PropertyValueListResp, error)
	GetPropertyValuePage(ctx context.Context, in *PropertyValuePageReq, opts ...grpc.CallOption) (*PropertyValueListResp, error)
	UpdatePropertyValue(ctx context.Context, in *PropertyValueUpdateReq, opts ...grpc.CallOption) (*BaseResp, error)
	// Sku management
	DeleteSku(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetSkuList(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*SkuListResp, error)
	GetSkuById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*SkuInfo, error)
	GetSkuListBySpuId(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*SkuListResp, error)
	// Spu management
	CreateSpu(ctx context.Context, in *SpuCreateReq, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateSpu(ctx context.Context, in *SpuUpdateReqVO, opts ...grpc.CallOption) (*BaseResp, error)
	UpdateStatus(ctx context.Context, in *SpuUpdateStatusReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetSpuList(ctx context.Context, in *SpuListReq, opts ...grpc.CallOption) (*SpuListResp, error)
	GetSpuById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*SpuInfo, error)
	DeleteSpu(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	ValidateSpuList(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*SpuListResp, error)
}

func NewProduct

func NewProduct(cli zrpc.Client) Product

type PropertyCreateReq

type PropertyCreateReq = product.PropertyCreateReq

type PropertyInfo

type PropertyInfo = product.PropertyInfo

type PropertyListByIdsReq

type PropertyListByIdsReq = product.PropertyListByIdsReq

type PropertyListByNameReq

type PropertyListByNameReq = product.PropertyListByNameReq

type PropertyListResp

type PropertyListResp = product.PropertyListResp

type PropertyPageReq

type PropertyPageReq = product.PropertyPageReq

type PropertyUpdateReq

type PropertyUpdateReq = product.PropertyUpdateReq

type PropertyValueCreateReq

type PropertyValueCreateReq = product.PropertyValueCreateReq

type PropertyValueDetailResp

type PropertyValueDetailResp = product.PropertyValueDetailResp

type PropertyValueInfo

type PropertyValueInfo = product.PropertyValueInfo

type PropertyValueListReq

type PropertyValueListReq = product.PropertyValueListReq

type PropertyValueListResp

type PropertyValueListResp = product.PropertyValueListResp

type PropertyValuePageReq

type PropertyValuePageReq = product.PropertyValuePageReq

type PropertyValueUpdateReq

type PropertyValueUpdateReq = product.PropertyValueUpdateReq

type SkuCreateOrUpdateReq

type SkuCreateOrUpdateReq = product.SkuCreateOrUpdateReq

type SkuInfo

type SkuInfo = product.SkuInfo

type SkuListResp

type SkuListResp = product.SkuListResp

type SkuProperty

type SkuProperty = product.SkuProperty

type SpuCreateReq

type SpuCreateReq = product.SpuCreateReq

type SpuInfo

type SpuInfo = product.SpuInfo

type SpuListReq

type SpuListReq = product.SpuListReq

type SpuListResp

type SpuListResp = product.SpuListResp

type SpuUpdateReqVO

type SpuUpdateReqVO = product.SpuUpdateReqVO

type SpuUpdateStatusReq

type SpuUpdateStatusReq = product.SpuUpdateStatusReq

type UUIDReq

type UUIDReq = product.UUIDReq

type UUIDsReq

type UUIDsReq = product.UUIDsReq

Jump to

Keyboard shortcuts

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