attributemocks

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package attributemocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockService

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

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) BatchCreateAttribute added in v1.10.0

func (m *MockService) BatchCreateAttribute(ctx context.Context, attrs []domain.Attribute) error

BatchCreateAttribute mocks base method.

func (*MockService) BatchCreateAttributeGroup added in v1.10.0

func (m *MockService) BatchCreateAttributeGroup(ctx context.Context, ags []domain.AttributeGroup) ([]domain.AttributeGroup, error)

BatchCreateAttributeGroup mocks base method.

func (*MockService) CreateAttribute

func (m *MockService) CreateAttribute(ctx context.Context, req domain.Attribute) (int64, error)

CreateAttribute mocks base method.

func (*MockService) CreateAttributeGroup added in v1.9.0

func (m *MockService) CreateAttributeGroup(ctx context.Context, req domain.AttributeGroup) (int64, error)

CreateAttributeGroup mocks base method.

func (*MockService) CreateDefaultAttribute added in v1.9.0

func (m *MockService) CreateDefaultAttribute(ctx context.Context, modelUid string) (int64, error)

CreateDefaultAttribute mocks base method.

func (*MockService) CustomAttributeFieldColumns added in v1.9.0

func (m *MockService) CustomAttributeFieldColumns(ctx *gin.Context, modelUid string, customField []string) (int64, error)

CustomAttributeFieldColumns mocks base method.

func (*MockService) DeleteAttribute added in v1.9.0

func (m *MockService) DeleteAttribute(ctx context.Context, id int64) (int64, error)

DeleteAttribute mocks base method.

func (*MockService) DeleteAttributeGroup added in v1.10.0

func (m *MockService) DeleteAttributeGroup(ctx context.Context, id int64) (int64, error)

DeleteAttributeGroup mocks base method.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

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

func (*MockService) ListAttributeGroup added in v1.9.0

func (m *MockService) ListAttributeGroup(ctx context.Context, modelUid string) ([]domain.AttributeGroup, error)

ListAttributeGroup mocks base method.

func (*MockService) ListAttributeGroupByIds added in v1.9.0

func (m *MockService) ListAttributeGroupByIds(ctx context.Context, ids []int64) ([]domain.AttributeGroup, error)

ListAttributeGroupByIds mocks base method.

func (*MockService) ListAttributePipeline added in v1.9.0

func (m *MockService) ListAttributePipeline(ctx *gin.Context, modelUid string) ([]domain.AttributePipeline, error)

ListAttributePipeline mocks base method.

func (*MockService) ListAttributes

func (m *MockService) ListAttributes(ctx context.Context, modelUID string) ([]domain.Attribute, int64, error)

ListAttributes mocks base method.

func (*MockService) RenameAttributeGroup added in v1.10.0

func (m *MockService) RenameAttributeGroup(ctx context.Context, id int64, name string) (int64, error)

RenameAttributeGroup mocks base method.

func (*MockService) SearchAllAttributeFieldsByModelUid added in v1.9.0

func (m *MockService) SearchAllAttributeFieldsByModelUid(ctx context.Context, modelUid string) ([]string, error)

SearchAllAttributeFieldsByModelUid mocks base method.

func (*MockService) SearchAttributeFieldsByModelUid

func (m *MockService) SearchAttributeFieldsByModelUid(ctx context.Context, modelUid string) ([]string, error)

SearchAttributeFieldsByModelUid mocks base method.

func (*MockService) SearchAttributeFieldsBySecure added in v1.9.0

func (m *MockService) SearchAttributeFieldsBySecure(ctx context.Context, modelUids []string) (map[string][]string, error)

SearchAttributeFieldsBySecure mocks base method.

func (*MockService) Sort added in v1.10.0

func (m *MockService) Sort(ctx context.Context, id, targetGroupId, targetPosition int64) error

Sort mocks base method.

func (*MockService) SortAttributeGroup added in v1.10.0

func (m *MockService) SortAttributeGroup(ctx context.Context, id, targetPosition int64) error

