1
0

fix ue game lv

This commit is contained in:
2024-06-01 23:35:34 +09:00
parent 2b479451c1
commit e508a50025
21 changed files with 2170 additions and 79 deletions

File diff suppressed because it is too large Load Diff

View File

@ -264,6 +264,7 @@ type CardOwnerRead struct {
GameEnd OptBool `json:"game_end"`
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@ -499,6 +500,11 @@ func (s *CardOwnerRead) GetGameLv() OptInt {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *CardOwnerRead) GetGameExp() OptInt {
return s.GameExp
}
// GetCoin returns the value of Coin.
func (s *CardOwnerRead) GetCoin() OptInt {
return s.Coin
@ -744,6 +750,11 @@ func (s *CardOwnerRead) SetGameLv(val OptInt) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *CardOwnerRead) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetCoin sets the value of Coin.
func (s *CardOwnerRead) SetCoin(val OptInt) {
s.Coin = val
@ -1563,6 +1574,9 @@ type CreateUeReq struct {
LocationZ OptInt `json:"location_z"`
LocationN OptInt `json:"location_n"`
Author OptString `json:"author"`
GameLv OptString `json:"game_lv"`
GameExp OptString `json:"game_exp"`
GameID OptString `json:"game_id"`
CreatedAt OptDateTime `json:"created_at"`
Owner int `json:"owner"`
}
@ -1657,6 +1671,21 @@ func (s *CreateUeReq) GetAuthor() OptString {
return s.Author
}
// GetGameLv returns the value of GameLv.
func (s *CreateUeReq) GetGameLv() OptString {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *CreateUeReq) GetGameExp() OptString {
return s.GameExp
}
// GetGameID returns the value of GameID.
func (s *CreateUeReq) GetGameID() OptString {
return s.GameID
}
// GetCreatedAt returns the value of CreatedAt.
func (s *CreateUeReq) GetCreatedAt() OptDateTime {
return s.CreatedAt
@ -1757,6 +1786,21 @@ func (s *CreateUeReq) SetAuthor(val OptString) {
s.Author = val
}
// SetGameLv sets the value of GameLv.
func (s *CreateUeReq) SetGameLv(val OptString) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *CreateUeReq) SetGameExp(val OptString) {
s.GameExp = val
}
// SetGameID sets the value of GameID.
func (s *CreateUeReq) SetGameID(val OptString) {
s.GameID = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *CreateUeReq) SetCreatedAt(val OptDateTime) {
s.CreatedAt = val
@ -1815,6 +1859,7 @@ type CreateUserReq struct {
GameEnd OptBool `json:"game_end"`
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@ -2059,6 +2104,11 @@ func (s *CreateUserReq) GetGameLv() OptInt {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *CreateUserReq) GetGameExp() OptInt {
return s.GameExp
}
// GetCoin returns the value of Coin.
func (s *CreateUserReq) GetCoin() OptInt {
return s.Coin
@ -2329,6 +2379,11 @@ func (s *CreateUserReq) SetGameLv(val OptInt) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *CreateUserReq) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetCoin sets the value of Coin.
func (s *CreateUserReq) SetCoin(val OptInt) {
s.Coin = val
@ -2558,6 +2613,7 @@ type GroupUsersList struct {
GameEnd OptBool `json:"game_end"`
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@ -2793,6 +2849,11 @@ func (s *GroupUsersList) GetGameLv() OptInt {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *GroupUsersList) GetGameExp() OptInt {
return s.GameExp
}
// GetCoin returns the value of Coin.
func (s *GroupUsersList) GetCoin() OptInt {
return s.Coin
@ -3038,6 +3099,11 @@ func (s *GroupUsersList) SetGameLv(val OptInt) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *GroupUsersList) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetCoin sets the value of Coin.
func (s *GroupUsersList) SetCoin(val OptInt) {
s.Coin = val
@ -3639,6 +3705,7 @@ type MaOwnerRead struct {
GameEnd OptBool `json:"game_end"`
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@ -3874,6 +3941,11 @@ func (s *MaOwnerRead) GetGameLv() OptInt {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *MaOwnerRead) GetGameExp() OptInt {
return s.GameExp
}
// GetCoin returns the value of Coin.
func (s *MaOwnerRead) GetCoin() OptInt {
return s.Coin
@ -4119,6 +4191,11 @@ func (s *MaOwnerRead) SetGameLv(val OptInt) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *MaOwnerRead) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetCoin sets the value of Coin.
func (s *MaOwnerRead) SetCoin(val OptInt) {
s.Coin = val
@ -5414,6 +5491,7 @@ type SevOwnerRead struct {
GameEnd OptBool `json:"game_end"`
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@ -5649,6 +5727,11 @@ func (s *SevOwnerRead) GetGameLv() OptInt {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *SevOwnerRead) GetGameExp() OptInt {
return s.GameExp
}
// GetCoin returns the value of Coin.
func (s *SevOwnerRead) GetCoin() OptInt {
return s.Coin
@ -5894,6 +5977,11 @@ func (s *SevOwnerRead) SetGameLv(val OptInt) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *SevOwnerRead) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetCoin sets the value of Coin.
func (s *SevOwnerRead) SetCoin(val OptInt) {
s.Coin = val
@ -6184,6 +6272,9 @@ type UeCreate struct {
LocationZ OptInt `json:"location_z"`
LocationN OptInt `json:"location_n"`
Author OptString `json:"author"`
GameLv OptString `json:"game_lv"`
GameExp OptString `json:"game_exp"`
GameID OptString `json:"game_id"`
CreatedAt OptDateTime `json:"created_at"`
}
@ -6272,6 +6363,21 @@ func (s *UeCreate) GetAuthor() OptString {
return s.Author
}
// GetGameLv returns the value of GameLv.
func (s *UeCreate) GetGameLv() OptString {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *UeCreate) GetGameExp() OptString {
return s.GameExp
}
// GetGameID returns the value of GameID.
func (s *UeCreate) GetGameID() OptString {
return s.GameID
}
// GetCreatedAt returns the value of CreatedAt.
func (s *UeCreate) GetCreatedAt() OptDateTime {
return s.CreatedAt
@ -6362,6 +6468,21 @@ func (s *UeCreate) SetAuthor(val OptString) {
s.Author = val
}
// SetGameLv sets the value of GameLv.
func (s *UeCreate) SetGameLv(val OptString) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *UeCreate) SetGameExp(val OptString) {
s.GameExp = val
}
// SetGameID sets the value of GameID.
func (s *UeCreate) SetGameID(val OptString) {
s.GameID = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *UeCreate) SetCreatedAt(val OptDateTime) {
s.CreatedAt = val
@ -6388,6 +6509,9 @@ type UeList struct {
LocationZ OptInt `json:"location_z"`
LocationN OptInt `json:"location_n"`
Author OptString `json:"author"`
GameLv OptString `json:"game_lv"`
GameExp OptString `json:"game_exp"`
GameID OptString `json:"game_id"`
CreatedAt OptDateTime `json:"created_at"`
}
@ -6476,6 +6600,21 @@ func (s *UeList) GetAuthor() OptString {
return s.Author
}
// GetGameLv returns the value of GameLv.
func (s *UeList) GetGameLv() OptString {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *UeList) GetGameExp() OptString {
return s.GameExp
}
// GetGameID returns the value of GameID.
func (s *UeList) GetGameID() OptString {
return s.GameID
}
// GetCreatedAt returns the value of CreatedAt.
func (s *UeList) GetCreatedAt() OptDateTime {
return s.CreatedAt
@ -6566,6 +6705,21 @@ func (s *UeList) SetAuthor(val OptString) {
s.Author = val
}
// SetGameLv sets the value of GameLv.
func (s *UeList) SetGameLv(val OptString) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *UeList) SetGameExp(val OptString) {
s.GameExp = val
}
// SetGameID sets the value of GameID.
func (s *UeList) SetGameID(val OptString) {
s.GameID = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *UeList) SetCreatedAt(val OptDateTime) {
s.CreatedAt = val
@ -6619,6 +6773,7 @@ type UeOwnerRead struct {
GameEnd OptBool `json:"game_end"`
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@ -6854,6 +7009,11 @@ func (s *UeOwnerRead) GetGameLv() OptInt {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *UeOwnerRead) GetGameExp() OptInt {
return s.GameExp
}
// GetCoin returns the value of Coin.
func (s *UeOwnerRead) GetCoin() OptInt {
return s.Coin
@ -7099,6 +7259,11 @@ func (s *UeOwnerRead) SetGameLv(val OptInt) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *UeOwnerRead) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetCoin sets the value of Coin.
func (s *UeOwnerRead) SetCoin(val OptInt) {
s.Coin = val
@ -7135,6 +7300,9 @@ type UeRead struct {
LocationZ OptInt `json:"location_z"`
LocationN OptInt `json:"location_n"`
Author OptString `json:"author"`
GameLv OptString `json:"game_lv"`
GameExp OptString `json:"game_exp"`
GameID OptString `json:"game_id"`
CreatedAt OptDateTime `json:"created_at"`
}
@ -7223,6 +7391,21 @@ func (s *UeRead) GetAuthor() OptString {
return s.Author
}
// GetGameLv returns the value of GameLv.
func (s *UeRead) GetGameLv() OptString {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *UeRead) GetGameExp() OptString {
return s.GameExp
}
// GetGameID returns the value of GameID.
func (s *UeRead) GetGameID() OptString {
return s.GameID
}
// GetCreatedAt returns the value of CreatedAt.
func (s *UeRead) GetCreatedAt() OptDateTime {
return s.CreatedAt
@ -7313,6 +7496,21 @@ func (s *UeRead) SetAuthor(val OptString) {
s.Author = val
}
// SetGameLv sets the value of GameLv.
func (s *UeRead) SetGameLv(val OptString) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *UeRead) SetGameExp(val OptString) {
s.GameExp = val
}
// SetGameID sets the value of GameID.
func (s *UeRead) SetGameID(val OptString) {
s.GameID = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *UeRead) SetCreatedAt(val OptDateTime) {
s.CreatedAt = val
@ -7339,6 +7537,9 @@ type UeUpdate struct {
LocationZ OptInt `json:"location_z"`
LocationN OptInt `json:"location_n"`
Author OptString `json:"author"`
GameLv OptString `json:"game_lv"`
GameExp OptString `json:"game_exp"`
GameID OptString `json:"game_id"`
CreatedAt OptDateTime `json:"created_at"`
}
@ -7427,6 +7628,21 @@ func (s *UeUpdate) GetAuthor() OptString {
return s.Author
}
// GetGameLv returns the value of GameLv.
func (s *UeUpdate) GetGameLv() OptString {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *UeUpdate) GetGameExp() OptString {
return s.GameExp
}
// GetGameID returns the value of GameID.
func (s *UeUpdate) GetGameID() OptString {
return s.GameID
}
// GetCreatedAt returns the value of CreatedAt.
func (s *UeUpdate) GetCreatedAt() OptDateTime {
return s.CreatedAt
@ -7517,6 +7733,21 @@ func (s *UeUpdate) SetAuthor(val OptString) {
s.Author = val
}
// SetGameLv sets the value of GameLv.
func (s *UeUpdate) SetGameLv(val OptString) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *UeUpdate) SetGameExp(val OptString) {
s.GameExp = val
}
// SetGameID sets the value of GameID.
func (s *UeUpdate) SetGameID(val OptString) {
s.GameID = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *UeUpdate) SetCreatedAt(val OptDateTime) {
s.CreatedAt = val
@ -8038,6 +8269,9 @@ type UpdateUeReq struct {
LocationZ OptInt `json:"location_z"`
LocationN OptInt `json:"location_n"`
Author OptString `json:"author"`
GameLv OptString `json:"game_lv"`
GameExp OptString `json:"game_exp"`
GameID OptString `json:"game_id"`
Owner OptInt `json:"owner"`
}
@ -8126,6 +8360,21 @@ func (s *UpdateUeReq) GetAuthor() OptString {
return s.Author
}
// GetGameLv returns the value of GameLv.
func (s *UpdateUeReq) GetGameLv() OptString {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *UpdateUeReq) GetGameExp() OptString {
return s.GameExp
}
// GetGameID returns the value of GameID.
func (s *UpdateUeReq) GetGameID() OptString {
return s.GameID
}
// GetOwner returns the value of Owner.
func (s *UpdateUeReq) GetOwner() OptInt {
return s.Owner
@ -8216,6 +8465,21 @@ func (s *UpdateUeReq) SetAuthor(val OptString) {
s.Author = val
}
// SetGameLv sets the value of GameLv.
func (s *UpdateUeReq) SetGameLv(val OptString) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *UpdateUeReq) SetGameExp(val OptString) {
s.GameExp = val
}
// SetGameID sets the value of GameID.
func (s *UpdateUeReq) SetGameID(val OptString) {
s.GameID = val
}
// SetOwner sets the value of Owner.
func (s *UpdateUeReq) SetOwner(val OptInt) {
s.Owner = val
@ -8266,6 +8530,7 @@ type UpdateUserReq struct {
GameEnd OptBool `json:"game_end"`
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@ -8495,6 +8760,11 @@ func (s *UpdateUserReq) GetGameLv() OptInt {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *UpdateUserReq) GetGameExp() OptInt {
return s.GameExp
}
// GetCoin returns the value of Coin.
func (s *UpdateUserReq) GetCoin() OptInt {
return s.Coin
@ -8750,6 +9020,11 @@ func (s *UpdateUserReq) SetGameLv(val OptInt) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *UpdateUserReq) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetCoin sets the value of Coin.
func (s *UpdateUserReq) SetCoin(val OptInt) {
s.Coin = val
@ -8936,6 +9211,7 @@ type UserCreate struct {
GameEnd OptBool `json:"game_end"`
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@ -9171,6 +9447,11 @@ func (s *UserCreate) GetGameLv() OptInt {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *UserCreate) GetGameExp() OptInt {
return s.GameExp
}
// GetCoin returns the value of Coin.
func (s *UserCreate) GetCoin() OptInt {
return s.Coin
@ -9416,6 +9697,11 @@ func (s *UserCreate) SetGameLv(val OptInt) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *UserCreate) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetCoin sets the value of Coin.
func (s *UserCreate) SetCoin(val OptInt) {
s.Coin = val
@ -9481,6 +9767,7 @@ type UserList struct {
GameEnd OptBool `json:"game_end"`
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@ -9716,6 +10003,11 @@ func (s *UserList) GetGameLv() OptInt {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *UserList) GetGameExp() OptInt {
return s.GameExp
}
// GetCoin returns the value of Coin.
func (s *UserList) GetCoin() OptInt {
return s.Coin
@ -9961,6 +10253,11 @@ func (s *UserList) SetGameLv(val OptInt) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *UserList) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetCoin sets the value of Coin.
func (s *UserList) SetCoin(val OptInt) {
s.Coin = val
@ -10270,6 +10567,7 @@ type UserRead struct {
GameEnd OptBool `json:"game_end"`
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@ -10505,6 +10803,11 @@ func (s *UserRead) GetGameLv() OptInt {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *UserRead) GetGameExp() OptInt {
return s.GameExp
}
// GetCoin returns the value of Coin.
func (s *UserRead) GetCoin() OptInt {
return s.Coin
@ -10750,6 +11053,11 @@ func (s *UserRead) SetGameLv(val OptInt) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *UserRead) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetCoin sets the value of Coin.
func (s *UserRead) SetCoin(val OptInt) {
s.Coin = val
@ -10911,6 +11219,9 @@ type UserUeList struct {
LocationZ OptInt `json:"location_z"`
LocationN OptInt `json:"location_n"`
Author OptString `json:"author"`
GameLv OptString `json:"game_lv"`
GameExp OptString `json:"game_exp"`
GameID OptString `json:"game_id"`
CreatedAt OptDateTime `json:"created_at"`
}
@ -10999,6 +11310,21 @@ func (s *UserUeList) GetAuthor() OptString {
return s.Author
}
// GetGameLv returns the value of GameLv.
func (s *UserUeList) GetGameLv() OptString {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *UserUeList) GetGameExp() OptString {
return s.GameExp
}
// GetGameID returns the value of GameID.
func (s *UserUeList) GetGameID() OptString {
return s.GameID
}
// GetCreatedAt returns the value of CreatedAt.
func (s *UserUeList) GetCreatedAt() OptDateTime {
return s.CreatedAt
@ -11089,6 +11415,21 @@ func (s *UserUeList) SetAuthor(val OptString) {
s.Author = val
}
// SetGameLv sets the value of GameLv.
func (s *UserUeList) SetGameLv(val OptString) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *UserUeList) SetGameExp(val OptString) {
s.GameExp = val
}
// SetGameID sets the value of GameID.
func (s *UserUeList) SetGameID(val OptString) {
s.GameID = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *UserUeList) SetCreatedAt(val OptDateTime) {
s.CreatedAt = val
@ -11142,6 +11483,7 @@ type UserUpdate struct {
GameEnd OptBool `json:"game_end"`
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@ -11377,6 +11719,11 @@ func (s *UserUpdate) GetGameLv() OptInt {
return s.GameLv
}
// GetGameExp returns the value of GameExp.
func (s *UserUpdate) GetGameExp() OptInt {
return s.GameExp
}
// GetCoin returns the value of Coin.
func (s *UserUpdate) GetCoin() OptInt {
return s.Coin
@ -11622,6 +11969,11 @@ func (s *UserUpdate) SetGameLv(val OptInt) {
s.GameLv = val
}
// SetGameExp sets the value of GameExp.
func (s *UserUpdate) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetCoin sets the value of Coin.
func (s *UserUpdate) SetCoin(val OptInt) {
s.Coin = val

View File

@ -1165,6 +1165,16 @@ func (h *OgentHandler) CreateUe(ctx context.Context, req *CreateUeReq) (CreateUe
if v, ok := req.CreatedAt.Get(); ok {
b.SetCreatedAt(v)
}
if v, ok := req.GameLv.Get(); ok {
b.SetGameLv(v)
}
if v, ok := req.GameExp.Get(); ok {
b.SetGameExp(v)
}
if v, ok := req.GameID.Get(); ok {
b.SetGameID(v)
}
// Add all edges.
//b.SetOwnerID(req.Owner)
if req.Password == password {
@ -1284,6 +1294,15 @@ func (h *OgentHandler) UpdateUe(ctx context.Context, req *UpdateUeReq, params Up
if v, ok := req.Author.Get(); ok {
b.SetAuthor(v)
}
if v, ok := req.GameLv.Get(); ok {
b.SetGameLv(v)
}
if v, ok := req.GameExp.Get(); ok {
b.SetGameExp(v)
}
if v, ok := req.GameID.Get(); ok {
b.SetGameID(v)
}
// Add all edges.
//if v, ok := req.Owner.Get(); ok {
// b.SetOwnerID(v)
@ -1563,6 +1582,9 @@ func (h *OgentHandler) CreateUser(ctx context.Context, req *CreateUserReq) (Crea
if v, ok := req.GameLv.Get(); ok {
b.SetGameLv(v)
}
if v, ok := req.GameExp.Get(); ok {
b.SetGameExp(v)
}
if v, ok := req.Coin.Get(); ok {
b.SetCoin(v)
}
@ -1772,6 +1794,9 @@ func (h *OgentHandler) UpdateUser(ctx context.Context, req *UpdateUserReq, param
if v, ok := req.GameLv.Get(); ok {
b.SetGameLv(v)
}
if v, ok := req.GameExp.Get(); ok {
b.SetGameExp(v)
}
if v, ok := req.Coin.Get(); ok {
b.SetCoin(v)
}

View File

@ -195,6 +195,7 @@ func NewCardOwnerRead(e *ent.User) *CardOwnerRead {
ret.GameEnd = NewOptBool(e.GameEnd)
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@ -382,6 +383,7 @@ func NewGroupUsersList(e *ent.User) *GroupUsersList {
ret.GameEnd = NewOptBool(e.GameEnd)
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@ -649,6 +651,7 @@ func NewMaOwnerRead(e *ent.User) *MaOwnerRead {
ret.GameEnd = NewOptBool(e.GameEnd)
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@ -872,6 +875,7 @@ func NewSevOwnerRead(e *ent.User) *SevOwnerRead {
ret.GameEnd = NewOptBool(e.GameEnd)
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@ -918,6 +922,9 @@ func NewUeCreate(e *ent.Ue) *UeCreate {
ret.LocationZ = NewOptInt(e.LocationZ)
ret.LocationN = NewOptInt(e.LocationN)
ret.Author = NewOptString(e.Author)
ret.GameLv = NewOptString(e.GameLv)
ret.GameExp = NewOptString(e.GameExp)
ret.GameID = NewOptString(e.GameID)
ret.CreatedAt = NewOptDateTime(e.CreatedAt)
return &ret
}
@ -962,6 +969,9 @@ func NewUeList(e *ent.Ue) *UeList {
ret.LocationZ = NewOptInt(e.LocationZ)
ret.LocationN = NewOptInt(e.LocationN)
ret.Author = NewOptString(e.Author)
ret.GameLv = NewOptString(e.GameLv)
ret.GameExp = NewOptString(e.GameExp)
ret.GameID = NewOptString(e.GameID)
ret.CreatedAt = NewOptDateTime(e.CreatedAt)
return &ret
}
@ -1006,6 +1016,9 @@ func NewUeRead(e *ent.Ue) *UeRead {
ret.LocationZ = NewOptInt(e.LocationZ)
ret.LocationN = NewOptInt(e.LocationN)
ret.Author = NewOptString(e.Author)
ret.GameLv = NewOptString(e.GameLv)
ret.GameExp = NewOptString(e.GameExp)
ret.GameID = NewOptString(e.GameID)
ret.CreatedAt = NewOptDateTime(e.CreatedAt)
return &ret
}
@ -1050,6 +1063,9 @@ func NewUeUpdate(e *ent.Ue) *UeUpdate {
ret.LocationZ = NewOptInt(e.LocationZ)
ret.LocationN = NewOptInt(e.LocationN)
ret.Author = NewOptString(e.Author)
ret.GameLv = NewOptString(e.GameLv)
ret.GameExp = NewOptString(e.GameExp)
ret.GameID = NewOptString(e.GameID)
ret.CreatedAt = NewOptDateTime(e.CreatedAt)
return &ret
}
@ -1123,6 +1139,7 @@ func NewUeOwnerRead(e *ent.User) *UeOwnerRead {
ret.GameEnd = NewOptBool(e.GameEnd)
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@ -1198,6 +1215,7 @@ func NewUserCreate(e *ent.User) *UserCreate {
ret.GameEnd = NewOptBool(e.GameEnd)
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@ -1273,6 +1291,7 @@ func NewUserList(e *ent.User) *UserList {
ret.GameEnd = NewOptBool(e.GameEnd)
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@ -1348,6 +1367,7 @@ func NewUserRead(e *ent.User) *UserRead {
ret.GameEnd = NewOptBool(e.GameEnd)
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@ -1423,6 +1443,7 @@ func NewUserUpdate(e *ent.User) *UserUpdate {
ret.GameEnd = NewOptBool(e.GameEnd)
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@ -1589,6 +1610,9 @@ func NewUserUeList(e *ent.Ue) *UserUeList {
ret.LocationZ = NewOptInt(e.LocationZ)
ret.LocationN = NewOptInt(e.LocationN)
ret.Author = NewOptString(e.Author)
ret.GameLv = NewOptString(e.GameLv)
ret.GameExp = NewOptString(e.GameExp)
ret.GameID = NewOptString(e.GameID)
ret.CreatedAt = NewOptDateTime(e.CreatedAt)
return &ret
}