package adminbenefactorservice import ( "context" "git.gocasts.ir/ebhomengo/niki/entity" params "git.gocasts.ir/ebhomengo/niki/param/admin/benefactor" ) type Repository interface { IsExistBenefactorByID(ctx context.Context, id uint) (bool, error) GetAddressByID(ctx context.Context, id uint) (*entity.Address, error) } type BenefactorService interface { GetByID(ctx context.Context, req params.GetBenefactorByIDRequest) (params.GetBenefactorByIDResponse, error) } type Service struct { repo Repository benefactorService BenefactorService } func New(repo Repository, benefactorService BenefactorService) Service { return Service{repo: repo, benefactorService: benefactorService} }