Documentation ¶
Overview ¶
Package ai is a generated GoMock package.
Index ¶
- type AIBiz
- type MockAIBiz
- func (m *MockAIBiz) Create(arg0 context.Context, arg1 *v1.CreateAIRequest) error
- func (m *MockAIBiz) Delete(arg0 context.Context, arg1, arg2 string) error
- func (m *MockAIBiz) EXPECT() *MockAIBizMockRecorder
- func (m *MockAIBiz) Get(arg0 context.Context, arg1, arg2 string) (*v1.GetAIResponse, error)
- func (m *MockAIBiz) List(arg0 context.Context, arg1 string, arg2, arg3 int) (*v1.ListAIResponse, error)
- func (m *MockAIBiz) Update(arg0 context.Context, arg1 *v1.UpdateAIRequest) error
- type MockAIBizMockRecorder
- func (mr *MockAIBizMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAIBizMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAIBizMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAIBizMockRecorder) List(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockAIBizMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIBiz ¶
type AIBiz interface { Create(ctx context.Context, r *v1.CreateAIRequest) error Get(ctx context.Context, username, postID string) (*v1.GetAIResponse, error) Update(ctx context.Context, r *v1.UpdateAIRequest) error List(ctx context.Context, username string, offset, limit int) (*v1.ListAIResponse, error) Delete(ctx context.Context, username, postID string) error }
type MockAIBiz ¶
type MockAIBiz struct {
// contains filtered or unexported fields
}
MockAIBiz is a mock of AIBiz interface.
func NewMockAIBiz ¶
func NewMockAIBiz(ctrl *gomock.Controller) *MockAIBiz
NewMockAIBiz creates a new mock instance.
func (*MockAIBiz) EXPECT ¶
func (m *MockAIBiz) EXPECT() *MockAIBizMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAIBizMockRecorder ¶
type MockAIBizMockRecorder struct {
// contains filtered or unexported fields
}
MockAIBizMockRecorder is the mock recorder for MockAIBiz.
func (*MockAIBizMockRecorder) Create ¶
func (mr *MockAIBizMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockAIBizMockRecorder) Delete ¶
func (mr *MockAIBizMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockAIBizMockRecorder) Get ¶
func (mr *MockAIBizMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockAIBizMockRecorder) List ¶
func (mr *MockAIBizMockRecorder) List(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockAIBizMockRecorder) Update ¶
func (mr *MockAIBizMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.
Click to show internal directories.
Click to hide internal directories.