model_operation

package
v0.0.0-...-9a50b96 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

type DataReviser struct {
	Name        string //字段名
	Method      string //修改器方法
	OperateType int    //支持的数据库操作类型
}

数据修改器

type DataShield

type DataShield struct {
	Name        string //字段名
	OperateType int    //支持的数据库操作类型
}

数据屏蔽器

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL