Documentation ¶
Index ¶
- func CategorySchemaCreate(ctx context.Context, svcCtx *svc.ServiceContext, productID string, ...) error
- func CheckAffordance(po *relationDB.DmSchemaCore, cs *relationDB.DmCommonSchema) error
- type ProductCategoryCreateLogic
- type ProductCategoryDeleteLogic
- type ProductCategoryIndexLogic
- type ProductCategoryReadLogic
- type ProductCategorySchemaIndexLogic
- type ProductCategorySchemaMultiCreateLogic
- type ProductCategorySchemaMultiDeleteLogic
- type ProductCategorySchemaMultiUpdateLogic
- type ProductCategoryUpdateLogic
- type ProductCustomReadLogic
- type ProductCustomUpdateLogic
- type ProductInfoCreateLogic
- func (l *ProductInfoCreateLogic) CheckProduct(in *dm.ProductInfo) (bool, error)
- func (l *ProductInfoCreateLogic) CheckProductID(in *dm.ProductInfo) (bool, error)
- func (l *ProductInfoCreateLogic) ConvProductPbToPo(in *dm.ProductInfo) (*relationDB.DmProductInfo, error)
- func (l *ProductInfoCreateLogic) InitProduct(pi *relationDB.DmProductInfo) error
- func (l *ProductInfoCreateLogic) ProductInfoCreate(in *dm.ProductInfo) (*dm.Empty, error)
- type ProductInfoDeleteLogic
- type ProductInfoIndexLogic
- type ProductInfoReadLogic
- type ProductInfoUpdateLogic
- type ProductInitLogic
- type ProductSchemaCreateLogic
- type ProductSchemaDeleteLogic
- type ProductSchemaIndexLogic
- type ProductSchemaMultiCreateLogic
- type ProductSchemaTslImportLogic
- type ProductSchemaTslReadLogic
- type ProductSchemaUpdateLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CategorySchemaCreate ¶
func CheckAffordance ¶
func CheckAffordance(po *relationDB.DmSchemaCore, cs *relationDB.DmCommonSchema) error
Types ¶
type ProductCategoryCreateLogic ¶
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 ¶
func NewProductCategoryDeleteLogic ¶
func NewProductCategoryDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductCategoryDeleteLogic
func (*ProductCategoryDeleteLogic) ProductCategoryDelete ¶
删除产品
type ProductCategoryIndexLogic ¶
func NewProductCategoryIndexLogic ¶
func NewProductCategoryIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductCategoryIndexLogic
func (*ProductCategoryIndexLogic) ProductCategoryIndex ¶
func (l *ProductCategoryIndexLogic) ProductCategoryIndex(in *dm.ProductCategoryIndexReq) (*dm.ProductCategoryIndexResp, error)
获取产品信息列表
type ProductCategoryReadLogic ¶
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 ¶
func (l *ProductCategorySchemaIndexLogic) ProductCategorySchemaIndex(in *dm.ProductCategorySchemaIndexReq) (*dm.ProductCategorySchemaIndexResp, error)
获取产品品类下的物模型列表,绑定的物模型会自动添加到该产品品类及子分类的产品中,并不支持删除
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 ¶
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 (l *ProductInfoCreateLogic) InitProduct(pi *relationDB.DmProductInfo) error
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 (l *ProductInfoDeleteLogic) Check(in *dm.ProductInfoDeleteReq) error
func (*ProductInfoDeleteLogic) DropProduct ¶
func (l *ProductInfoDeleteLogic) DropProduct(in *dm.ProductInfoDeleteReq) error
func (*ProductInfoDeleteLogic) ProductInfoDelete ¶
func (l *ProductInfoDeleteLogic) ProductInfoDelete(in *dm.ProductInfoDeleteReq) (*dm.Empty, error)
删除设备
type ProductInfoIndexLogic ¶
func NewProductInfoIndexLogic ¶
func NewProductInfoIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductInfoIndexLogic
func (*ProductInfoIndexLogic) ProductInfoIndex ¶
func (l *ProductInfoIndexLogic) ProductInfoIndex(in *dm.ProductInfoIndexReq) (*dm.ProductInfoIndexResp, error)
获取设备信息列表
type ProductInfoReadLogic ¶
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 ¶
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 ¶
func (l *ProductSchemaIndexLogic) ProductSchemaIndex(in *dm.ProductSchemaIndexReq) (*dm.ProductSchemaIndexResp, error)
获取产品信息列表
type ProductSchemaMultiCreateLogic ¶
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 ¶
func NewProductSchemaTslReadLogic ¶
func NewProductSchemaTslReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductSchemaTslReadLogic
func (*ProductSchemaTslReadLogic) ProductSchemaTslRead ¶
func (l *ProductSchemaTslReadLogic) ProductSchemaTslRead(in *dm.ProductSchemaTslReadReq) (*dm.ProductSchemaTslReadResp, error)
获取产品信息列表
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)
更新产品物模型
Source Files ¶
- productCategoryCreateLogic.go
- productCategoryDeleteLogic.go
- productCategoryIndexLogic.go
- productCategoryReadLogic.go
- productCategorySchemaIndexLogic.go
- productCategorySchemaMultiCreateLogic.go
- productCategorySchemaMultiDeleteLogic.go
- productCategorySchemaMultiUpdateLogic.go
- productCategoryUpdateLogic.go
- productCustomReadLogic.go
- productCustomUpdateLogic.go
- productInfoCreateLogic.go
- productInfoDeleteLogic.go
- productInfoIndexLogic.go
- productInfoReadLogic.go
- productInfoUpdateLogic.go
- productInitLogic.go
- productSchemaCreateLogic.go
- productSchemaDeleteLogic.go
- productSchemaIndexLogic.go
- productSchemaMultiCreateLogic.go
- productSchemaTslImportLogic.go
- productSchemaTslReadLogic.go
- productSchemaUpdateLogic.go
- ruleCheck.go
Click to show internal directories.
Click to hide internal directories.