contract

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IApiResposne added in v1.2.0

type IApiResposne interface {
	// 获取数据
	GetData() any
	// 获取错误码
	GetErrorCode() errorcode.Value
}

api响应

type IDbModel

type IDbModel interface {
	GetID() string
}

数据模型

type IDefaultConfig

type IDefaultConfig interface {
	// 认证密钥
	GetAuthCipher() string
	// 网关
	GetGateway() string
	// mongo
	GetMongo() string
	// 项目名
	GetName() string
	// 端口
	GetPort() int
	// redis
	GetRedis() IRedisOption
}

默认配置

type IEnumItem added in v1.2.0

type IEnumItem interface {
	// 获取自定义多语言键
	GetCustomEncodingKey(string) string
	// 获取多语言键
	GetEncodingKey() string
	// 获取枚举值
	GetValue() int
}

枚举项

type IRedisOption added in v1.2.0

type IRedisOption interface {
	// 地址
	GetAddr() string
	// 密码
	GetPassword() string
}

redis选项

type ITargetType added in v1.3.0

type ITargetType interface {
	IEnumItem

	// 获取应用
	GetApp() string
}

目标类型

type IValue added in v1.2.0

type IValue interface {
	IDbModel

	// 获取值
	GetValue() map[int]int64
}

目标数值

type IValueCondition added in v1.2.0

type IValueCondition interface {
	// 获取数量
	GetCount() int64
	// 获取操作符
	GetOp() string
	// 获取数值类型
	GetValueType() int
}

数值条件

type IValueLog added in v1.2.0

type IValueLog interface {
	IDbModel

	// 是否变更
	IsChange() bool
	// 设置数量
	SetCount(int64)
	// 设置主键
	SetID(string)
}

数值日志

type IValueType added in v1.2.0

type IValueType interface {
	IEnumItem

	// 获取每日数值
	GetDailyTime() int
	// 获取是否替换
	GetIsReplace() bool
	// 获取奖励
	GetRewards() any
}

数值类型

type MockIApiResposne added in v1.2.0

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

MockIApiResposne is a mock of IApiResposne interface.

func NewMockIApiResposne added in v1.2.0

func NewMockIApiResposne(ctrl *gomock.Controller) *MockIApiResposne

NewMockIApiResposne creates a new mock instance.

func (*MockIApiResposne) EXPECT added in v1.2.0

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

func (*MockIApiResposne) GetData added in v1.2.0

func (m *MockIApiResposne) GetData() any

GetData mocks base method.

func (*MockIApiResposne) GetErrorCode added in v1.2.0

func (m *MockIApiResposne) GetErrorCode() errorcode.Value

GetErrorCode mocks base method.

type MockIApiResposneMockRecorder added in v1.2.0

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

MockIApiResposneMockRecorder is the mock recorder for MockIApiResposne.

func (*MockIApiResposneMockRecorder) GetData added in v1.2.0

func (mr *MockIApiResposneMockRecorder) GetData() *gomock.Call

GetData indicates an expected call of GetData.

func (*MockIApiResposneMockRecorder) GetErrorCode added in v1.2.0

func (mr *MockIApiResposneMockRecorder) GetErrorCode() *gomock.Call

GetErrorCode indicates an expected call of GetErrorCode.

type MockIDbModel added in v1.2.0

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

MockIDbModel is a mock of IDbModel interface.

func NewMockIDbModel added in v1.2.0

func NewMockIDbModel(ctrl *gomock.Controller) *MockIDbModel

NewMockIDbModel creates a new mock instance.

func (*MockIDbModel) EXPECT added in v1.2.0

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

func (*MockIDbModel) GetID added in v1.2.0

func (m *MockIDbModel) GetID() string

GetID mocks base method.

type MockIDbModelMockRecorder added in v1.2.0

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

MockIDbModelMockRecorder is the mock recorder for MockIDbModel.

func (*MockIDbModelMockRecorder) GetID added in v1.2.0

func (mr *MockIDbModelMockRecorder) GetID() *gomock.Call

GetID indicates an expected call of GetID.

type MockIDefaultConfig added in v1.2.0

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

MockIDefaultConfig is a mock of IDefaultConfig interface.

func NewMockIDefaultConfig added in v1.2.0

func NewMockIDefaultConfig(ctrl *gomock.Controller) *MockIDefaultConfig

NewMockIDefaultConfig creates a new mock instance.

func (*MockIDefaultConfig) EXPECT added in v1.2.0

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

func (*MockIDefaultConfig) GetAuthCipher added in v1.4.1

func (m *MockIDefaultConfig) GetAuthCipher() string

GetAuthCipher mocks base method.

func (*MockIDefaultConfig) GetGateway added in v1.2.0

func (m *MockIDefaultConfig) GetGateway() string

GetGateway mocks base method.

