dao

package
v0.0.0-...-a7c7adb Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package dao is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSearch

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

MockSearch is a mock of Search interface.

func NewMockSearch

func NewMockSearch(ctrl *gomock.Controller) *MockSearch

NewMockSearch creates a new mock instance.

func (*MockSearch) EXPECT

func (m *MockSearch) EXPECT() *MockSearchMockRecorder

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

func (*MockSearch) GetNameByID

func (m *MockSearch) GetNameByID(id int64) (string, error)

GetNameByID mocks base method.

type MockSearchMockRecorder

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

MockSearchMockRecorder is the mock recorder for MockSearch.

func (*MockSearchMockRecorder) GetNameByID

func (mr *MockSearchMockRecorder) GetNameByID(id interface{}) *gomock.Call

GetNameByID indicates an expected call of GetNameByID.

type Search interface {
	GetNameByID(id int64) (string, error)
}

dao和service中具体的代码 dao.dao.go

Jump to

Keyboard shortcuts

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