productmanagelogic

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAffordance

func CheckAffordance(po *relationDB.DmProductSchema) error

func ToProductInfo

func ToProductInfo(ctx context.Context, pi *relationDB.DmProductInfo, svcCtx *svc.ServiceContext) *dm.ProductInfo

func ToProductSchemaPo

func ToProductSchemaPo(info *dm.ProductSchemaInfo) *relationDB.DmProductSchema

func ToProductSchemaRpc

func ToProductSchemaRpc(info *relationDB.DmProductSchema) *dm.ProductSchemaInfo

Types

type ProductCustomReadLogic added in v0.5.1

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

func NewProductCustomReadLogic added in v0.5.1

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

func (*ProductCustomReadLogic) ProductCustomRead added in v0.5.1

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

脚本管理

type ProductCustomUpdateLogic added in v0.5.1

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

func NewProductCustomUpdateLogic added in v0.5.1

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

func (*ProductCustomUpdateLogic) ProductCustomUpdate added in v0.5.1

func (l *ProductCustomUpdateLogic) ProductCustomUpdate(in *dm.ProductCustom) (*dm.Response, 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 added in v0.5.1

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

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

func (*ProductInfoCreateLogic) ConvProductPbToPo added in v0.5.1

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

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

func (*ProductInfoCreateLogic) InitProduct

func (*ProductInfoCreateLogic) ProductInfoCreate

func (l *ProductInfoCreateLogic) ProductInfoCreate(in *dm.ProductInfo) (*dm.Response, 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.Response, 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.Response, 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.Response, 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.Response, 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 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.Response, 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.Response, error)

更新产品物模型

Jump to

Keyboard shortcuts

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