biz

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package biz is the place where you can implements more complex business logic.

Package biz is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBiz

func NewBiz(ds store.IStore) *biz

NewBiz 创建一个 IBiz 类型的实例.

Types

type IBiz

type IBiz interface {
	Orders() order.OrderBiz
}

IBiz 定义了 Biz 层需要实现的方法.

type MockIBiz

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

MockIBiz is a mock of IBiz interface.

func NewMockIBiz

func NewMockIBiz(ctrl *gomock.Controller) *MockIBiz

NewMockIBiz creates a new mock instance.

func (*MockIBiz) EXPECT

func (m *MockIBiz) EXPECT() *MockIBizMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIBiz) Orders

func (m *MockIBiz) Orders() order.OrderBiz

Orders mocks base method.

type MockIBizMockRecorder

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

MockIBizMockRecorder is the mock recorder for MockIBiz.

func (*MockIBizMockRecorder) Orders

func (mr *MockIBizMockRecorder) Orders() *gomock.Call

Orders indicates an expected call of Orders.

Directories

Path Synopsis
Package order is a generated GoMock package.
Package order is a generated GoMock package.

Jump to

Keyboard shortcuts

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