Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomData ¶
type CustomData interface {
CustomDataPtr() interface{}
EncodeFromCustomData(customDataPtr interface{}, stdDataPtr *Data)
DecodeToCustomData(stdDataPtr *Data, customDataPtr interface{})
}
CustomData is filter's custom data handler.
type CustomInParams ¶
type CustomInParams interface {
CustomInParamsPtr() interface{}
EncodeFromCustomInParams(customInParamsPtr interface{}, stdInParamsPtr *cptype.ExtraMap)
DecodeToCustomInParams(stdInParamsPtr *cptype.ExtraMap, customInParamsPtr interface{})
}
CustomInParams is filter's custom inParams handler.
type CustomState ¶
type CustomState interface {
CustomStatePtr() interface{}
EncodeFromCustomState(customStatePtr interface{}, stdStatePtr *cptype.ExtraMap)
DecodeToCustomState(stdStatePtr *cptype.ExtraMap, customStatePtr interface{})
}
CustomState is filter's custom state handler.
type Data ¶
type Data struct {
// models/condition.go define constructors of condition type
// SelectCondition, DateRangeCondition, etc
Conditions []interface{} `json:"conditions,omitempty"`
FilterSet []SetItem `json:"filterSet,omitempty"`
Operations map[cptype.OperationKey]cptype.Operation `json:"operations,omitempty"`
// HideSave hide saveFilterSet
HideSave bool `json:"hideSave,omitempty"`
}
Data filter std data
type ICondition ¶
type ICondition interface {
Type() model.ConditionType
}
ICondition get type ICondition
type IFilterStdOps ¶
type IFilterStdOps interface {
RegisterFilterOp(opData OpFilter) (opFunc cptype.OperationFunc)
RegisterFilterItemSaveOp(opData OpFilterItemSave) (opFunc cptype.OperationFunc)
RegisterFilterItemDeleteOp(opData OpFilterItemDelete) (opFunc cptype.OperationFunc)
}
IFilterStdOps .
type OpFilter ¶
type OpFilter struct {
cptype.Operation
ClientData OpFilterClientData `json:"clientData,omitempty"`
}
OpFilter .
type OpFilterClientData ¶
OpFilterClientData .
type OpFilterItemDelete ¶
type OpFilterItemDelete struct {
cptype.Operation
ClientData OpFilterItemDeleteClientData `json:"clientData,omitempty"`
}
OpFilterItemDelete .
type OpFilterItemDeleteClientData ¶
type OpFilterItemDeleteClientData struct {
DataRef *SetItem `json:"dataRef,omitempty"`
}
OpFilterItemDeleteClientData .
type OpFilterItemSave ¶
type OpFilterItemSave struct {
cptype.Operation
ClientData OpFilterItemSaveClientData `json:"clientData,omitempty"`
}
OpFilterItemSave .
type OpFilterItemSaveClientData ¶
type OpFilterItemSaveClientData struct {
Values cptype.ExtraMap `json:"values,omitempty"`
Label string `json:"label,omitempty"`
}
OpFilterItemSaveClientData .
Click to show internal directories.
Click to hide internal directories.