decorator

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type UserCacheDecorator

type UserCacheDecorator struct {
	// contains filtered or unexported fields
}

UserCacheDecorator 用户仓储装饰器

func (*UserCacheDecorator) CreateUser

func (d *UserCacheDecorator) CreateUser(ctx context.Context, userInfo *model.User) error

func (*UserCacheDecorator) DeleteUser

func (d *UserCacheDecorator) DeleteUser(ctx context.Context, userId uint64) error

func (*UserCacheDecorator) Info

func (d *UserCacheDecorator) Info(ctx context.Context, id uint64) (*model.User, error)

func (*UserCacheDecorator) ListUser

func (*UserCacheDecorator) UpdateUser

func (d *UserCacheDecorator) UpdateUser(ctx context.Context, userInfo *model.User) error

Jump to

Keyboard shortcuts

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