12345678910111213141516171819202122232425262728 |
- package repository
- import (
- "city_chips/internal/model"
- "context"
- )
- type PropertyRepository interface {
- GetProperty(ctx context.Context, id int64) (*model.Property, error)
- }
- func NewPropertyRepository(
- repository *Repository,
- ) PropertyRepository {
- return &propertyRepository{
- Repository: repository,
- }
- }
- type propertyRepository struct {
- *Repository
- }
- func (r *propertyRepository) GetProperty(ctx context.Context, id int64) (*model.Property, error) {
- var property model.Property
- return &property, nil
- }
|