fix
This commit is contained in:
parent
972bcb8639
commit
a37c6e9fff
@ -939,6 +939,12 @@ func (h *OgentHandler) CreateUser(ctx context.Context, req *CreateUserReq) (Crea
|
|||||||
if v, ok := req.GameLv.Get(); ok {
|
if v, ok := req.GameLv.Get(); ok {
|
||||||
b.SetGameLv(v)
|
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.
|
// Add all fields.
|
||||||
//b.SetUsername(req.Username)
|
//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 {
|
if v, ok := req.GameLv.Get(); ok {
|
||||||
b.SetGameLv(v)
|
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.
|
// Add all edges.
|
||||||
if req.Card != nil {
|
if req.Card != nil {
|
||||||
b.ClearCard().AddCardIDs(req.Card...)
|
b.ClearCard().AddCardIDs(req.Card...)
|
||||||
|
Loading…
Reference in New Issue
Block a user