contracts/base/res_widget_operations.go

16 lines
489 B
Go
Raw Permalink Normal View History

2023-04-12 16:56:55 +08:00
package base
type ResWidgetOperation struct {
Uuid string `db:"uuid"`
WidgetUuid string `db:"widget_uuid"`
Name string `db:"name"`
NoAuthType string `db:"noAuthType"`
PropsAuthRule []any `db:"propsAuthRule"`
ExtraAuthRule []any `db:"extraAuthRule"`
Roles []string `db:"roles"`
UpdatedAt string `db:"updated_at"`
CreatedAt string `db:"created_at"`
2023-04-12 16:56:55 +08:00
}
2023-04-12 19:50:25 +08:00
type GetResWidgetOperations func(roles ...string) []ResWidgetOperation