biz

package
v0.0.0-...-c6aefec Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderBizSet = wire.NewSet(NewUserBiz)

ProviderBizSet is biz providers.

Functions

This section is empty.

Types

type Biz

type Biz struct {
	Data   *data.Data
	Error  error
	Logger *log.Helper
	Msg    string
	MsgID  string
}

func (*Biz) AddError

func (b *Biz) AddError(err error) error

func (*Biz) SetData

func (b *Biz) SetData()

type UserBiz

type UserBiz struct {
	Biz
}

func NewUserBiz

func NewUserBiz(data *data.Data, logger log.Logger) *UserBiz

func (*UserBiz) GetById

func (biz *UserBiz) GetById(req *dto.UserByIdReq, data *ent.User) error

func (*UserBiz) GetByUsername

func (biz *UserBiz) GetByUsername(ctx context.Context, req *pb.UsernameRequest) (*ent.User, error)

func (*UserBiz) Insert

func (biz *UserBiz) Insert(req *dto.InsertUserReq, u *ent.User) error

Insert 创建User对象

func (*UserBiz) Remove

func (biz *UserBiz) Remove(req *dto.UserByIdReq) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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