forked from ebhomengo/niki
22 lines
308 B
Go
22 lines
308 B
Go
|
package adminaddressservice
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"git.gocasts.ir/ebhomengo/niki/entity"
|
||
|
)
|
||
|
|
||
|
type Repository interface {
|
||
|
GetAddressByID(ctx context.Context, id uint) (entity.Address, error)
|
||
|
}
|
||
|
|
||
|
type Service struct {
|
||
|
repo Repository
|
||
|
}
|
||
|
|
||
|
func New(repo Repository) Service {
|
||
|
return Service{
|
||
|
repo: repo,
|
||
|
}
|
||
|
}
|