mysql

package
v0.0.0-...-de92fe2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PhonebookRepository

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

PhonebookRepository ...

func NewPhonebookRepository

func NewPhonebookRepository(conn *sqlx.DB) *PhonebookRepository

NewPhonebookRepository ...

func (*PhonebookRepository) CheckHealthReadiness

func (r *PhonebookRepository) CheckHealthReadiness(ctx context.Context) error

func (*PhonebookRepository) Delete

func (r *PhonebookRepository) Delete(ctx context.Context, id int64) error

Delete ...

func (*PhonebookRepository) GetCategoryNameByID

func (r *PhonebookRepository) GetCategoryNameByID(ctx context.Context, id int64) (string, error)

GetCategoryNameByID ...

func (*PhonebookRepository) GetListPhoneBook

func (r *PhonebookRepository) GetListPhoneBook(ctx context.Context, params *model.GetListRequest) ([]*model.PhoneBookResponse, error)

GetListPhoneBook ...

func (*PhonebookRepository) GetListPhonebookByLongLat

func (r *PhonebookRepository) GetListPhonebookByLongLat(ctx context.Context, params *model.GetListRequest) ([]*model.PhoneBookResponse, error)

func (*PhonebookRepository) GetListPhonebookByLongLatMeta

func (r *PhonebookRepository) GetListPhonebookByLongLatMeta(ctx context.Context, params *model.GetListRequest) (int64, error)

func (*PhonebookRepository) GetLocationByID

func (r *PhonebookRepository) GetLocationByID(ctx context.Context, id int64) (*model.Location, error)

GetLocationByID ...

func (*PhonebookRepository) GetMetaDataPhoneBook

func (r *PhonebookRepository) GetMetaDataPhoneBook(ctx context.Context, params *model.GetListRequest) (int64, error)

GetMetaDataPhoneBook ...

func (*PhonebookRepository) GetPhonebookDetailByID

func (r *PhonebookRepository) GetPhonebookDetailByID(ctx context.Context, id int64) (*model.PhoneBookResponse, error)

GetPhonebookDetailByID ...

func (*PhonebookRepository) Insert

func (r *PhonebookRepository) Insert(ctx context.Context, params *model.AddPhonebook) error

Insert ...

func (*PhonebookRepository) IsExistPhoneNumber

func (r *PhonebookRepository) IsExistPhoneNumber(ctx context.Context, phone string) (bool, error)

IsExistPhoneNumber ...

func (*PhonebookRepository) Update

Update ...

Jump to

Keyboard shortcuts

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