SortAttributeGroup mocks base method.

func (*MockService) UpdateAttribute added in v1.9.0

func (m *MockService) UpdateAttribute(ctx context.Context, attribute domain.Attribute) (int64, error)

UpdateAttribute mocks base method.

type MockServiceBatchCreateAttributeCall added in v1.10.0

type MockServiceBatchCreateAttributeCall struct {
	*gomock.Call
}

MockServiceBatchCreateAttributeCall wrap *gomock.Call

func (*MockServiceBatchCreateAttributeCall) Do added in v1.10.0

Do rewrite *gomock.Call.Do

func (*MockServiceBatchCreateAttributeCall) DoAndReturn added in v1.10.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceBatchCreateAttributeCall) Return added in v1.10.0

Return rewrite *gomock.Call.Return

type MockServiceBatchCreateAttributeGroupCall added in v1.10.0

type MockServiceBatchCreateAttributeGroupCall struct {
	*gomock.Call
}

MockServiceBatchCreateAttributeGroupCall wrap *gomock.Call

func (*MockServiceBatchCreateAttributeGroupCall) Do added in v1.10.0

Do rewrite *gomock.Call.Do

func (*MockServiceBatchCreateAttributeGroupCall) DoAndReturn added in v1.10.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceBatchCreateAttributeGroupCall) Return added in v1.10.0

Return rewrite *gomock.Call.Return

type MockServiceCreateAttributeCall

type MockServiceCreateAttributeCall struct {
	*gomock.Call
}

MockServiceCreateAttributeCall wrap *gomock.Call

func (*MockServiceCreateAttributeCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceCreateAttributeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceCreateAttributeCall) Return

Return rewrite *gomock.Call.Return

type MockServiceCreateAttributeGroupCall added in v1.9.0

type MockServiceCreateAttributeGroupCall struct {
	*gomock.Call
}

MockServiceCreateAttributeGroupCall wrap *gomock.Call

func (*MockServiceCreateAttributeGroupCall) Do added in v1.9.0

Do rewrite *gomock.Call.Do

func (*MockServiceCreateAttributeGroupCall) DoAndReturn added in v1.9.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceCreateAttributeGroupCall) Return added in v1.9.0

Return rewrite *gomock.Call.Return

type MockServiceCreateDefaultAttributeCall added in v1.9.0

type MockServiceCreateDefaultAttributeCall struct {
	*gomock.Call
}

MockServiceCreateDefaultAttributeCall wrap *gomock.Call

func (*MockServiceCreateDefaultAttributeCall) Do added in v1.9.0

Do rewrite *gomock.Call.Do

func (*MockServiceCreateDefaultAttributeCall) DoAndReturn added in v1.9.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceCreateDefaultAttributeCall) Return added in v1.9.0

Return rewrite *gomock.Call.Return

type MockServiceCustomAttributeFieldColumnsCall added in v1.9.0

type MockServiceCustomAttributeFieldColumnsCall struct {
	*gomock.Call
}

MockServiceCustomAttributeFieldColumnsCall wrap *gomock.Call

func (*MockServiceCustomAttributeFieldColumnsCall) Do added in v1.9.0

Do rewrite *gomock.Call.Do

func (*MockServiceCustomAttributeFieldColumnsCall) DoAndReturn added in v1.9.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceCustomAttributeFieldColumnsCall) Return added in v1.9.0

Return rewrite *gomock.Call.Return

type MockServiceDeleteAttributeCall added in v1.9.0

type MockServiceDeleteAttributeCall struct {
	*gomock.Call
}

MockServiceDeleteAttributeCall wrap *gomock.Call

func (*MockServiceDeleteAttributeCall) Do added in v1.9.0

Do rewrite *gomock.Call.Do

func (*MockServiceDeleteAttributeCall) DoAndReturn added in v1.9.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceDeleteAttributeCall) Return added in v1.9.0

Return rewrite *gomock.Call.Return

