package adminkindboxreqservice import ( "context" entity "git.gocasts.ir/ebhomengo/niki/entity" param "git.gocasts.ir/ebhomengo/niki/param/benefactor/kind_box_req" richerror "git.gocasts.ir/ebhomengo/niki/pkg/rich_error" ) func (s Service) Delete(ctx context.Context, req param.KindBoxReqDeleteRequest) (param.KindBoxReqDeleteResponse, error) { //TODO: Does bussiness domain need to delete an kindboxreq ? const op = "adminkindboxreqservice.Delete" dErr := s.repo.DeleteKindBoxReq(ctx, req.KindBoxReqID) if dErr != nil { return param.KindBoxReqDeleteResponse{}, richerror.New(op).WithErr(err).WithKind(richerror.KindUnexpected) } return param.KindBoxReqDeleteResponse{KindBoxReq: kindBoxReq}, nil }