contract

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository[T any] interface {
	Create(data *T) error
	Update(data *T) error
	Delete(id uint) error
	Detail(id any) (*T, error)
	Retrieve(page, pageSize int, fn func(db *gorm.DB)) (count int64, list []T, err error)
}

type WithContext

type WithContext[T any] interface {
	WithContext(ctx context.Context) T
}

Source Files

  • context.go
  • repository.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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