Documentation
¶
Index ¶
- func CheckAffordance(po *mysql.DmProductSchema) error
- func ToProductInfo(ctx context.Context, pi *mysql.DmProductInfo, svcCtx *svc.ServiceContext) *dm.ProductInfo
- func ToProductSchemaPo(info *dm.ProductSchemaInfo) *mysql.DmProductSchema
- func ToProductSchemaRpc(info *mysql.DmProductSchema) *dm.ProductSchemaInfo
- 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) (*mysql.DmProductInfo, error)
- func (l *ProductInfoCreateLogic) InitProduct(pi *mysql.DmProductInfo) error
- func (l *ProductInfoCreateLogic) ProductInfoCreate(in *dm.ProductInfo) (*dm.Response, error)
- type ProductInfoDeleteLogic
- type ProductInfoIndexLogic
- type ProductInfoReadLogic
- type ProductInfoUpdateLogic
- type ProductSchemaCreateLogic
- type ProductSchemaDeleteLogic
- type ProductSchemaIndexLogic
- type ProductSchemaTslImportLogic
- type ProductSchemaTslReadLogic
- type ProductSchemaUpdateLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAffordance ¶
func CheckAffordance(po *mysql.DmProductSchema) error
func ToProductInfo ¶
func ToProductInfo(ctx context.Context, pi *mysql.DmProductInfo, svcCtx *svc.ServiceContext) *dm.ProductInfo
func ToProductSchemaPo ¶
func ToProductSchemaPo(info *dm.ProductSchemaInfo) *mysql.DmProductSchema
func ToProductSchemaRpc ¶
func ToProductSchemaRpc(info *mysql.DmProductSchema) *dm.ProductSchemaInfo
Types ¶
type ProductCustomReadLogic ¶ added in v0.5.1
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
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 ¶
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) (*mysql.DmProductInfo, error)
根据用户的输入生成对应的数据库数据
func (*ProductInfoCreateLogic) InitProduct ¶
func (l *ProductInfoCreateLogic) InitProduct(pi *mysql.DmProductInfo) error
func (*ProductInfoCreateLogic) ProductInfoCreate ¶
func (l *ProductInfoCreateLogic) ProductInfoCreate(in *dm.ProductInfo) (*dm.Response, error)
新增设备
type ProductInfoDeleteLogic ¶
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.Response, 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 ¶
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 ¶
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 ¶
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 ¶
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 ProductSchemaTslImportLogic ¶
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 ¶
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 ¶
func NewProductSchemaUpdateLogic ¶
func NewProductSchemaUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ProductSchemaUpdateLogic
func (*ProductSchemaUpdateLogic) ProductSchemaUpdate ¶
func (l *ProductSchemaUpdateLogic) ProductSchemaUpdate(in *dm.ProductSchemaUpdateReq) (*dm.Response, error)
更新产品物模型
Source Files
¶
- assemble.go
- productCustomReadLogic.go
- productCustomUpdateLogic.go
- productInfoCreateLogic.go
- productInfoDeleteLogic.go
- productInfoIndexLogic.go
- productInfoReadLogic.go
- productInfoUpdateLogic.go
- productSchemaCreateLogic.go
- productSchemaDeleteLogic.go
- productSchemaIndexLogic.go
- productSchemaTslImportLogic.go
- productSchemaTslReadLogic.go
- productSchemaUpdateLogic.go
- ruleCheck.go
Click to show internal directories.
Click to hide internal directories.