Documentation
¶
Index ¶
- func MakeCondition(q interface{}) func(db *gorm.DB) *gorm.DB
- func OrderDest(sort string, bl bool) func(db *gorm.DB) *gorm.DB
- func Paginate(pageSize, pageIndex int) func(db *gorm.DB) *gorm.DB
- type AutoForm
- type Config
- type Control
- type Field
- type GeneralDelDto
- type GeneralGetDto
- type Index
- type ObjectById
- type ObjectDeleteReq
- type ObjectGetReq
- type Option
- type Pagination
- type Slot
- type Style
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AutoForm ¶
type AutoForm struct {
Fields []Field `json:"fields"`
FormRef string `json:"formRef"`
FormModel string `json:"formModel"`
Size string `json:"size"`
LabelPosition string `json:"labelPosition"`
LabelWidth int `json:"labelWidth"`
FormRules string `json:"formRules"`
Gutter int `json:"gutter"`
Disabled bool `json:"disabled"`
Span int `json:"span"`
FormBtns bool `json:"formBtns"`
}
type Config ¶
type Config struct {
Label string `json:"label"`
LabelWidth interface{} `json:"labelWidth"`
ShowLabel bool `json:"showLabel"`
ChangeTag bool `json:"changeTag"`
Tag string `json:"tag"`
TagIcon string `json:"tagIcon"`
Required bool `json:"required"`
Layout string `json:"layout"`
Span int `json:"span"`
Document string `json:"document"`
RegList []interface{} `json:"regList"`
FormId int `json:"formId"`
RenderKey int64 `json:"renderKey"`
DefaultValue interface{} `json:"defaultValue"`
ShowTip bool `json:"showTip,omitempty"`
ButtonText string `json:"buttonText,omitempty"`
FileSize int `json:"fileSize,omitempty"`
SizeUnit string `json:"sizeUnit,omitempty"`
}
type Field ¶
type Field struct {
Config Config `json:"__config__"`
Slot Slot `json:"__slot__"`
Placeholder string `json:"placeholder,omitempty"`
Style Style `json:"style,omitempty"`
Clearable bool `json:"clearable,omitempty"`
PrefixIcon string `json:"prefix-icon,omitempty"`
SuffixIcon string `json:"suffix-icon,omitempty"`
Maxlength interface{} `json:"maxlength"`
ShowWordLimit bool `json:"show-word-limit,omitempty"`
Readonly bool `json:"readonly,omitempty"`
Disabled bool `json:"disabled"`
VModel string `json:"__vModel__"`
Action string `json:"action,omitempty"`
Accept string `json:"accept,omitempty"`
Name string `json:"name,omitempty"`
AutoUpload bool `json:"auto-upload,omitempty"`
ListType string `json:"list-type,omitempty"`
Multiple bool `json:"multiple,omitempty"`
Filterable bool `json:"filterable,omitempty"`
}
type GeneralDelDto ¶
type GeneralDelDto struct {
Id int `uri:"id" json:"id" validate:"required"`
Ids []int `json:"ids"`
}
func (GeneralDelDto) GetIds ¶
func (g GeneralDelDto) GetIds() []int
type GeneralGetDto ¶
type GeneralGetDto struct {
Id int `uri:"id" json:"id" validate:"required"`
}
type ObjectById ¶
func (*ObjectById) GetId ¶
func (s *ObjectById) GetId() interface{}
type ObjectDeleteReq ¶
type ObjectDeleteReq struct {
Ids []int `json:"ids"`
}
func (*ObjectDeleteReq) GetId ¶
func (s *ObjectDeleteReq) GetId() interface{}
type ObjectGetReq ¶
type ObjectGetReq struct {
Id int `uri:"id"`
}
func (*ObjectGetReq) GetId ¶
func (s *ObjectGetReq) GetId() interface{}
type Pagination ¶
func (*Pagination) GetPageIndex ¶
func (m *Pagination) GetPageIndex() int
func (*Pagination) GetPageSize ¶
func (m *Pagination) GetPageSize() int
Click to show internal directories.
Click to hide internal directories.