initialize

package
v0.0.0-...-38e5134 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Package initialize @program: arco-design-pro-gin @author: [lliuhuan](https://github.com/lliuhuan) @create: 2021-12-10 15:09

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gorm

func Gorm() *gorm.DB

Gorm 初始化数据库并产生数据库全局变量 Author SliverHorn

func GormMysql

func GormMysql() *gorm.DB

GormMysql 初始化Mysql数据库 @author: [lliuhuan](https://github.com/lliuhuan)

func InitTrans

func InitTrans(locale string) (err error)

InitTrans 初始化翻译器

func Redis

func Redis()

func RegisterTables

func RegisterTables(db *gorm.DB)

RegisterTables 注册数据库表专用 Author SliverHorn

func Routers

func Routers() *gin.Engine

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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