forked from ebhomengo/niki
24 lines
634 B
Go
24 lines
634 B
Go
package agentkindboxservice
|
|
|
|
import (
|
|
"context"
|
|
"git.gocasts.ir/ebhomengo/niki/entity"
|
|
params "git.gocasts.ir/ebhomengo/niki/param"
|
|
)
|
|
|
|
type Repository interface {
|
|
GetAwaitingReturnByAgent(ctx context.Context, kindBoxID uint, agentID uint) (entity.KindBox, error)
|
|
GetAllKindBox(ctx context.Context, filter params.FilterRequest, pagination params.PaginationRequest, sort params.SortRequest) ([]entity.KindBox, uint, error)
|
|
ReturnKindBox(ctx context.Context, kindBoxID uint, serialNumber string) error
|
|
}
|
|
|
|
type Service struct {
|
|
repo Repository
|
|
}
|
|
|
|
func New(repository Repository) Service {
|
|
return Service{
|
|
repo: repository,
|
|
}
|
|
}
|