func (*MockIDefaultConfig) GetMongo added in v1.2.0

func (m *MockIDefaultConfig) GetMongo() string

GetMongo mocks base method.

func (*MockIDefaultConfig) GetName added in v1.2.0

func (m *MockIDefaultConfig) GetName() string

GetName mocks base method.

func (*MockIDefaultConfig) GetPort added in v1.2.0

func (m *MockIDefaultConfig) GetPort() int

GetPort mocks base method.

func (*MockIDefaultConfig) GetRedis added in v1.2.0

func (m *MockIDefaultConfig) GetRedis() IRedisOption

GetRedis mocks base method.

type MockIDefaultConfigMockRecorder added in v1.2.0

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

MockIDefaultConfigMockRecorder is the mock recorder for MockIDefaultConfig.

func (*MockIDefaultConfigMockRecorder) GetAuthCipher added in v1.4.1

func (mr *MockIDefaultConfigMockRecorder) GetAuthCipher() *gomock.Call

GetAuthCipher indicates an expected call of GetAuthCipher.

func (*MockIDefaultConfigMockRecorder) GetGateway added in v1.2.0

func (mr *MockIDefaultConfigMockRecorder) GetGateway() *gomock.Call

GetGateway indicates an expected call of GetGateway.

func (*MockIDefaultConfigMockRecorder) GetMongo added in v1.2.0

func (mr *MockIDefaultConfigMockRecorder) GetMongo() *gomock.Call

GetMongo indicates an expected call of GetMongo.

func (*MockIDefaultConfigMockRecorder) GetName added in v1.2.0

GetName indicates an expected call of GetName.

func (*MockIDefaultConfigMockRecorder) GetPort added in v1.2.0

GetPort indicates an expected call of GetPort.

func (*MockIDefaultConfigMockRecorder) GetRedis added in v1.2.0

func (mr *MockIDefaultConfigMockRecorder) GetRedis() *gomock.Call

GetRedis indicates an expected call of GetRedis.

type MockIEnumItem added in v1.2.0

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

MockIEnumItem is a mock of IEnumItem interface.

func NewMockIEnumItem added in v1.2.0

func NewMockIEnumItem(ctrl *gomock.Controller) *MockIEnumItem

NewMockIEnumItem creates a new mock instance.

func (*MockIEnumItem) EXPECT added in v1.2.0

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

func (*MockIEnumItem) GetCustomEncodingKey added in v1.2.0

func (m *MockIEnumItem) GetCustomEncodingKey(arg0 string) string

GetCustomEncodingKey mocks base method.

func (*MockIEnumItem) GetEncodingKey added in v1.2.0

func (m *MockIEnumItem) GetEncodingKey() string

GetEncodingKey mocks base method.

func (*MockIEnumItem) GetValue added in v1.2.0

func (m *MockIEnumItem) GetValue() int

GetValue mocks base method.

type MockIEnumItemMockRecorder added in v1.2.0

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

MockIEnumItemMockRecorder is the mock recorder for MockIEnumItem.

func (*MockIEnumItemMockRecorder) GetCustomEncodingKey added in v1.2.0

func (mr *MockIEnumItemMockRecorder) GetCustomEncodingKey(arg0 interface{}) *gomock.Call

GetCustomEncodingKey indicates an expected call of GetCustomEncodingKey.

func (*MockIEnumItemMockRecorder) GetEncodingKey added in v1.2.0

func (mr *MockIEnumItemMockRecorder) GetEncodingKey() *gomock.Call

GetEncodingKey indicates an expected call of GetEncodingKey.

func (*MockIEnumItemMockRecorder) GetValue added in v1.2.0

func (mr *MockIEnumItemMockRecorder) GetValue() *gomock.Call

GetValue indicates an expected call of GetValue.

type MockIRedisOption added in v1.2.0

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

MockIRedisOption is a mock of IRedisOption interface.

func NewMockIRedisOption added in v1.2.0

func NewMockIRedisOption(ctrl *gomock.Controller) *MockIRedisOption

NewMockIRedisOption creates a new mock instance.

func (*MockIRedisOption) EXPECT added in v1.2.0

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

func (*MockIRedisOption) GetAddr added in v1.2.0

func (m *MockIRedisOption) GetAddr() string

GetAddr mocks base method.

func (*MockIRedisOption) GetPassword added in v1.2.0

func (m *MockIRedisOption) GetPassword() string

GetPassword mocks base method.

type MockIRedisOptionMockRecorder added in v1.2.0

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

MockIRedisOptionMockRecorder is the mock recorder for MockIRedisOption.

func (*MockIRedisOptionMockRecorder) GetAddr added in v1.2.0

func (mr *MockIRedisOptionMockRecorder) GetAddr() *gomock.Call

GetAddr indicates an expected call of GetAddr.

