yao/widgets/login/types.go
2022-09-21 00:03:09 +08:00

24 lines
644 B
Go

package login
// DSL the app DSL
type DSL struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Action ActionDSL `json:"action,omitempty"`
Layout LayoutDSL `json:"layout,omitempty"`
}
// ActionDSL the login action DSL
type ActionDSL struct {
Process string `json:"process,omitempty"`
Args []string `json:"args,omitempty"`
}
// LayoutDSL the login page layoutDSL
type LayoutDSL struct {
Entry string `json:"entry,omitempty"`
Captcha string `json:"captcha,omitempty"`
Cover string `json:"cover,omitempty"`
Slogan string `json:"slogan,omitempty"`
Site string `json:"site,omitempty"`
}