mirror of
https://github.com/emo2007/block-accounting.git
synced 2024-11-10 04:36:26 +00:00
31 lines
771 B
Go
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!")
|
||
|
}
|