forked from ebhomengo/niki
1
0
Fork 0
niki/service/benefactor/kind_box_req/service.go

23 lines
463 B
Go
Raw Normal View History

package benefactorkindboxreqservice
2023-12-25 17:08:19 +00:00
import (
"context"
entity "git.gocasts.ir/ebhomengo/niki/entity"
)
type Repository interface {
AddKindBoxReq(ctx context.Context, kindBoxReq entity.KindBoxReq) (entity.KindBoxReq, error)
GetKindBoxReqByID(ctx context.Context, kindBoxReqID uint, benefactorID uint) (entity.KindBoxReq, error)
2023-12-25 17:08:19 +00:00
}
type Service struct {
repo Repository
}
func New(repository Repository) Service {
return Service{
repo: repository,
}
}