Documentation ¶
Index ¶
- type ProductManageServer
- func (s *ProductManageServer) ProductCategoryCreate(ctx context.Context, in *dm.ProductCategory) (*dm.WithID, error)
- func (s *ProductManageServer) ProductCategoryDelete(ctx context.Context, in *dm.WithID) (*dm.Empty, error)
- func (s *ProductManageServer) ProductCategoryIndex(ctx context.Context, in *dm.ProductCategoryIndexReq) (*dm.ProductCategoryIndexResp, error)
- func (s *ProductManageServer) ProductCategoryRead(ctx context.Context, in *dm.WithIDChildren) (*dm.ProductCategory, error)
- func (s *ProductManageServer) ProductCategorySchemaIndex(ctx context.Context, in *dm.ProductCategorySchemaIndexReq) (*dm.ProductCategorySchemaIndexResp, error)
- func (s *ProductManageServer) ProductCategorySchemaMultiCreate(ctx context.Context, in *dm.ProductCategorySchemaMultiSaveReq) (*dm.Empty, error)
- func (s *ProductManageServer) ProductCategorySchemaMultiDelete(ctx context.Context, in *dm.ProductCategorySchemaMultiSaveReq) (*dm.Empty, error)
- func (s *ProductManageServer) ProductCategorySchemaMultiUpdate(ctx context.Context, in *dm.ProductCategorySchemaMultiSaveReq) (*dm.Empty, error)
- func (s *ProductManageServer) ProductCategoryUpdate(ctx context.Context, in *dm.ProductCategory) (*dm.Empty, error)
- func (s *ProductManageServer) ProductCustomRead(ctx context.Context, in *dm.ProductCustomReadReq) (*dm.ProductCustom, error)
- func (s *ProductManageServer) ProductCustomUpdate(ctx context.Context, in *dm.ProductCustom) (*dm.Empty, error)
- func (s *ProductManageServer) ProductInfoCreate(ctx context.Context, in *dm.ProductInfo) (*dm.Empty, error)
- func (s *ProductManageServer) ProductInfoDelete(ctx context.Context, in *dm.ProductInfoDeleteReq) (*dm.Empty, error)
- func (s *ProductManageServer) ProductInfoIndex(ctx context.Context, in *dm.ProductInfoIndexReq) (*dm.ProductInfoIndexResp, error)
- func (s *ProductManageServer) ProductInfoRead(ctx context.Context, in *dm.ProductInfoReadReq) (*dm.ProductInfo, error)
- func (s *ProductManageServer) ProductInfoUpdate(ctx context.Context, in *dm.ProductInfo) (*dm.Empty, error)
- func (s *ProductManageServer) ProductInit(ctx context.Context, in *dm.ProductInitReq) (*dm.Empty, error)
- func (s *ProductManageServer) ProductSchemaCreate(ctx context.Context, in *dm.ProductSchemaCreateReq) (*dm.Empty, error)
- func (s *ProductManageServer) ProductSchemaDelete(ctx context.Context, in *dm.ProductSchemaDeleteReq) (*dm.Empty, error)
- func (s *ProductManageServer) ProductSchemaIndex(ctx context.Context, in *dm.ProductSchemaIndexReq) (*dm.ProductSchemaIndexResp, error)
- func (s *ProductManageServer) ProductSchemaMultiCreate(ctx context.Context, in *dm.ProductSchemaMultiCreateReq) (*dm.Empty, error)
- func (s *ProductManageServer) ProductSchemaTslImport(ctx context.Context, in *dm.ProductSchemaTslImportReq) (*dm.Empty, error)
- func (s *ProductManageServer) ProductSchemaTslRead(ctx context.Context, in *dm.ProductSchemaTslReadReq) (*dm.ProductSchemaTslReadResp, error)
- func (s *ProductManageServer) ProductSchemaUpdate(ctx context.Context, in *dm.ProductSchemaUpdateReq) (*dm.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductManageServer ¶
type ProductManageServer struct { dm.UnimplementedProductManageServer // contains filtered or unexported fields }
func NewProductManageServer ¶
func NewProductManageServer(svcCtx *svc.ServiceContext) *ProductManageServer
func (*ProductManageServer) ProductCategoryCreate ¶
func (s *ProductManageServer) ProductCategoryCreate(ctx context.Context, in *dm.ProductCategory) (*dm.WithID, error)
新增产品
func (*ProductManageServer) ProductCategoryDelete ¶
func (s *ProductManageServer) ProductCategoryDelete(ctx context.Context, in *dm.WithID) (*dm.Empty, error)
删除产品
func (*ProductManageServer) ProductCategoryIndex ¶
func (s *ProductManageServer) ProductCategoryIndex(ctx context.Context, in *dm.ProductCategoryIndexReq) (*dm.ProductCategoryIndexResp, error)
获取产品信息列表
func (*ProductManageServer) ProductCategoryRead ¶
func (s *ProductManageServer) ProductCategoryRead(ctx context.Context, in *dm.WithIDChildren) (*dm.ProductCategory, error)
获取产品信息详情
func (*ProductManageServer) ProductCategorySchemaIndex ¶
func (s *ProductManageServer) ProductCategorySchemaIndex(ctx context.Context, in *dm.ProductCategorySchemaIndexReq) (*dm.ProductCategorySchemaIndexResp, error)
获取产品品类下的物模型列表,绑定的物模型会自动添加到该产品品类及子分类的产品中,并不支持删除
func (*ProductManageServer) ProductCategorySchemaMultiCreate ¶
func (s *ProductManageServer) ProductCategorySchemaMultiCreate(ctx context.Context, in *dm.ProductCategorySchemaMultiSaveReq) (*dm.Empty, error)
func (*ProductManageServer) ProductCategorySchemaMultiDelete ¶
func (s *ProductManageServer) ProductCategorySchemaMultiDelete(ctx context.Context, in *dm.ProductCategorySchemaMultiSaveReq) (*dm.Empty, error)
func (*ProductManageServer) ProductCategorySchemaMultiUpdate ¶
func (s *ProductManageServer) ProductCategorySchemaMultiUpdate(ctx context.Context, in *dm.ProductCategorySchemaMultiSaveReq) (*dm.Empty, error)
func (*ProductManageServer) ProductCategoryUpdate ¶
func (s *ProductManageServer) ProductCategoryUpdate(ctx context.Context, in *dm.ProductCategory) (*dm.Empty, error)
更新产品
func (*ProductManageServer) ProductCustomRead ¶
func (s *ProductManageServer) ProductCustomRead(ctx context.Context, in *dm.ProductCustomReadReq) (*dm.ProductCustom, error)
脚本管理
func (*ProductManageServer) ProductCustomUpdate ¶
func (s *ProductManageServer) ProductCustomUpdate(ctx context.Context, in *dm.ProductCustom) (*dm.Empty, error)
func (*ProductManageServer) ProductInfoCreate ¶
func (s *ProductManageServer) ProductInfoCreate(ctx context.Context, in *dm.ProductInfo) (*dm.Empty, error)
新增产品
func (*ProductManageServer) ProductInfoDelete ¶
func (s *ProductManageServer) ProductInfoDelete(ctx context.Context, in *dm.ProductInfoDeleteReq) (*dm.Empty, error)
删除产品
func (*ProductManageServer) ProductInfoIndex ¶
func (s *ProductManageServer) ProductInfoIndex(ctx context.Context, in *dm.ProductInfoIndexReq) (*dm.ProductInfoIndexResp, error)
获取产品信息列表
func (*ProductManageServer) ProductInfoRead ¶
func (s *ProductManageServer) ProductInfoRead(ctx context.Context, in *dm.ProductInfoReadReq) (*dm.ProductInfo, error)
获取产品信息详情
func (*ProductManageServer) ProductInfoUpdate ¶
func (s *ProductManageServer) ProductInfoUpdate(ctx context.Context, in *dm.ProductInfo) (*dm.Empty, error)
更新产品
func (*ProductManageServer) ProductInit ¶
func (s *ProductManageServer) ProductInit(ctx context.Context, in *dm.ProductInitReq) (*dm.Empty, error)
func (*ProductManageServer) ProductSchemaCreate ¶
func (s *ProductManageServer) ProductSchemaCreate(ctx context.Context, in *dm.ProductSchemaCreateReq) (*dm.Empty, error)
新增产品
func (*ProductManageServer) ProductSchemaDelete ¶
func (s *ProductManageServer) ProductSchemaDelete(ctx context.Context, in *dm.ProductSchemaDeleteReq) (*dm.Empty, error)
删除产品
func (*ProductManageServer) ProductSchemaIndex ¶
func (s *ProductManageServer) ProductSchemaIndex(ctx context.Context, in *dm.ProductSchemaIndexReq) (*dm.ProductSchemaIndexResp, error)
获取产品信息列表
func (*ProductManageServer) ProductSchemaMultiCreate ¶
func (s *ProductManageServer) ProductSchemaMultiCreate(ctx context.Context, in *dm.ProductSchemaMultiCreateReq) (*dm.Empty, error)
批量新增物模型,只新增没有的,已有的不处理
func (*ProductManageServer) ProductSchemaTslImport ¶
func (s *ProductManageServer) ProductSchemaTslImport(ctx context.Context, in *dm.ProductSchemaTslImportReq) (*dm.Empty, error)
删除产品
func (*ProductManageServer) ProductSchemaTslRead ¶
func (s *ProductManageServer) ProductSchemaTslRead(ctx context.Context, in *dm.ProductSchemaTslReadReq) (*dm.ProductSchemaTslReadResp, error)
获取产品信息列表
func (*ProductManageServer) ProductSchemaUpdate ¶
func (s *ProductManageServer) ProductSchemaUpdate(ctx context.Context, in *dm.ProductSchemaUpdateReq) (*dm.Empty, error)
更新产品物模型
Click to show internal directories.
Click to hide internal directories.