type MockServiceDeleteAttributeGroupCall added in v1.10.0

type MockServiceDeleteAttributeGroupCall struct {
	*gomock.Call
}

MockServiceDeleteAttributeGroupCall wrap *gomock.Call

func (*MockServiceDeleteAttributeGroupCall) Do added in v1.10.0

Do rewrite *gomock.Call.Do

func (*MockServiceDeleteAttributeGroupCall) DoAndReturn added in v1.10.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceDeleteAttributeGroupCall) Return added in v1.10.0

Return rewrite *gomock.Call.Return

type MockServiceListAttributeGroupByIdsCall added in v1.9.0

type MockServiceListAttributeGroupByIdsCall struct {
	*gomock.Call
}

MockServiceListAttributeGroupByIdsCall wrap *gomock.Call

func (*MockServiceListAttributeGroupByIdsCall) Do added in v1.9.0

Do rewrite *gomock.Call.Do

func (*MockServiceListAttributeGroupByIdsCall) DoAndReturn added in v1.9.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceListAttributeGroupByIdsCall) Return added in v1.9.0

Return rewrite *gomock.Call.Return

type MockServiceListAttributeGroupCall added in v1.9.0

type MockServiceListAttributeGroupCall struct {
	*gomock.Call
}

MockServiceListAttributeGroupCall wrap *gomock.Call

func (*MockServiceListAttributeGroupCall) Do added in v1.9.0

Do rewrite *gomock.Call.Do

func (*MockServiceListAttributeGroupCall) DoAndReturn added in v1.9.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceListAttributeGroupCall) Return added in v1.9.0

Return rewrite *gomock.Call.Return

type MockServiceListAttributePipelineCall added in v1.9.0

type MockServiceListAttributePipelineCall struct {
	*gomock.Call
}

MockServiceListAttributePipelineCall wrap *gomock.Call

func (*MockServiceListAttributePipelineCall) Do added in v1.9.0

Do rewrite *gomock.Call.Do

func (*MockServiceListAttributePipelineCall) DoAndReturn added in v1.9.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceListAttributePipelineCall) Return added in v1.9.0

Return rewrite *gomock.Call.Return

type MockServiceListAttributesCall

type MockServiceListAttributesCall struct {
	*gomock.Call
}

MockServiceListAttributesCall wrap *gomock.Call

func (*MockServiceListAttributesCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceListAttributesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceListAttributesCall) Return

Return rewrite *gomock.Call.Return

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) BatchCreateAttribute added in v1.10.0

func (mr *MockServiceMockRecorder) BatchCreateAttribute(ctx, attrs any) *MockServiceBatchCreateAttributeCall

BatchCreateAttribute indicates an expected call of BatchCreateAttribute.

func (*MockServiceMockRecorder) BatchCreateAttributeGroup added in v1.10.0

func (mr *MockServiceMockRecorder) BatchCreateAttributeGroup(ctx, ags any) *MockServiceBatchCreateAttributeGroupCall

BatchCreateAttributeGroup indicates an expected call of BatchCreateAttributeGroup.

func (*MockServiceMockRecorder) CreateAttribute

func (mr *MockServiceMockRecorder) CreateAttribute(ctx, req any) *MockServiceCreateAttributeCall

CreateAttribute indicates an expected call of CreateAttribute.

func (*MockServiceMockRecorder) CreateAttributeGroup added in v1.9.0

func (mr *MockServiceMockRecorder) CreateAttributeGroup(ctx, req any) *MockServiceCreateAttributeGroupCall

CreateAttributeGroup indicates an expected call of CreateAttributeGroup.

func (*MockServiceMockRecorder) CreateDefaultAttribute added in v1.9.0

func (mr *MockServiceMockRecorder) CreateDefaultAttribute(ctx, modelUid any) *MockServiceCreateDefaultAttributeCall

CreateDefaultAttribute indicates an expected call of CreateDefaultAttribute.

func (*MockServiceMockRecorder) CustomAttributeFieldColumns added in v1.9.0

