Documentation ¶
Index ¶
- type PhonebookRepository
- func (r *PhonebookRepository) CheckHealthReadiness(ctx context.Context) error
- func (r *PhonebookRepository) Delete(ctx context.Context, id int64) error
- func (r *PhonebookRepository) GetCategoryNameByID(ctx context.Context, id int64) (string, error)
- func (r *PhonebookRepository) GetListPhoneBook(ctx context.Context, params *model.GetListRequest) ([]*model.PhoneBookResponse, error)
- func (r *PhonebookRepository) GetListPhonebookByLongLat(ctx context.Context, params *model.GetListRequest) ([]*model.PhoneBookResponse, error)
- func (r *PhonebookRepository) GetListPhonebookByLongLatMeta(ctx context.Context, params *model.GetListRequest) (int64, error)
- func (r *PhonebookRepository) GetLocationByID(ctx context.Context, id int64) (*model.Location, error)
- func (r *PhonebookRepository) GetMetaDataPhoneBook(ctx context.Context, params *model.GetListRequest) (int64, error)
- func (r *PhonebookRepository) GetPhonebookDetailByID(ctx context.Context, id int64) (*model.PhoneBookResponse, error)
- func (r *PhonebookRepository) Insert(ctx context.Context, params *model.AddPhonebook) error
- func (r *PhonebookRepository) IsExistPhoneNumber(ctx context.Context, phone string) (bool, error)
- func (r *PhonebookRepository) Update(ctx context.Context, params *model.UpdatePhonebook) error
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 ¶
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 ¶
IsExistPhoneNumber ...
func (*PhonebookRepository) Update ¶
func (r *PhonebookRepository) Update(ctx context.Context, params *model.UpdatePhonebook) error
Update ...
Click to show internal directories.
Click to hide internal directories.