block-accounting/backend/internal/interface/rest/controllers/multisig.go
2024-05-29 01:57:31 +03:00

31 lines
771 B
Go

package controllers
import (
"fmt"
"log/slog"
"net/http"
"github.com/emochka2007/block-accounting/internal/interface/rest/domain"
"github.com/emochka2007/block-accounting/internal/interface/rest/presenters"
"github.com/emochka2007/block-accounting/internal/usecase/interactors/chain"
)
type MultisigController interface {
}
type multisigController struct {
log *slog.Logger
chainInteractor chain.ChainInteractor
}
func (c *multisigController) New(w http.ResponseWriter, r *http.Request) ([]byte, error) {
req, err := presenters.CreateRequest[domain.NewMultisigRequest](r)
if err != nil {
return nil, fmt.Errorf("error build new multisig request. %w", err)
}
c.log.Debug("new_multisig", slog.Any("request", req))
panic("implement me!")
}