pkg

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseDBHandler

type BaseDBHandler struct {
	DB *gorm.DB
}

BaseDBHandler 提供了一个基础结构体,包含 GetDB 方法

func (*BaseDBHandler) GetDB

func (b *BaseDBHandler) GetDB(tx *gorm.DB) *gorm.DB

GetDB 提供数据库连接或事务

func (*BaseDBHandler) GetDBWithoutTx

func (b *BaseDBHandler) GetDBWithoutTx() *gorm.DB

GetDBWithoutTx 提供基础数据库连接

Directories

Path Synopsis
middleware

Jump to

Keyboard shortcuts

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