productmanagelogic

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CategorySchemaCreate

func CategorySchemaCreate(ctx context.Context, svcCtx *svc.ServiceContext, productID string, categoryID int64) error

Types

type ProductCategoryCreateLogic

type ProductCategoryCreateLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewProductCategoryCreateLogic

func NewProductCategoryCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductCategoryCreateLogic

func (*ProductCategoryCreateLogic) ProductCategoryCreate

func (l *ProductCategoryCreateLogic) ProductCategoryCreate(in *dm.ProductCategory) (*dm.WithID, error)

新增产品

type ProductCategoryDeleteLogic

type ProductCategoryDeleteLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewProductCategoryDeleteLogic

func NewProductCategoryDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductCategoryDeleteLogic

func (*ProductCategoryDeleteLogic) ProductCategoryDelete

func (l *ProductCategoryDeleteLogic) ProductCategoryDelete(in *dm.WithID) (*dm.Empty, error)

删除产品

type ProductCategoryIndexLogic

type ProductCategoryIndexLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewProductCategoryIndexLogic

func NewProductCategoryIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductCategoryIndexLogic

func (*ProductCategoryIndexLogic) ProductCategoryIndex

获取产品信息列表

type ProductCategoryReadLogic

type ProductCategoryReadLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewProductCategoryReadLogic

func NewProductCategoryReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductCategoryReadLogic

func (*ProductCategoryReadLogic) ProductCategoryRead

func (l *ProductCategoryReadLogic) ProductCategoryRead(in *dm.WithIDChildren) (*dm.ProductCategory, error)

获取产品信息详情

type ProductCategorySchemaIndexLogic

type ProductCategorySchemaIndexLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewProductCategorySchemaIndexLogic

func NewProductCategorySchemaIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductCategorySchemaIndexLogic

func (*ProductCategorySchemaIndexLogic) ProductCategorySchemaIndex

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

type ProductCategorySchemaMultiCreateLogic

type ProductCategorySchemaMultiCreateLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewProductCategorySchemaMultiCreateLogic

func NewProductCategorySchemaMultiCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductCategorySchemaMultiCreateLogic

func (*ProductCategorySchemaMultiCreateLogic) ProductCategorySchemaMultiCreate

func (l *ProductCategorySchemaMultiCreateLogic) ProductCategorySchemaMultiCreate(in *dm.ProductCategorySchemaMultiSaveReq) (*dm.Empty, error)

type ProductCategorySchemaMultiDeleteLogic

type ProductCategorySchemaMultiDeleteLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewProductCategorySchemaMultiDeleteLogic

func NewProductCategorySchemaMultiDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductCategorySchemaMultiDeleteLogic

func (*ProductCategorySchemaMultiDeleteLogic) ProductCategorySchemaMultiDelete

func (l *ProductCategorySchemaMultiDeleteLogic) ProductCategorySchemaMultiDelete(in *dm.ProductCategorySchemaMultiSaveReq) (*dm.Empty, error)

type ProductCategorySchemaMultiUpdateLogic

type ProductCategorySchemaMultiUpdateLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewProductCategorySchemaMultiUpdateLogic

func NewProductCategorySchemaMultiUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductCategorySchemaMultiUpdateLogic

func (*ProductCategorySchemaMultiUpdateLogic) ProductCategorySchemaMultiUpdate

func (l *ProductCategorySchemaMultiUpdateLogic) ProductCategorySchemaMultiUpdate(in *dm.ProductCategorySchemaMultiSaveReq) (*dm.Empty, error)

type ProductCategoryUpdateLogic

type ProductCategoryUpdateLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewProductCategoryUpdateLogic

func NewProductCategoryUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductCategoryUpdateLogic

func (*ProductCategoryUpdateLogic) ProductCategoryUpdate

func (l *ProductCategoryUpdateLogic) ProductCategoryUpdate(in *dm.ProductCategory) (*dm.Empty, error)