func (*MockIRedisOptionMockRecorder) GetPassword added in v1.2.0

func (mr *MockIRedisOptionMockRecorder) GetPassword() *gomock.Call

GetPassword indicates an expected call of GetPassword.

type MockITargetType added in v1.4.1

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

MockITargetType is a mock of ITargetType interface.

func NewMockITargetType added in v1.4.1

func NewMockITargetType(ctrl *gomock.Controller) *MockITargetType

NewMockITargetType creates a new mock instance.

func (*MockITargetType) EXPECT added in v1.4.1

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

func (*MockITargetType) GetApp added in v1.4.1

func (m *MockITargetType) GetApp() string

GetApp mocks base method.

func (*MockITargetType) GetCustomEncodingKey added in v1.4.1

func (m *MockITargetType) GetCustomEncodingKey(arg0 string) string

GetCustomEncodingKey mocks base method.

func (*MockITargetType) GetEncodingKey added in v1.4.1

func (m *MockITargetType) GetEncodingKey() string

GetEncodingKey mocks base method.

func (*MockITargetType) GetValue added in v1.4.1

func (m *MockITargetType) GetValue() int

GetValue mocks base method.

type MockITargetTypeMockRecorder added in v1.4.1

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

MockITargetTypeMockRecorder is the mock recorder for MockITargetType.

func (*MockITargetTypeMockRecorder) GetApp added in v1.4.1

func (mr *MockITargetTypeMockRecorder) GetApp() *gomock.Call

GetApp indicates an expected call of GetApp.

func (*MockITargetTypeMockRecorder) GetCustomEncodingKey added in v1.4.1

func (mr *MockITargetTypeMockRecorder) GetCustomEncodingKey(arg0 interface{}) *gomock.Call

GetCustomEncodingKey indicates an expected call of GetCustomEncodingKey.

func (*MockITargetTypeMockRecorder) GetEncodingKey added in v1.4.1

func (mr *MockITargetTypeMockRecorder) GetEncodingKey() *gomock.Call

GetEncodingKey indicates an expected call of GetEncodingKey.

func (*MockITargetTypeMockRecorder) GetValue added in v1.4.1

func (mr *MockITargetTypeMockRecorder) GetValue() *gomock.Call

GetValue indicates an expected call of GetValue.

type MockIValue added in v1.4.1

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

MockIValue is a mock of IValue interface.

func NewMockIValue added in v1.4.1

func NewMockIValue(ctrl *gomock.Controller) *MockIValue

NewMockIValue creates a new mock instance.

func (*MockIValue) EXPECT added in v1.4.1

func (m *MockIValue) EXPECT() *MockIValueMockRecorder

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

func (*MockIValue) GetID added in v1.4.1

func (m *MockIValue) GetID() string

GetID mocks base method.

func (*MockIValue) GetValue added in v1.4.1

func (m *MockIValue) GetValue() map[int]int64

GetValue mocks base method.

type MockIValueCondition added in v1.2.0

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

MockIValueCondition is a mock of IValueCondition interface.

func NewMockIValueCondition added in v1.2.0

func NewMockIValueCondition(ctrl *gomock.Controller) *MockIValueCondition

NewMockIValueCondition creates a new mock instance.

func (*MockIValueCondition) EXPECT added in v1.2.0

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

func (*MockIValueCondition) GetCount added in v1.2.0

func (m *MockIValueCondition) GetCount() int64

GetCount mocks base method.

func (*MockIValueCondition) GetOp added in v1.2.0

func (m *MockIValueCondition) GetOp() string

GetOp mocks base method.

func (*MockIValueCondition) GetValueType added in v1.2.0

func (m *MockIValueCondition) GetValueType() int

GetValueType mocks base method.

type MockIValueConditionMockRecorder added in v1.2.0

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

MockIValueConditionMockRecorder is the mock recorder for MockIValueCondition.

func (*MockIValueConditionMockRecorder) GetCount added in v1.2.0

GetCount indicates an expected call of GetCount.

func (*MockIValueConditionMockRecorder) GetOp added in v1.2.0

GetOp indicates an expected call of GetOp.

func (*MockIValueConditionMockRecorder) GetValueType added in v1.2.0

func (mr *MockIValueConditionMockRecorder) GetValueType() *gomock.Call

GetValueType indicates an expected call of GetValueType.

type MockIValueLog added in v1.4.1

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

MockIValueLog is a mock of IValueLog interface.

func NewMockIValueLog added in v1.4.1

func NewMockIValueLog(ctrl *gomock.Controller) *MockIValueLog

NewMockIValueLog creates a new mock instance.

func (*MockIValueLog) EXPECT added in v1.4.1

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

func (*MockIValueLog) GetID added in v1.4.1

func (m *MockIValueLog) GetID() string

GetID mocks base method.

