model

package
v0.0.0-...-29acfd5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package model is a generated GoMock package.

Package model is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type AppUser

type AppUser struct {
	Id          int64          `db:"id"`
	Uuid        string         `db:"uuid"`
	Created     sql.NullTime   `db:"created"`
	Url         sql.NullString `db:"url"`
	SelfLink    sql.NullString `db:"self_link"`
	DisplayName sql.NullString `db:"display_name"`
	About       sql.NullString `db:"about"`
}

type AppUserModel

type AppUserModel interface {
	// contains filtered or unexported methods
}

AppUserModel is an interface to be customized, add more methods here, and implement the added methods in customAppUserModel.

func NewAppUserModel

func NewAppUserModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) AppUserModel

NewAppUserModel returns a model for the database table.

type Locale

type Locale struct {
	Id          int64          `db:"id"`
	Uuid        string         `db:"uuid"`
	AppUserUuid string         `db:"app_user_uuid"`
	Language    sql.NullString `db:"language"`
	Country     sql.NullString `db:"country"`
	Variant     sql.NullString `db:"variant"`
}

type LocaleModel

type LocaleModel interface {
	// contains filtered or unexported methods
}

LocaleModel is an interface to be customized, add more methods here, and implement the added methods in customLocaleModel.

func NewLocaleModel

func NewLocaleModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) LocaleModel

NewLocaleModel returns a model for the database table.

type MockAppUserModel

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

MockAppUserModel is a mock of AppUserModel interface.

func NewMockAppUserModel

func NewMockAppUserModel(ctrl *gomock.Controller) *MockAppUserModel

NewMockAppUserModel creates a new mock instance.

func (*MockAppUserModel) Delete

func (m *MockAppUserModel) Delete(arg0 context.Context, arg1 int64) error

Delete mocks base method.

func (*MockAppUserModel) EXPECT

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

func (*MockAppUserModel) FindOne

func (m *MockAppUserModel) FindOne(arg0 context.Context, arg1 int64) (*AppUser, error)

FindOne mocks base method.

func (*MockAppUserModel) FindOneByUuid

func (m *MockAppUserModel) FindOneByUuid(arg0 context.Context, arg1 string) (*AppUser, error)

FindOneByUuid mocks base method.

func (*MockAppUserModel) Insert

func (m *MockAppUserModel) Insert(arg0 context.Context, arg1 *AppUser) (sql.Result, error)

Insert mocks base method.

func (*MockAppUserModel) Update

func (m *MockAppUserModel) Update(arg0 context.Context, arg1 *AppUser) error

Update mocks base method.

type MockAppUserModelMockRecorder

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

MockAppUserModelMockRecorder is the mock recorder for MockAppUserModel.

func (*MockAppUserModelMockRecorder) Delete

func (mr *MockAppUserModelMockRecorder) Delete(arg0, arg1 any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockAppUserModelMockRecorder) FindOne

func (mr *MockAppUserModelMockRecorder) FindOne(arg0, arg1 any) *gomock.Call

FindOne indicates an expected call of FindOne.

func (*MockAppUserModelMockRecorder) FindOneByUuid

func (mr *MockAppUserModelMockRecorder) FindOneByUuid(arg0, arg1 any) *gomock.Call

FindOneByUuid indicates an expected call of FindOneByUuid.

func (*MockAppUserModelMockRecorder) Insert

func (mr *MockAppUserModelMockRecorder) Insert(arg0, arg1 any) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockAppUserModelMockRecorder) Update

func (mr *MockAppUserModelMockRecorder) Update(arg0, arg1 any) *gomock.Call

Update indicates an expected call of Update.

type MockLocaleModel

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

MockLocaleModel is a mock of LocaleModel interface.

func NewMockLocaleModel

func NewMockLocaleModel(ctrl *gomock.Controller) *MockLocaleModel

NewMockLocaleModel creates a new mock instance.

func (*MockLocaleModel) Delete

func (m *MockLocaleModel) Delete(arg0 context.Context, arg1 int64) error

Delete mocks base method.

func (*MockLocaleModel) EXPECT

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

func (*MockLocaleModel) FindOne

func (m *MockLocaleModel) FindOne(arg0 context.Context, arg1 int64) (*Locale, error)

FindOne mocks base method.

func (*MockLocaleModel) FindOneByAppUserUuid

func (m *MockLocaleModel) FindOneByAppUserUuid(arg0 context.Context, arg1 string) (*Locale, error)

FindOneByAppUserUuid mocks base method.

func (*MockLocaleModel) FindOneByUuid

func (m *MockLocaleModel) FindOneByUuid(arg0 context.Context, arg1 string) (*Locale, error)

FindOneByUuid mocks base method.

func (*MockLocaleModel) Insert

func (m *MockLocaleModel) Insert(arg0 context.Context, arg1 *Locale) (sql.Result, error)

Insert mocks base method.

func (*MockLocaleModel) Update

func (m *MockLocaleModel) Update(arg0 context.Context, arg1 *Locale) error

Update mocks base method.

type MockLocaleModelMockRecorder

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

MockLocaleModelMockRecorder is the mock recorder for MockLocaleModel.

func (*MockLocaleModelMockRecorder) Delete

func (mr *MockLocaleModelMockRecorder) Delete(arg0, arg1 any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockLocaleModelMockRecorder) FindOne

func (mr *MockLocaleModelMockRecorder) FindOne(arg0, arg1 any) *gomock.Call

FindOne indicates an expected call of FindOne.

func (*MockLocaleModelMockRecorder) FindOneByAppUserUuid

func (mr *MockLocaleModelMockRecorder) FindOneByAppUserUuid(arg0, arg1 any) *gomock.Call

FindOneByAppUserUuid indicates an expected call of FindOneByAppUserUuid.

func (*MockLocaleModelMockRecorder) FindOneByUuid

func (mr *MockLocaleModelMockRecorder) FindOneByUuid(arg0, arg1 any) *gomock.Call

FindOneByUuid indicates an expected call of FindOneByUuid.

func (*MockLocaleModelMockRecorder) Insert

func (mr *MockLocaleModelMockRecorder) Insert(arg0, arg1 any) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockLocaleModelMockRecorder) Update

func (mr *MockLocaleModelMockRecorder) Update(arg0, arg1 any) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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