func (mr *MockServiceMockRecorder) CustomAttributeFieldColumns(ctx, modelUid, customField any) *MockServiceCustomAttributeFieldColumnsCall

CustomAttributeFieldColumns indicates an expected call of CustomAttributeFieldColumns.

func (*MockServiceMockRecorder) DeleteAttribute added in v1.9.0

func (mr *MockServiceMockRecorder) DeleteAttribute(ctx, id any) *MockServiceDeleteAttributeCall

DeleteAttribute indicates an expected call of DeleteAttribute.

func (*MockServiceMockRecorder) DeleteAttributeGroup added in v1.10.0

func (mr *MockServiceMockRecorder) DeleteAttributeGroup(ctx, id any) *MockServiceDeleteAttributeGroupCall

DeleteAttributeGroup indicates an expected call of DeleteAttributeGroup.

func (*MockServiceMockRecorder) ListAttributeGroup added in v1.9.0

func (mr *MockServiceMockRecorder) ListAttributeGroup(ctx, modelUid any) *MockServiceListAttributeGroupCall

ListAttributeGroup indicates an expected call of ListAttributeGroup.

func (*MockServiceMockRecorder) ListAttributeGroupByIds added in v1.9.0

func (mr *MockServiceMockRecorder) ListAttributeGroupByIds(ctx, ids any) *MockServiceListAttributeGroupByIdsCall

ListAttributeGroupByIds indicates an expected call of ListAttributeGroupByIds.

func (*MockServiceMockRecorder) ListAttributePipeline added in v1.9.0

func (mr *MockServiceMockRecorder) ListAttributePipeline(ctx, modelUid any) *MockServiceListAttributePipelineCall

ListAttributePipeline indicates an expected call of ListAttributePipeline.

func (*MockServiceMockRecorder) ListAttributes

func (mr *MockServiceMockRecorder) ListAttributes(ctx, modelUID any) *MockServiceListAttributesCall

ListAttributes indicates an expected call of ListAttributes.

func (*MockServiceMockRecorder) RenameAttributeGroup added in v1.10.0

func (mr *MockServiceMockRecorder) RenameAttributeGroup(ctx, id, name any) *MockServiceRenameAttributeGroupCall

RenameAttributeGroup indicates an expected call of RenameAttributeGroup.

func (*MockServiceMockRecorder) SearchAllAttributeFieldsByModelUid added in v1.9.0

func (mr *MockServiceMockRecorder) SearchAllAttributeFieldsByModelUid(ctx, modelUid any) *MockServiceSearchAllAttributeFieldsByModelUidCall

SearchAllAttributeFieldsByModelUid indicates an expected call of SearchAllAttributeFieldsByModelUid.

func (*MockServiceMockRecorder) SearchAttributeFieldsByModelUid

func (mr *MockServiceMockRecorder) SearchAttributeFieldsByModelUid(ctx, modelUid any) *MockServiceSearchAttributeFieldsByModelUidCall

SearchAttributeFieldsByModelUid indicates an expected call of SearchAttributeFieldsByModelUid.

func (*MockServiceMockRecorder) SearchAttributeFieldsBySecure added in v1.9.0

func (mr *MockServiceMockRecorder) SearchAttributeFieldsBySecure(ctx, modelUids any) *MockServiceSearchAttributeFieldsBySecureCall

SearchAttributeFieldsBySecure indicates an expected call of SearchAttributeFieldsBySecure.

func (*MockServiceMockRecorder) Sort added in v1.10.0

func (mr *MockServiceMockRecorder) Sort(ctx, id, targetGroupId, targetPosition any) *MockServiceSortCall

Sort indicates an expected call of Sort.

func (*MockServiceMockRecorder) SortAttributeGroup added in v1.10.0

func (mr *MockServiceMockRecorder) SortAttributeGroup(ctx, id, targetPosition any) *MockServiceSortAttributeGroupCall

SortAttributeGroup indicates an expected call of SortAttributeGroup.

