From a37c6e9fff6d814476939735546f5df3bfbcbb3d Mon Sep 17 00:00:00 2001 From: syui Date: Thu, 22 Feb 2024 22:22:54 +0900 Subject: [PATCH] fix --- tmp/ogent/ogent.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tmp/ogent/ogent.go b/tmp/ogent/ogent.go index fbeb4a6..63bd9e6 100644 --- a/tmp/ogent/ogent.go +++ b/tmp/ogent/ogent.go @@ -939,6 +939,12 @@ func (h *OgentHandler) CreateUser(ctx context.Context, req *CreateUserReq) (Crea if v, ok := req.GameLv.Get(); ok { b.SetGameLv(v) } + if v, ok := req.Coin.Get(); ok { + b.SetCoin(v) + } + if v, ok := req.CoinOpen.Get(); ok { + b.SetCoinOpen(v) + } // Add all fields. //b.SetUsername(req.Username) @@ -1142,6 +1148,13 @@ func (h *OgentHandler) UpdateUser(ctx context.Context, req *UpdateUserReq, param if v, ok := req.GameLv.Get(); ok { b.SetGameLv(v) } + if v, ok := req.Coin.Get(); ok { + b.SetCoin(v) + } + if v, ok := req.CoinOpen.Get(); ok { + b.SetCoinOpen(v) + } + // Add all edges. if req.Card != nil { b.ClearCard().AddCardIDs(req.Card...)