nfflow/internal/model/interface.go

22 lines
288 B
Go
Raw Normal View History

2024-03-31 20:09:20 +08:00
package model
type Enum interface {
Value() int64
Code() string
Label() string
MarshalJSON() ([]byte, error)
All() []Enum
}
type OpLogger interface {
Enum
Render(content map[string]any) (string, error)
Template() string
}
2024-04-01 18:13:10 +08:00
type TaskRow interface {
2024-04-02 18:12:02 +08:00
Preview() map[string]any
2024-04-01 18:13:10 +08:00
}