func (*MockIValueLog) IsChange added in v1.4.1

func (m *MockIValueLog) IsChange() bool

IsChange mocks base method.

func (*MockIValueLog) SetCount added in v1.4.1

func (m *MockIValueLog) SetCount(arg0 int64)

SetCount mocks base method.

func (*MockIValueLog) SetID added in v1.4.1

func (m *MockIValueLog) SetID(arg0 string)

SetID mocks base method.

type MockIValueLogMockRecorder added in v1.4.1

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

MockIValueLogMockRecorder is the mock recorder for MockIValueLog.

func (*MockIValueLogMockRecorder) GetID added in v1.4.1

func (mr *MockIValueLogMockRecorder) GetID() *gomock.Call

GetID indicates an expected call of GetID.

func (*MockIValueLogMockRecorder) IsChange added in v1.4.1

func (mr *MockIValueLogMockRecorder) IsChange() *gomock.Call

IsChange indicates an expected call of IsChange.

func (*MockIValueLogMockRecorder) SetCount added in v1.4.1

func (mr *MockIValueLogMockRecorder) SetCount(arg0 interface{}) *gomock.Call

SetCount indicates an expected call of SetCount.

func (*MockIValueLogMockRecorder) SetID added in v1.4.1

func (mr *MockIValueLogMockRecorder) SetID(arg0 interface{}) *gomock.Call

SetID indicates an expected call of SetID.

type MockIValueMockRecorder added in v1.4.1

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

MockIValueMockRecorder is the mock recorder for MockIValue.

func (*MockIValueMockRecorder) GetID added in v1.4.1

func (mr *MockIValueMockRecorder) GetID() *gomock.Call

GetID indicates an expected call of GetID.

func (*MockIValueMockRecorder) GetValue added in v1.4.1

func (mr *MockIValueMockRecorder) GetValue() *gomock.Call

GetValue indicates an expected call of GetValue.

type MockIValueType added in v1.4.1

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

MockIValueType is a mock of IValueType interface.

func NewMockIValueType added in v1.4.1

func NewMockIValueType(ctrl *gomock.Controller) *MockIValueType

NewMockIValueType creates a new mock instance.

func (*MockIValueType) EXPECT added in v1.4.1

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

func (*MockIValueType) GetCustomEncodingKey added in v1.4.1

func (m *MockIValueType) GetCustomEncodingKey(arg0 string) string

GetCustomEncodingKey mocks base method.

func (*MockIValueType) GetDailyTime added in v1.4.1

func (m *MockIValueType) GetDailyTime() int

GetDailyTime mocks base method.

func (*MockIValueType) GetEncodingKey added in v1.4.1

func (m *MockIValueType) GetEncodingKey() string

GetEncodingKey mocks base method.

func (*MockIValueType) GetIsReplace added in v1.4.1

func (m *MockIValueType) GetIsReplace() bool

GetIsReplace mocks base method.

func (*MockIValueType) GetRewards added in v1.4.1

func (m *MockIValueType) GetRewards() any

GetRewards mocks base method.

func (*MockIValueType) GetValue added in v1.4.1

func (m *MockIValueType) GetValue() int

GetValue mocks base method.

type MockIValueTypeMockRecorder added in v1.4.1

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

MockIValueTypeMockRecorder is the mock recorder for MockIValueType.

func (*MockIValueTypeMockRecorder) GetCustomEncodingKey added in v1.4.1

func (mr *MockIValueTypeMockRecorder) GetCustomEncodingKey(arg0 interface{}) *gomock.Call

GetCustomEncodingKey indicates an expected call of GetCustomEncodingKey.

func (*MockIValueTypeMockRecorder) GetDailyTime added in v1.4.1

func (mr *MockIValueTypeMockRecorder) GetDailyTime() *gomock.Call

GetDailyTime indicates an expected call of GetDailyTime.

func (*MockIValueTypeMockRecorder) GetEncodingKey added in v1.4.1

func (mr *MockIValueTypeMockRecorder) GetEncodingKey() *gomock.Call

GetEncodingKey indicates an expected call of GetEncodingKey.

func (*MockIValueTypeMockRecorder) GetIsReplace added in v1.4.1

func (mr *MockIValueTypeMockRecorder) GetIsReplace() *gomock.Call

GetIsReplace indicates an expected call of GetIsReplace.

func (*MockIValueTypeMockRecorder) GetRewards added in v1.4.1

func (mr *MockIValueTypeMockRecorder) GetRewards() *gomock.Call

GetRewards indicates an expected call of GetRewards.

func (*MockIValueTypeMockRecorder) GetValue added in v1.4.1

func (mr *MockIValueTypeMockRecorder) GetValue() *gomock.Call

GetValue indicates an expected call of GetValue.

Jump to

Keyboard shortcuts

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