Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataExchanger ¶
type DataExchanger struct {
Name string //字段名
ConditionField string //条件字段
ConditionValue string //条件值
ExchangeData map[string]interface{} //需要转换的数据
OperateType int //支持的数据库操作类型
}
数据转换器
type DataOperator ¶
type DataOperator struct {
Operator interface{}
}
数据操作器
func (DataOperator) Operate ¶
func (operator DataOperator) Operate(dataMap map[string]interface{}, ai sql_interface.SqlActionInterface, nick, primaryKey string, operationType int)
数据操作器的操作方法
type DataOperatorInterface ¶
type DataOperatorInterface interface {
//operate(dataMap map[string]interface{}, primaryKey string, operationType int) (string, bool)
Operate(dataMap map[string]interface{}, ai sql_interface.SqlActionInterface, nick, primaryKey string, operationType int)
}
验证器接口
type DataPadding ¶
type DataPadding struct {
Name string //字段名
Method string //填充器方法
Param string //填充器参数
OperateType int //支持的数据库操作类型
}
数据填充器
type DataReviser ¶
数据修改器
Click to show internal directories.
Click to hide internal directories.