types

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2024 License: GPL-3.0 Imports: 1 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SmartField

type SmartField struct {
	Key         string              `json:"key"`
	Label       string              `json:"label"`
	Type        string              `json:"type,omitempty"` //type object array
	Default     any                 `json:"default,omitempty"`
	Placeholder string              `json:"placeholder,omitempty"`
	Tips        string              `json:"tips,omitempty"`
	Pattern     string              `json:"pattern,omitempty"`
	Options     []SmartSelectOption `json:"options,omitempty"`
	Required    bool                `json:"required,omitempty"`
	Min         float64             `json:"min,omitempty"`
	Max         float64             `json:"max,omitempty"`
	Step        float64             `json:"step,omitempty"`

	Children []SmartField `json:"children,omitempty"` //子级?
}

type SmartSelectOption

type SmartSelectOption struct {
	Value    any    `json:"value"`
	Label    string `json:"label"`
	Disabled bool   `json:"disabled,omitempty"`
}

type Time

type Time time.Time

func (*Time) MarshalJSON

func (t *Time) MarshalJSON() ([]byte, error)

func (*Time) MarshalText

func (t *Time) MarshalText() ([]byte, error)

func (*Time) Now

func (t *Time) Now() Time

func (*Time) ParseTime

func (t *Time) ParseTime(tm time.Time) Time

func (*Time) String

func (t *Time) String() string

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL