service

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepo

type UserRepo interface {
	DB(ctx context.Context) *gorm.DB

	GetByID(ctx context.Context, id int64) (*entity.User, error)
	Create(ctx context.Context, data ...*entity.User) error
	List(ctx context.Context, query *gormx.Query) ([]*entity.User, error)
	Count(ctx context.Context, query *gormx.Query) (int64, error)
	Update(ctx context.Context, e *entity.User) error
	Delete(ctx context.Context, id int64) error

	IsDuplicatedKeyError(err error) bool
	IsNotFoundError(err error) bool
}

Jump to

Keyboard shortcuts

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