14 lines
243 B
Go
14 lines
243 B
Go
|
package model
|
||
|
|
||
|
type IOType string
|
||
|
|
||
|
const (
|
||
|
Input IOType = "input"
|
||
|
Output IOType = "output"
|
||
|
)
|
||
|
|
||
|
type IO[T any] interface {
|
||
|
ReadData(limit int, query map[string]any, fields []string, sort []string) ([]T, error)
|
||
|
WriteData([]T) (int, error)
|
||
|
}
|