-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels_orm.go
More file actions
42 lines (32 loc) · 918 Bytes
/
models_orm.go
File metadata and controls
42 lines (32 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// DO NOT EDIT. generated by github.com/tinywasm/orm
package devtui
import (
"github.com/tinywasm/fmt"
"github.com/tinywasm/form/input"
)
var _schemaGetLogsArgs = []fmt.Field{
{Name: "section", Type: fmt.FieldText, Widget: input.Text()},
}
func (m *GetLogsArgs) Schema() []fmt.Field { return _schemaGetLogsArgs }
func (m *GetLogsArgs) Pointers() []any {
return []any{
&m.Section,
}
}
func (m *GetLogsArgs) Validate(action byte) error {
return fmt.ValidateFields(action, m)
}
var _schemaActionArgs = []fmt.Field{
{Name: "key", Type: fmt.FieldText, Widget: input.Text()},
{Name: "value", Type: fmt.FieldText, OmitEmpty: true, Widget: input.Text()},
}
func (m *ActionArgs) Schema() []fmt.Field { return _schemaActionArgs }
func (m *ActionArgs) Pointers() []any {
return []any{
&m.Key,
&m.Value,
}
}
func (m *ActionArgs) Validate(action byte) error {
return fmt.ValidateFields(action, m)
}