ctx

package
v0.0.0-...-99b6fc9 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

type Ctx struct {
	GinCtx   *gin.Context
	UserId   uint64
	UserName string
	NickName string
	Tx       *sqlx.Tx
}

func (*Ctx) CommitTx

func (c *Ctx) CommitTx()

func (*Ctx) CreateTx

func (c *Ctx) CreateTx()

func (*Ctx) Fail

func (c *Ctx) Fail(message string)

func (*Ctx) Finish

func (c *Ctx) Finish()

func (*Ctx) SqlCtl

func (c *Ctx) SqlCtl() *gorm.DB

Jump to

Keyboard shortcuts

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