biz

package
v0.0.0-...-cf50efe Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT, MIT Imports: 3 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewUserUseCase)

ProviderSet is biz providers.

Functions

This section is empty.

Types

type User

type User struct {
	Id       int32
	Mobile   string
	Password string
	NickName string
	Birthday string
	Gender   int32
	Role     int32
}

type UserRepo

type UserRepo interface {
	CreateUser(ctx context.Context, u *User) (*User, error)
	ListUser(ctx context.Context, pageNum, pageSize int64) ([]*User, error)
}

type UserUseCase

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

func NewUserUseCase

func NewUserUseCase(repo UserRepo, logger log.Logger) *UserUseCase

func (*UserUseCase) Create

func (uc *UserUseCase) Create(ctx context.Context, u *User) (*User, error)

func (*UserUseCase) Get

func (uc *UserUseCase) Get(ctx context.Context, pageNum, pageSize int64) ([]*User, error)

Jump to

Keyboard shortcuts

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