server

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: AGPL-3.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 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 (*ProductManageServer) ProductCategoryRead

func (s *ProductManageServer) ProductCategoryRead(ctx context.Context, in *dm.WithIDChildren) (*dm.ProductCategory, error)

获取产品信息详情

func (*ProductManageServer) ProductCategorySchemaIndex

获取产品品类下的物模型列表,绑定的物模型会自动添加到该产品品类及子分类的产品中,并不支持删除

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 (*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 (*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 (*ProductManageServer) ProductSchemaUpdate

func (s *ProductManageServer) ProductSchemaUpdate(ctx context.Context, in *dm.ProductSchemaUpdateReq) (*dm.Empty, error)

更新产品物模型

Jump to

Keyboard shortcuts

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