working commit

This commit is contained in:
2026-02-12 17:03:17 +02:00
parent e4d9a6d161
commit 9b29364d6b
7 changed files with 76 additions and 29 deletions
+4 -4
View File
@@ -1,9 +1,7 @@
package handler
import (
//"fmt"
//"mstore/app/descr"
"mstore/app/descr"
"mstore/app/operator"
"mstore/app/router"
)
@@ -12,13 +10,15 @@ import (
func (hand *Handler) CreateAccount(rctx *router.Context) {
var err error
operatorID := descr.AnonymousID
params := &operator.CreateAccountParams{}
err = rctx.BindJSON(params)
if err != nil {
hand.SendError(rctx, err)
return
}
res, err := hand.oper.CreateAccount(rctx.Ctx, params)
res, err := hand.oper.CreateAccount(rctx.Ctx, operatorID, params)
if err != nil {
hand.logg.Errorf("CreateAccount error: %v", err)
hand.SendError(rctx, err)