Files
bj_power/bj_power_mes/internal/processor/tool/interface.go
T

21 lines
398 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package tool
import (
"context"
)
// ToolCommand 手持工具命令
type ToolCommand struct {
Action string // 操作类型(SCAN/MARK
JobID int // 关联工件 ID
Params map[string]any // 操作参数
}
// HandheldTool 手持工具接口
type HandheldTool interface {
ID() string
Type() string
Name() string
Execute(ctx context.Context, cmd ToolCommand) error
}