forked from ebhomengo/niki
22 lines
351 B
Go
22 lines
351 B
Go
|
package agentkindboxservice
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"git.gocasts.ir/ebhomengo/niki/entity"
|
||
|
)
|
||
|
|
||
|
type Repository interface {
|
||
|
GetAwaitingReturnByAgent(ctx context.Context, kindBoxID uint, agentID uint) (entity.KindBox, error)
|
||
|
}
|
||
|
|
||
|
type Service struct {
|
||
|
repo Repository
|
||
|
}
|
||
|
|
||
|
func New(repository Repository) Service {
|
||
|
return Service{
|
||
|
repo: repository,
|
||
|
}
|
||
|
}
|