biz

package
v0.0.0-...-58fd0e2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderBizSet = wire.NewSet(NewUserBiz)

Functions

This section is empty.

Types

type UserBiz

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

func NewUserBiz

func NewUserBiz(log *zap.SugaredLogger, appCtx *system.AppContext) *UserBiz

func (*UserBiz) Create

func (h *UserBiz) Create(ctx context.Context) (*ent.User, error)

func (*UserBiz) Delete

func (h *UserBiz) Delete(ctx context.Context, id int64) error

func (*UserBiz) Get

func (h *UserBiz) Get(ctx context.Context, id int64) (*ent.User, error)

func (*UserBiz) GetAll

func (h *UserBiz) GetAll(ctx context.Context) ([]*ent.User, error)

func (*UserBiz) Index

func (h *UserBiz) Index() string

type UserRepository

type UserRepository interface {
	GetAll(ctx context.Context) ([]*ent.User, error)
	DeleteByID(ctx context.Context, id int64) error
	GetByID(ctx context.Context, id int64) (*ent.User, error)
	Create(ctx context.Context) (*ent.User, error)
}

Jump to

Keyboard shortcuts

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