Documentation ¶
Index ¶
- func GetAsMap(v interface{}) (map[string]interface{}, error)
- func GetMapToArrStr(schema logic.M, key string) ([]string, error)
- func GetMapToBool(schema logic.M, key string) (bool, error)
- func GetMapToInt(schema logic.M, key string) (int, error)
- func GetMapToString(schema logic.M, key string) (string, error)
- func IsLayoutComponent(value interface{}) bool
- func SetMold(name logic.Command, m Mold)
- func TraverseSchema(schema logic.M, init *initDown) error
- type AppData
- type AppExport
- type AppImport
- type ColumnError
- type FormExport
- type FormImport
- type FormTemplate
- type ImportError
- type Mold
- type Molders
- type TemplateCreate
- type UseTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMapToArrStr ¶
GetMapToArrStr get map
func GetMapToBool ¶
GetMapToBool GetMapToBool
func GetMapToInt ¶
GetMapToInt GetMapToInt
func GetMapToString ¶
GetMapToString GetMapToString
func IsLayoutComponent ¶
func IsLayoutComponent(value interface{}) bool
IsLayoutComponent IsLayoutComponent
func TraverseSchema ¶
TraverseSchema TraverseSchema
Types ¶
type AppData ¶
type AppData interface { ExportAppData(ctx context.Context, task *models.Task, handleData chan *basal.CallBackData) ImportAppData(ctx context.Context, task *models.Task, handleData chan *basal.CallBackData) UseTemplate(ctx context.Context, task *models.Task, handleData chan *basal.CallBackData) CreateTemplate(ctx context.Context, task *models.Task, handleData chan *basal.CallBackData) }
AppData deal with app information
type AppExport ¶
type AppExport struct {
// contains filtered or unexported fields
}
AppExport AppExport
func (*AppExport) BatchHandle ¶
func (a *AppExport) BatchHandle(ctx context.Context, task *models.Task, handleData chan *basal.CallBackData)
BatchHandle BatchHandle
func (*AppExport) SetTaskTitle ¶
SetTaskTitle SetTaskTitle
type AppImport ¶
type AppImport struct {
// contains filtered or unexported fields
}
AppImport AppImport
func (*AppImport) BatchHandle ¶
func (a *AppImport) BatchHandle(ctx context.Context, task *models.Task, handleData chan *basal.CallBackData)
BatchHandle BatchHandle
func (*AppImport) SetTaskTitle ¶
SetTaskTitle SetTaskTitle
type ColumnError ¶
ColumnError ColumnError
type FormExport ¶
type FormExport struct {
// contains filtered or unexported fields
}
FormExport FormExport
func (*FormExport) BatchHandle ¶
func (d *FormExport) BatchHandle(ctx context.Context, task *models.Task, handleData chan *basal.CallBackData)
BatchHandle BatchHandle
func (*FormExport) SetTaskTitle ¶
SetTaskTitle SetTaskTitle
type FormImport ¶
type FormImport struct {
// contains filtered or unexported fields
}
FormImport FormImport
func (*FormImport) BatchHandle ¶
func (d *FormImport) BatchHandle(ctx context.Context, task *models.Task, callBack chan *basal.CallBackData)
BatchHandle BatchHandle
func (*FormImport) SetTaskTitle ¶
SetTaskTitle SetTaskTitle
type FormTemplate ¶
type FormTemplate struct {
// contains filtered or unexported fields
}
FormTemplate FormTemplate
func (*FormTemplate) BatchHandle ¶
func (f *FormTemplate) BatchHandle(ctx context.Context, task *models.Task, data chan *basal.CallBackData)
BatchHandle BatchHandle export form template
func (*FormTemplate) SetTaskTitle ¶
SetTaskTitle SetTaskTitle
type ImportError ¶
type ImportError struct { Raw int Column []*ColumnError }
ImportError ImportError
type Mold ¶
type Mold interface { BatchHandle(context.Context, *models.Task, chan *basal.CallBackData) SetValue(ctx context.Context, conf *config.Config) error SetTaskTitle(context.Context, *models.Task) error }
Mold Mold
type TemplateCreate ¶
type TemplateCreate struct {
// contains filtered or unexported fields
}
TemplateCreate TemplateCreate
func NewTemplateCreate ¶
func NewTemplateCreate() *TemplateCreate
NewTemplateCreate NewTemplateCreate
func (*TemplateCreate) BatchHandle ¶
func (t *TemplateCreate) BatchHandle(ctx context.Context, task *models.Task, handleData chan *basal.CallBackData)
BatchHandle BatchHandle
func (*TemplateCreate) SetTaskTitle ¶
SetTaskTitle SetTaskTitle
type UseTemplate ¶
type UseTemplate struct {
// contains filtered or unexported fields
}
UseTemplate UseTemplate
func (*UseTemplate) BatchHandle ¶
func (t *UseTemplate) BatchHandle(ctx context.Context, task *models.Task, handleData chan *basal.CallBackData)
BatchHandle BatchHandle
func (*UseTemplate) SetTaskTitle ¶
SetTaskTitle SetTaskTitle