12345678910111213141516171819202122232425262728 |
- package repository
- import (
- "city_chips/internal/model"
- "context"
- )
- type InformationRepository interface {
- GetInformation(ctx context.Context, id int64) (*model.Information, error)
- }
- func NewInformationRepository(
- repository *Repository,
- ) InformationRepository {
- return &informationRepository{
- Repository: repository,
- }
- }
- type informationRepository struct {
- *Repository
- }
- func (r *informationRepository) GetInformation(ctx context.Context, id int64) (*model.Information, error) {
- var information model.Information
- return &information, nil
- }
|