Documentation
¶
Index ¶
- type BaseIDResp
- type BaseMsg
- type BaseResp
- type BaseUUIDResp
- type BrandCreateReq
- type BrandInfo
- type BrandListReq
- type BrandListResp
- type BrandPageReq
- type BrandResp
- type BrandUpdateReq
- type CategoryBase
- type CategoryCreateReq
- type CategoryInfo
- type CategoryLevelResp
- type CategoryListReq
- type CategoryListResp
- type CategoryUpdateReq
- type CommentInfo
- type CommentListReq
- type CommentListResp
- type Empty
- type GiveCouponTemplate
- type IDReq
- type IDsReq
- type Ids
- type PageInfoReq
- type Product
- type PropertyCreateReq
- type PropertyInfo
- type PropertyListByIdsReq
- type PropertyListByNameReq
- type PropertyListResp
- type PropertyPageReq
- type PropertyUpdateReq
- type PropertyValueCreateReq
- type PropertyValueDetailResp
- type PropertyValueInfo
- type PropertyValueListReq
- type PropertyValueListResp
- type PropertyValuePageReq
- type PropertyValueUpdateReq
- type SkuCreateOrUpdateReq
- type SkuInfo
- type SkuListResp
- type SkuProperty
- type SpuCreateReq
- type SpuInfo
- type SpuListReq
- type SpuListResp
- type SpuUpdateReqVO
- type SpuUpdateStatusReq
- type UUIDReq
- type UUIDsReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseIDResp ¶
type BaseIDResp = product.BaseIDResp
type BaseUUIDResp ¶
type BaseUUIDResp = product.BaseUUIDResp
type BrandCreateReq ¶
type BrandCreateReq = product.BrandCreateReq
type BrandListReq ¶
type BrandListReq = product.BrandListReq
type BrandListResp ¶
type BrandListResp = product.BrandListResp
type BrandPageReq ¶
type BrandPageReq = product.BrandPageReq
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 GiveCouponTemplate ¶
type GiveCouponTemplate = product.GiveCouponTemplate
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 ¶
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 SkuListResp ¶
type SkuListResp = product.SkuListResp
type SkuProperty ¶
type SkuProperty = product.SkuProperty
type SpuCreateReq ¶
type SpuCreateReq = product.SpuCreateReq
type SpuListReq ¶
type SpuListReq = product.SpuListReq
type SpuListResp ¶
type SpuListResp = product.SpuListResp
type SpuUpdateReqVO ¶
type SpuUpdateReqVO = product.SpuUpdateReqVO
type SpuUpdateStatusReq ¶
type SpuUpdateStatusReq = product.SpuUpdateStatusReq
Click to show internal directories.
Click to hide internal directories.