biz

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 5 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 {
	Users() user.UserBiz
	Posts() post.PostBiz
}

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) Posts

func (m *MockIBiz) Posts() post.PostBiz

Posts mocks base method.

func (*MockIBiz) Users

func (m *MockIBiz) Users() user.UserBiz

Users mocks base method.

type MockIBizMockRecorder

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

MockIBizMockRecorder is the mock recorder for MockIBiz.

func (*MockIBizMockRecorder) Posts

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

Posts indicates an expected call of Posts.

func (*MockIBizMockRecorder) Users

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

Users indicates an expected call of Users.

Directories

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

Jump to

Keyboard shortcuts

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