更新产品

type ProductCustomReadLogic

type ProductCustomReadLogic struct {
	logx.Logger
	PcDB *relationDB.ProductCustomRepo
	// contains filtered or unexported fields
}

func NewProductCustomReadLogic

func NewProductCustomReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductCustomReadLogic

func (*ProductCustomReadLogic) ProductCustomRead

func (l *ProductCustomReadLogic) ProductCustomRead(in *dm.ProductCustomReadReq) (*dm.ProductCustom, error)

脚本管理

type ProductCustomUpdateLogic

type ProductCustomUpdateLogic struct {
	logx.Logger
	PcDB *relationDB.ProductCustomRepo
	// contains filtered or unexported fields
}

func NewProductCustomUpdateLogic

func NewProductCustomUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductCustomUpdateLogic

func (*ProductCustomUpdateLogic) ProductCustomUpdate

func (l *ProductCustomUpdateLogic) ProductCustomUpdate(in *dm.ProductCustom) (*dm.Empty, error)

type ProductInfoCreateLogic

type ProductInfoCreateLogic struct {
	logx.Logger
	PiDB *relationDB.ProductInfoRepo
	// contains filtered or unexported fields
}

func NewProductInfoCreateLogic

func NewProductInfoCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductInfoCreateLogic

func (*ProductInfoCreateLogic) CheckProduct

func (l *ProductInfoCreateLogic) CheckProduct(in *dm.ProductInfo) (bool, error)

发现返回true 没有返回false

func (*ProductInfoCreateLogic) CheckProductID

func (l *ProductInfoCreateLogic) CheckProductID(in *dm.ProductInfo) (bool, error)

检测productid,发现返回true 没有返回false

func (*ProductInfoCreateLogic) ConvProductPbToPo

func (l *ProductInfoCreateLogic) ConvProductPbToPo(in *dm.ProductInfo) (*relationDB.DmProductInfo, error)

根据用户的输入生成对应的数据库数据

func (*ProductInfoCreateLogic) InitProduct

func (*ProductInfoCreateLogic) ProductInfoCreate

func (l *ProductInfoCreateLogic) ProductInfoCreate(in *dm.ProductInfo) (*dm.Empty, error)

新增设备

type ProductInfoDeleteLogic

type ProductInfoDeleteLogic struct {
	logx.Logger
	PiDB *relationDB.ProductInfoRepo
	DiDB *relationDB.DeviceInfoRepo
	// contains filtered or unexported fields
}

func NewProductInfoDeleteLogic

func NewProductInfoDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductInfoDeleteLogic

func (*ProductInfoDeleteLogic) Check

func (*ProductInfoDeleteLogic) DropProduct

func (*ProductInfoDeleteLogic) ProductInfoDelete

func (l *ProductInfoDeleteLogic) ProductInfoDelete(in *dm.ProductInfoDeleteReq) (*dm.Empty, error)

删除设备

type ProductInfoIndexLogic

type ProductInfoIndexLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewProductInfoIndexLogic

func NewProductInfoIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductInfoIndexLogic

func (*ProductInfoIndexLogic) ProductInfoIndex

获取设备信息列表

type ProductInfoReadLogic

type ProductInfoReadLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewProductInfoReadLogic

func NewProductInfoReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductInfoReadLogic

func (*ProductInfoReadLogic) ProductInfoRead

func (l *ProductInfoReadLogic) ProductInfoRead(in *dm.ProductInfoReadReq) (*dm.ProductInfo, error)

获取设备信息详情

type ProductInfoUpdateLogic

type ProductInfoUpdateLogic struct {
	logx.Logger
	PiDB *relationDB.ProductInfoRepo
	// contains filtered or unexported fields
}

func NewProductInfoUpdateLogic

func NewProductInfoUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductInfoUpdateLogic

func (*ProductInfoUpdateLogic) ProductInfoUpdate