func (*MockServiceMockRecorder) UpdateAttribute added in v1.9.0

func (mr *MockServiceMockRecorder) UpdateAttribute(ctx, attribute any) *MockServiceUpdateAttributeCall

UpdateAttribute indicates an expected call of UpdateAttribute.

type MockServiceRenameAttributeGroupCall added in v1.10.0

type MockServiceRenameAttributeGroupCall struct {
	*gomock.Call
}

MockServiceRenameAttributeGroupCall wrap *gomock.Call

func (*MockServiceRenameAttributeGroupCall) Do added in v1.10.0

Do rewrite *gomock.Call.Do

func (*MockServiceRenameAttributeGroupCall) DoAndReturn added in v1.10.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceRenameAttributeGroupCall) Return added in v1.10.0

Return rewrite *gomock.Call.Return

type MockServiceSearchAllAttributeFieldsByModelUidCall added in v1.9.0

type MockServiceSearchAllAttributeFieldsByModelUidCall struct {
	*gomock.Call
}

MockServiceSearchAllAttributeFieldsByModelUidCall wrap *gomock.Call

func (*MockServiceSearchAllAttributeFieldsByModelUidCall) Do added in v1.9.0

Do rewrite *gomock.Call.Do

func (*MockServiceSearchAllAttributeFieldsByModelUidCall) DoAndReturn added in v1.9.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceSearchAllAttributeFieldsByModelUidCall) Return added in v1.9.0

Return rewrite *gomock.Call.Return

type MockServiceSearchAttributeFieldsByModelUidCall

type MockServiceSearchAttributeFieldsByModelUidCall struct {
	*gomock.Call
}

MockServiceSearchAttributeFieldsByModelUidCall wrap *gomock.Call

func (*MockServiceSearchAttributeFieldsByModelUidCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceSearchAttributeFieldsByModelUidCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceSearchAttributeFieldsByModelUidCall) Return

Return rewrite *gomock.Call.Return

type MockServiceSearchAttributeFieldsBySecureCall added in v1.9.0

type MockServiceSearchAttributeFieldsBySecureCall struct {
	*gomock.Call
}

MockServiceSearchAttributeFieldsBySecureCall wrap *gomock.Call

func (*MockServiceSearchAttributeFieldsBySecureCall) Do added in v1.9.0

Do rewrite *gomock.Call.Do

func (*MockServiceSearchAttributeFieldsBySecureCall) DoAndReturn added in v1.9.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceSearchAttributeFieldsBySecureCall) Return added in v1.9.0

Return rewrite *gomock.Call.Return

type MockServiceSortAttributeGroupCall added in v1.10.0

type MockServiceSortAttributeGroupCall struct {
	*gomock.Call
}

MockServiceSortAttributeGroupCall wrap *gomock.Call

func (*MockServiceSortAttributeGroupCall) Do added in v1.10.0

Do rewrite *gomock.Call.Do

func (*MockServiceSortAttributeGroupCall) DoAndReturn added in v1.10.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceSortAttributeGroupCall) Return added in v1.10.0

Return rewrite *gomock.Call.Return

type MockServiceSortCall added in v1.10.0

type MockServiceSortCall struct {
	*gomock.Call
}

MockServiceSortCall wrap *gomock.Call

func (*MockServiceSortCall) Do added in v1.10.0

Do rewrite *gomock.Call.Do

func (*MockServiceSortCall) DoAndReturn added in v1.10.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceSortCall) Return added in v1.10.0

Return rewrite *gomock.Call.Return

type MockServiceUpdateAttributeCall added in v1.9.0

type MockServiceUpdateAttributeCall struct {
	*gomock.Call
}

MockServiceUpdateAttributeCall wrap *gomock.Call

func (*MockServiceUpdateAttributeCall) Do added in v1.9.0

Do rewrite *gomock.Call.Do

func (*MockServiceUpdateAttributeCall) DoAndReturn added in v1.9.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceUpdateAttributeCall) Return added in v1.9.0

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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