structs

package
v0.0.0-...-aa3a8fa Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextSetData

func ContextSetData(ctx context.Context, key string, value any) context.Context

func GinSetData

func GinSetData(ctx *gin.Context, key string, value any)

func JSONErr

func JSONErr(ctx *gin.Context, err *errx.ErrX)

func JSONOK

func JSONOK(ctx *gin.Context, data ...any)

Types

type AuthAccount

type AuthAccount struct {
	AccountId uuid.UUID `json:"accountId"`
	Role      string    `json:"role"`
	TokenId   uuid.UUID `json:"tokenId"`
}

func NewAuthAccount

func NewAuthAccount(id, role, tokenId string) (item *AuthAccount, err error)

Jump to

Keyboard shortcuts

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