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

27 lines
758 B
Go
Raw Normal View History

2023-12-25 17:08:19 +00:00
package adminkindboxreqservice
import (
"context"
"git.gocasts.ir/ebhomengo/niki/entity"
paginationparam "git.gocasts.ir/ebhomengo/niki/param"
)
type Repository interface {
AcceptKindBoxReq(ctx context.Context, kindBoxReqID uint, countAccepted uint) error
GetByID(ctx context.Context, id uint) (entity.KindBoxReq, error)
2024-01-22 15:21:13 +00:00
RejectKindBoxReq(ctx context.Context, kindBoxReqID uint, description string) error
2024-01-25 15:15:53 +00:00
RollbackKindBoxRequestStatus(ctx context.Context, id uint) error
GetAllKindBoxReq(ctx context.Context, pagination paginationparam.PaginationRequest) ([]entity.KindBoxReq, paginationparam.PaginationResponse, error)
}
type Service struct {
repo Repository
}
2024-02-12 07:56:28 +00:00
func New(repository Repository) Service {
return Service{
2024-02-12 07:56:28 +00:00
repo: repository,
}
}