# Functions
ConnDB 根据索易配置信息连接数据库
DBConfig:目前支持以下配置: &gorm.Config{ Logger: logger.Default.LogMode(logger.Info), // 设置日志级别为 Info 默认为 default 只打印错误日志 NamingStrategy: schema.NamingStrategy{ 默认未设置 TablePrefix: "t_", // 表名前缀 SingularTable: true, // 单数表名 }, SkipDefaultTransaction: true, // 跳过默认事务 默认false PrepareStmt: true, // 启用预编译 默认false QueryFields: true, // 查询时指定字段 默认false }.
ConnMongo 初始化数据库.
ConnRedis 设置redis 缓存.
FilteredSQLInject 正则过滤sql注入的方法 参数 : 要匹配的语句.
Transaction 统一事务.
# Structs
No description provided by the author
No description provided by the author
RedisConfig 连接配置.
No description provided by the author