Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HtmlFactories = make(map[consted.HtmlComponentType]FormFactory)
定义字段工厂 保存用于创建Filed的工厂实例,其中map的key为插件类型,value为抽象工厂接口
Functions ¶
This section is empty.
Types ¶
type ComponentAdaptor ¶
type ComponentAdaptor struct {
Type consted.HtmlComponentType
}
组件适配器
func NewComponentAdaptor ¶
func NewComponentAdaptor(t consted.HtmlComponentType) *ComponentAdaptor
func (*ComponentAdaptor) Transfer ¶
func (c *ComponentAdaptor) Transfer() interface{}
type FormFactory ¶
type FormFactory interface {
Transfer() interface{} // 转换逻辑函数, 返回处理函数和错误信息
}
============================处理流程接口梳理==============================
Click to show internal directories.
Click to hide internal directories.