func (l *ProductInfoUpdateLogic) ProductInfoUpdate(in *dm.ProductInfo) (*dm.Empty, error)

更新设备

type ProductInitLogic

type ProductInitLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewProductInitLogic

func NewProductInitLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductInitLogic

func (*ProductInitLogic) ProductInit

func (l *ProductInitLogic) ProductInit(in *dm.ProductInitReq) (*dm.Empty, error)

type ProductSchemaCreateLogic

type ProductSchemaCreateLogic struct {
	logx.Logger
	PiDB *relationDB.ProductInfoRepo
	PsDB *relationDB.ProductSchemaRepo
	// contains filtered or unexported fields
}

func NewProductSchemaCreateLogic

func NewProductSchemaCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductSchemaCreateLogic

func (*ProductSchemaCreateLogic) ProductSchemaCreate

func (l *ProductSchemaCreateLogic) ProductSchemaCreate(in *dm.ProductSchemaCreateReq) (*dm.Empty, error)

新增产品

type ProductSchemaDeleteLogic

type ProductSchemaDeleteLogic struct {
	logx.Logger
	PsDB *relationDB.ProductSchemaRepo
	// contains filtered or unexported fields
}

func NewProductSchemaDeleteLogic

func NewProductSchemaDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductSchemaDeleteLogic

func (*ProductSchemaDeleteLogic) ProductSchemaDelete

func (l *ProductSchemaDeleteLogic) ProductSchemaDelete(in *dm.ProductSchemaDeleteReq) (*dm.Empty, error)

删除产品

type ProductSchemaIndexLogic

type ProductSchemaIndexLogic struct {
	logx.Logger
	PsDB *relationDB.ProductSchemaRepo
	// contains filtered or unexported fields
}

func NewProductSchemaIndexLogic

func NewProductSchemaIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductSchemaIndexLogic

func (*ProductSchemaIndexLogic) ProductSchemaIndex

获取产品信息列表

type ProductSchemaMultiCreateLogic

type ProductSchemaMultiCreateLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewProductSchemaMultiCreateLogic

func NewProductSchemaMultiCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductSchemaMultiCreateLogic

func (*ProductSchemaMultiCreateLogic) ProductSchemaMultiCreate

func (l *ProductSchemaMultiCreateLogic) ProductSchemaMultiCreate(in *dm.ProductSchemaMultiCreateReq) (*dm.Empty, error)

批量新增物模型,只新增没有的,已有的不处理

type ProductSchemaTslImportLogic

type ProductSchemaTslImportLogic struct {
	logx.Logger
	PiDB *relationDB.ProductInfoRepo
	// contains filtered or unexported fields
}

func NewProductSchemaTslImportLogic

func NewProductSchemaTslImportLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductSchemaTslImportLogic

func (*ProductSchemaTslImportLogic) ProductSchemaTslImport

func (l *ProductSchemaTslImportLogic) ProductSchemaTslImport(in *dm.ProductSchemaTslImportReq) (*dm.Empty, error)

删除产品

type ProductSchemaTslReadLogic

type ProductSchemaTslReadLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewProductSchemaTslReadLogic

func NewProductSchemaTslReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductSchemaTslReadLogic

func (*ProductSchemaTslReadLogic) ProductSchemaTslRead

获取产品信息列表

type ProductSchemaUpdateLogic

type ProductSchemaUpdateLogic struct {
	logx.Logger
	PiDB *relationDB.ProductInfoRepo
	PsDB *relationDB.ProductSchemaRepo
	// contains filtered or unexported fields
}

func NewProductSchemaUpdateLogic

func NewProductSchemaUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductSchemaUpdateLogic

func (*ProductSchemaUpdateLogic) ProductSchemaUpdate

func (l *ProductSchemaUpdateLogic) ProductSchemaUpdate(in *dm.ProductSchemaUpdateReq) (*dm.Empty, error)

更新产品物模型

Jump to

Keyboard shortcuts

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