biz

package
v0.0.0-...-e6547ed Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 3 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewOrderUsecase)

ProviderSet is biz providers.

Functions

This section is empty.

Types

type Order

type Order struct {
	Id     int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
}

Order is a Order model.

type OrderRepo

type OrderRepo interface {
	ListAll(ctx context.Context, pageNum int64, pageSize int64) ([]*Order, error)
}

OrderRepo is a Greater repo.

type OrderUsecase

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

OrderUsecase is a Order usecase.

func NewOrderUsecase

func NewOrderUsecase(repo OrderRepo, logger log.Logger) *OrderUsecase

NewOrderUsecase new a Order usecase.

func (*OrderUsecase) List

func (uc *OrderUsecase) List(ctx context.Context, pageNum, pageSize int64) ([]*Order, error)

*

  • 订单列表

Jump to

Keyboard shortcuts

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