1
0

fix game story

This commit is contained in:
2024-06-08 01:02:15 +09:00
parent e508a50025
commit e707b1802e
21 changed files with 1804 additions and 82 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -265,6 +265,8 @@ type CardOwnerRead struct {
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
GameStory OptInt `json:"game_story"`
GameLimit OptBool `json:"game_limit"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@@ -505,6 +507,16 @@ func (s *CardOwnerRead) GetGameExp() OptInt {
return s.GameExp
}
// GetGameStory returns the value of GameStory.
func (s *CardOwnerRead) GetGameStory() OptInt {
return s.GameStory
}
// GetGameLimit returns the value of GameLimit.
func (s *CardOwnerRead) GetGameLimit() OptBool {
return s.GameLimit
}
// GetCoin returns the value of Coin.
func (s *CardOwnerRead) GetCoin() OptInt {
return s.Coin
@@ -755,6 +767,16 @@ func (s *CardOwnerRead) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetGameStory sets the value of GameStory.
func (s *CardOwnerRead) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetGameLimit sets the value of GameLimit.
func (s *CardOwnerRead) SetGameLimit(val OptBool) {
s.GameLimit = val
}
// SetCoin sets the value of Coin.
func (s *CardOwnerRead) SetCoin(val OptInt) {
s.Coin = val
@@ -1577,6 +1599,7 @@ type CreateUeReq struct {
GameLv OptString `json:"game_lv"`
GameExp OptString `json:"game_exp"`
GameID OptString `json:"game_id"`
GameStory OptInt `json:"game_story"`
CreatedAt OptDateTime `json:"created_at"`
Owner int `json:"owner"`
}
@@ -1686,6 +1709,11 @@ func (s *CreateUeReq) GetGameID() OptString {
return s.GameID
}
// GetGameStory returns the value of GameStory.
func (s *CreateUeReq) GetGameStory() OptInt {
return s.GameStory
}
// GetCreatedAt returns the value of CreatedAt.
func (s *CreateUeReq) GetCreatedAt() OptDateTime {
return s.CreatedAt
@@ -1801,6 +1829,11 @@ func (s *CreateUeReq) SetGameID(val OptString) {
s.GameID = val
}
// SetGameStory sets the value of GameStory.
func (s *CreateUeReq) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *CreateUeReq) SetCreatedAt(val OptDateTime) {
s.CreatedAt = val
@@ -1860,6 +1893,8 @@ type CreateUserReq struct {
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
GameStory OptInt `json:"game_story"`
GameLimit OptBool `json:"game_limit"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@@ -2109,6 +2144,16 @@ func (s *CreateUserReq) GetGameExp() OptInt {
return s.GameExp
}
// GetGameStory returns the value of GameStory.
func (s *CreateUserReq) GetGameStory() OptInt {
return s.GameStory
}
// GetGameLimit returns the value of GameLimit.
func (s *CreateUserReq) GetGameLimit() OptBool {
return s.GameLimit
}
// GetCoin returns the value of Coin.
func (s *CreateUserReq) GetCoin() OptInt {
return s.Coin
@@ -2384,6 +2429,16 @@ func (s *CreateUserReq) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetGameStory sets the value of GameStory.
func (s *CreateUserReq) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetGameLimit sets the value of GameLimit.
func (s *CreateUserReq) SetGameLimit(val OptBool) {
s.GameLimit = val
}
// SetCoin sets the value of Coin.
func (s *CreateUserReq) SetCoin(val OptInt) {
s.Coin = val
@@ -2614,6 +2669,8 @@ type GroupUsersList struct {
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
GameStory OptInt `json:"game_story"`
GameLimit OptBool `json:"game_limit"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@@ -2854,6 +2911,16 @@ func (s *GroupUsersList) GetGameExp() OptInt {
return s.GameExp
}
// GetGameStory returns the value of GameStory.
func (s *GroupUsersList) GetGameStory() OptInt {
return s.GameStory
}
// GetGameLimit returns the value of GameLimit.
func (s *GroupUsersList) GetGameLimit() OptBool {
return s.GameLimit
}
// GetCoin returns the value of Coin.
func (s *GroupUsersList) GetCoin() OptInt {
return s.Coin
@@ -3104,6 +3171,16 @@ func (s *GroupUsersList) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetGameStory sets the value of GameStory.
func (s *GroupUsersList) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetGameLimit sets the value of GameLimit.
func (s *GroupUsersList) SetGameLimit(val OptBool) {
s.GameLimit = val
}
// SetCoin sets the value of Coin.
func (s *GroupUsersList) SetCoin(val OptInt) {
s.Coin = val
@@ -3706,6 +3783,8 @@ type MaOwnerRead struct {
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
GameStory OptInt `json:"game_story"`
GameLimit OptBool `json:"game_limit"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@@ -3946,6 +4025,16 @@ func (s *MaOwnerRead) GetGameExp() OptInt {
return s.GameExp
}
// GetGameStory returns the value of GameStory.
func (s *MaOwnerRead) GetGameStory() OptInt {
return s.GameStory
}
// GetGameLimit returns the value of GameLimit.
func (s *MaOwnerRead) GetGameLimit() OptBool {
return s.GameLimit
}
// GetCoin returns the value of Coin.
func (s *MaOwnerRead) GetCoin() OptInt {
return s.Coin
@@ -4196,6 +4285,16 @@ func (s *MaOwnerRead) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetGameStory sets the value of GameStory.
func (s *MaOwnerRead) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetGameLimit sets the value of GameLimit.
func (s *MaOwnerRead) SetGameLimit(val OptBool) {
s.GameLimit = val
}
// SetCoin sets the value of Coin.
func (s *MaOwnerRead) SetCoin(val OptInt) {
s.Coin = val
@@ -5492,6 +5591,8 @@ type SevOwnerRead struct {
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
GameStory OptInt `json:"game_story"`
GameLimit OptBool `json:"game_limit"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@@ -5732,6 +5833,16 @@ func (s *SevOwnerRead) GetGameExp() OptInt {
return s.GameExp
}
// GetGameStory returns the value of GameStory.
func (s *SevOwnerRead) GetGameStory() OptInt {
return s.GameStory
}
// GetGameLimit returns the value of GameLimit.
func (s *SevOwnerRead) GetGameLimit() OptBool {
return s.GameLimit
}
// GetCoin returns the value of Coin.
func (s *SevOwnerRead) GetCoin() OptInt {
return s.Coin
@@ -5982,6 +6093,16 @@ func (s *SevOwnerRead) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetGameStory sets the value of GameStory.
func (s *SevOwnerRead) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetGameLimit sets the value of GameLimit.
func (s *SevOwnerRead) SetGameLimit(val OptBool) {
s.GameLimit = val
}
// SetCoin sets the value of Coin.
func (s *SevOwnerRead) SetCoin(val OptInt) {
s.Coin = val
@@ -6275,6 +6396,7 @@ type UeCreate struct {
GameLv OptString `json:"game_lv"`
GameExp OptString `json:"game_exp"`
GameID OptString `json:"game_id"`
GameStory OptInt `json:"game_story"`
CreatedAt OptDateTime `json:"created_at"`
}
@@ -6378,6 +6500,11 @@ func (s *UeCreate) GetGameID() OptString {
return s.GameID
}
// GetGameStory returns the value of GameStory.
func (s *UeCreate) GetGameStory() OptInt {
return s.GameStory
}
// GetCreatedAt returns the value of CreatedAt.
func (s *UeCreate) GetCreatedAt() OptDateTime {
return s.CreatedAt
@@ -6483,6 +6610,11 @@ func (s *UeCreate) SetGameID(val OptString) {
s.GameID = val
}
// SetGameStory sets the value of GameStory.
func (s *UeCreate) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *UeCreate) SetCreatedAt(val OptDateTime) {
s.CreatedAt = val
@@ -6512,6 +6644,7 @@ type UeList struct {
GameLv OptString `json:"game_lv"`
GameExp OptString `json:"game_exp"`
GameID OptString `json:"game_id"`
GameStory OptInt `json:"game_story"`
CreatedAt OptDateTime `json:"created_at"`
}
@@ -6615,6 +6748,11 @@ func (s *UeList) GetGameID() OptString {
return s.GameID
}
// GetGameStory returns the value of GameStory.
func (s *UeList) GetGameStory() OptInt {
return s.GameStory
}
// GetCreatedAt returns the value of CreatedAt.
func (s *UeList) GetCreatedAt() OptDateTime {
return s.CreatedAt
@@ -6720,6 +6858,11 @@ func (s *UeList) SetGameID(val OptString) {
s.GameID = val
}
// SetGameStory sets the value of GameStory.
func (s *UeList) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *UeList) SetCreatedAt(val OptDateTime) {
s.CreatedAt = val
@@ -6774,6 +6917,8 @@ type UeOwnerRead struct {
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
GameStory OptInt `json:"game_story"`
GameLimit OptBool `json:"game_limit"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@@ -7014,6 +7159,16 @@ func (s *UeOwnerRead) GetGameExp() OptInt {
return s.GameExp
}
// GetGameStory returns the value of GameStory.
func (s *UeOwnerRead) GetGameStory() OptInt {
return s.GameStory
}
// GetGameLimit returns the value of GameLimit.
func (s *UeOwnerRead) GetGameLimit() OptBool {
return s.GameLimit
}
// GetCoin returns the value of Coin.
func (s *UeOwnerRead) GetCoin() OptInt {
return s.Coin
@@ -7264,6 +7419,16 @@ func (s *UeOwnerRead) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetGameStory sets the value of GameStory.
func (s *UeOwnerRead) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetGameLimit sets the value of GameLimit.
func (s *UeOwnerRead) SetGameLimit(val OptBool) {
s.GameLimit = val
}
// SetCoin sets the value of Coin.
func (s *UeOwnerRead) SetCoin(val OptInt) {
s.Coin = val
@@ -7303,6 +7468,7 @@ type UeRead struct {
GameLv OptString `json:"game_lv"`
GameExp OptString `json:"game_exp"`
GameID OptString `json:"game_id"`
GameStory OptInt `json:"game_story"`
CreatedAt OptDateTime `json:"created_at"`
}
@@ -7406,6 +7572,11 @@ func (s *UeRead) GetGameID() OptString {
return s.GameID
}
// GetGameStory returns the value of GameStory.
func (s *UeRead) GetGameStory() OptInt {
return s.GameStory
}
// GetCreatedAt returns the value of CreatedAt.
func (s *UeRead) GetCreatedAt() OptDateTime {
return s.CreatedAt
@@ -7511,6 +7682,11 @@ func (s *UeRead) SetGameID(val OptString) {
s.GameID = val
}
// SetGameStory sets the value of GameStory.
func (s *UeRead) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *UeRead) SetCreatedAt(val OptDateTime) {
s.CreatedAt = val
@@ -7540,6 +7716,7 @@ type UeUpdate struct {
GameLv OptString `json:"game_lv"`
GameExp OptString `json:"game_exp"`
GameID OptString `json:"game_id"`
GameStory OptInt `json:"game_story"`
CreatedAt OptDateTime `json:"created_at"`
}
@@ -7643,6 +7820,11 @@ func (s *UeUpdate) GetGameID() OptString {
return s.GameID
}
// GetGameStory returns the value of GameStory.
func (s *UeUpdate) GetGameStory() OptInt {
return s.GameStory
}
// GetCreatedAt returns the value of CreatedAt.
func (s *UeUpdate) GetCreatedAt() OptDateTime {
return s.CreatedAt
@@ -7748,6 +7930,11 @@ func (s *UeUpdate) SetGameID(val OptString) {
s.GameID = val
}
// SetGameStory sets the value of GameStory.
func (s *UeUpdate) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *UeUpdate) SetCreatedAt(val OptDateTime) {
s.CreatedAt = val
@@ -8272,6 +8459,7 @@ type UpdateUeReq struct {
GameLv OptString `json:"game_lv"`
GameExp OptString `json:"game_exp"`
GameID OptString `json:"game_id"`
GameStory OptInt `json:"game_story"`
Owner OptInt `json:"owner"`
}
@@ -8375,6 +8563,11 @@ func (s *UpdateUeReq) GetGameID() OptString {
return s.GameID
}
// GetGameStory returns the value of GameStory.
func (s *UpdateUeReq) GetGameStory() OptInt {
return s.GameStory
}
// GetOwner returns the value of Owner.
func (s *UpdateUeReq) GetOwner() OptInt {
return s.Owner
@@ -8480,6 +8673,11 @@ func (s *UpdateUeReq) SetGameID(val OptString) {
s.GameID = val
}
// SetGameStory sets the value of GameStory.
func (s *UpdateUeReq) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetOwner sets the value of Owner.
func (s *UpdateUeReq) SetOwner(val OptInt) {
s.Owner = val
@@ -8531,6 +8729,8 @@ type UpdateUserReq struct {
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
GameStory OptInt `json:"game_story"`
GameLimit OptBool `json:"game_limit"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@@ -8765,6 +8965,16 @@ func (s *UpdateUserReq) GetGameExp() OptInt {
return s.GameExp
}
// GetGameStory returns the value of GameStory.
func (s *UpdateUserReq) GetGameStory() OptInt {
return s.GameStory
}
// GetGameLimit returns the value of GameLimit.
func (s *UpdateUserReq) GetGameLimit() OptBool {
return s.GameLimit
}
// GetCoin returns the value of Coin.
func (s *UpdateUserReq) GetCoin() OptInt {
return s.Coin
@@ -9025,6 +9235,16 @@ func (s *UpdateUserReq) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetGameStory sets the value of GameStory.
func (s *UpdateUserReq) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetGameLimit sets the value of GameLimit.
func (s *UpdateUserReq) SetGameLimit(val OptBool) {
s.GameLimit = val
}
// SetCoin sets the value of Coin.
func (s *UpdateUserReq) SetCoin(val OptInt) {
s.Coin = val
@@ -9212,6 +9432,8 @@ type UserCreate struct {
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
GameStory OptInt `json:"game_story"`
GameLimit OptBool `json:"game_limit"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@@ -9452,6 +9674,16 @@ func (s *UserCreate) GetGameExp() OptInt {
return s.GameExp
}
// GetGameStory returns the value of GameStory.
func (s *UserCreate) GetGameStory() OptInt {
return s.GameStory
}
// GetGameLimit returns the value of GameLimit.
func (s *UserCreate) GetGameLimit() OptBool {
return s.GameLimit
}
// GetCoin returns the value of Coin.
func (s *UserCreate) GetCoin() OptInt {
return s.Coin
@@ -9702,6 +9934,16 @@ func (s *UserCreate) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetGameStory sets the value of GameStory.
func (s *UserCreate) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetGameLimit sets the value of GameLimit.
func (s *UserCreate) SetGameLimit(val OptBool) {
s.GameLimit = val
}
// SetCoin sets the value of Coin.
func (s *UserCreate) SetCoin(val OptInt) {
s.Coin = val
@@ -9768,6 +10010,8 @@ type UserList struct {
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
GameStory OptInt `json:"game_story"`
GameLimit OptBool `json:"game_limit"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@@ -10008,6 +10252,16 @@ func (s *UserList) GetGameExp() OptInt {
return s.GameExp
}
// GetGameStory returns the value of GameStory.
func (s *UserList) GetGameStory() OptInt {
return s.GameStory
}
// GetGameLimit returns the value of GameLimit.
func (s *UserList) GetGameLimit() OptBool {
return s.GameLimit
}
// GetCoin returns the value of Coin.
func (s *UserList) GetCoin() OptInt {
return s.Coin
@@ -10258,6 +10512,16 @@ func (s *UserList) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetGameStory sets the value of GameStory.
func (s *UserList) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetGameLimit sets the value of GameLimit.
func (s *UserList) SetGameLimit(val OptBool) {
s.GameLimit = val
}
// SetCoin sets the value of Coin.
func (s *UserList) SetCoin(val OptInt) {
s.Coin = val
@@ -10568,6 +10832,8 @@ type UserRead struct {
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
GameStory OptInt `json:"game_story"`
GameLimit OptBool `json:"game_limit"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@@ -10808,6 +11074,16 @@ func (s *UserRead) GetGameExp() OptInt {
return s.GameExp
}
// GetGameStory returns the value of GameStory.
func (s *UserRead) GetGameStory() OptInt {
return s.GameStory
}
// GetGameLimit returns the value of GameLimit.
func (s *UserRead) GetGameLimit() OptBool {
return s.GameLimit
}
// GetCoin returns the value of Coin.
func (s *UserRead) GetCoin() OptInt {
return s.Coin
@@ -11058,6 +11334,16 @@ func (s *UserRead) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetGameStory sets the value of GameStory.
func (s *UserRead) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetGameLimit sets the value of GameLimit.
func (s *UserRead) SetGameLimit(val OptBool) {
s.GameLimit = val
}
// SetCoin sets the value of Coin.
func (s *UserRead) SetCoin(val OptInt) {
s.Coin = val
@@ -11222,6 +11508,7 @@ type UserUeList struct {
GameLv OptString `json:"game_lv"`
GameExp OptString `json:"game_exp"`
GameID OptString `json:"game_id"`
GameStory OptInt `json:"game_story"`
CreatedAt OptDateTime `json:"created_at"`
}
@@ -11325,6 +11612,11 @@ func (s *UserUeList) GetGameID() OptString {
return s.GameID
}
// GetGameStory returns the value of GameStory.
func (s *UserUeList) GetGameStory() OptInt {
return s.GameStory
}
// GetCreatedAt returns the value of CreatedAt.
func (s *UserUeList) GetCreatedAt() OptDateTime {
return s.CreatedAt
@@ -11430,6 +11722,11 @@ func (s *UserUeList) SetGameID(val OptString) {
s.GameID = val
}
// SetGameStory sets the value of GameStory.
func (s *UserUeList) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetCreatedAt sets the value of CreatedAt.
func (s *UserUeList) SetCreatedAt(val OptDateTime) {
s.CreatedAt = val
@@ -11484,6 +11781,8 @@ type UserUpdate struct {
GameAccount OptBool `json:"game_account"`
GameLv OptInt `json:"game_lv"`
GameExp OptInt `json:"game_exp"`
GameStory OptInt `json:"game_story"`
GameLimit OptBool `json:"game_limit"`
Coin OptInt `json:"coin"`
CoinOpen OptBool `json:"coin_open"`
CoinAt OptDateTime `json:"coin_at"`
@@ -11724,6 +12023,16 @@ func (s *UserUpdate) GetGameExp() OptInt {
return s.GameExp
}
// GetGameStory returns the value of GameStory.
func (s *UserUpdate) GetGameStory() OptInt {
return s.GameStory
}
// GetGameLimit returns the value of GameLimit.
func (s *UserUpdate) GetGameLimit() OptBool {
return s.GameLimit
}
// GetCoin returns the value of Coin.
func (s *UserUpdate) GetCoin() OptInt {
return s.Coin
@@ -11974,6 +12283,16 @@ func (s *UserUpdate) SetGameExp(val OptInt) {
s.GameExp = val
}
// SetGameStory sets the value of GameStory.
func (s *UserUpdate) SetGameStory(val OptInt) {
s.GameStory = val
}
// SetGameLimit sets the value of GameLimit.
func (s *UserUpdate) SetGameLimit(val OptBool) {
s.GameLimit = val
}
// SetCoin sets the value of Coin.
func (s *UserUpdate) SetCoin(val OptInt) {
s.Coin = val

View File

@@ -1174,6 +1174,9 @@ func (h *OgentHandler) CreateUe(ctx context.Context, req *CreateUeReq) (CreateUe
if v, ok := req.GameID.Get(); ok {
b.SetGameID(v)
}
if v, ok := req.GameStory.Get(); ok {
b.SetGameStory(v)
}
// Add all edges.
//b.SetOwnerID(req.Owner)
@@ -1303,6 +1306,10 @@ func (h *OgentHandler) UpdateUe(ctx context.Context, req *UpdateUeReq, params Up
if v, ok := req.GameID.Get(); ok {
b.SetGameID(v)
}
if v, ok := req.GameStory.Get(); ok {
b.SetGameStory(v)
}
// Add all edges.
//if v, ok := req.Owner.Get(); ok {
// b.SetOwnerID(v)
@@ -1585,6 +1592,12 @@ func (h *OgentHandler) CreateUser(ctx context.Context, req *CreateUserReq) (Crea
if v, ok := req.GameExp.Get(); ok {
b.SetGameExp(v)
}
if v, ok := req.GameStory.Get(); ok {
b.SetGameStory(v)
}
if v, ok := req.GameLimit.Get(); ok {
b.SetGameLimit(v)
}
if v, ok := req.Coin.Get(); ok {
b.SetCoin(v)
}
@@ -1797,6 +1810,12 @@ func (h *OgentHandler) UpdateUser(ctx context.Context, req *UpdateUserReq, param
if v, ok := req.GameExp.Get(); ok {
b.SetGameExp(v)
}
if v, ok := req.GameStory.Get(); ok {
b.SetGameStory(v)
}
if v, ok := req.GameLimit.Get(); ok {
b.SetGameLimit(v)
}
if v, ok := req.Coin.Get(); ok {
b.SetCoin(v)
}

View File

@@ -196,6 +196,8 @@ func NewCardOwnerRead(e *ent.User) *CardOwnerRead {
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.GameStory = NewOptInt(e.GameStory)
ret.GameLimit = NewOptBool(e.GameLimit)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@@ -384,6 +386,8 @@ func NewGroupUsersList(e *ent.User) *GroupUsersList {
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.GameStory = NewOptInt(e.GameStory)
ret.GameLimit = NewOptBool(e.GameLimit)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@@ -652,6 +656,8 @@ func NewMaOwnerRead(e *ent.User) *MaOwnerRead {
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.GameStory = NewOptInt(e.GameStory)
ret.GameLimit = NewOptBool(e.GameLimit)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@@ -876,6 +882,8 @@ func NewSevOwnerRead(e *ent.User) *SevOwnerRead {
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.GameStory = NewOptInt(e.GameStory)
ret.GameLimit = NewOptBool(e.GameLimit)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@@ -925,6 +933,7 @@ func NewUeCreate(e *ent.Ue) *UeCreate {
ret.GameLv = NewOptString(e.GameLv)
ret.GameExp = NewOptString(e.GameExp)
ret.GameID = NewOptString(e.GameID)
ret.GameStory = NewOptInt(e.GameStory)
ret.CreatedAt = NewOptDateTime(e.CreatedAt)
return &ret
}
@@ -972,6 +981,7 @@ func NewUeList(e *ent.Ue) *UeList {
ret.GameLv = NewOptString(e.GameLv)
ret.GameExp = NewOptString(e.GameExp)
ret.GameID = NewOptString(e.GameID)
ret.GameStory = NewOptInt(e.GameStory)
ret.CreatedAt = NewOptDateTime(e.CreatedAt)
return &ret
}
@@ -1019,6 +1029,7 @@ func NewUeRead(e *ent.Ue) *UeRead {
ret.GameLv = NewOptString(e.GameLv)
ret.GameExp = NewOptString(e.GameExp)
ret.GameID = NewOptString(e.GameID)
ret.GameStory = NewOptInt(e.GameStory)
ret.CreatedAt = NewOptDateTime(e.CreatedAt)
return &ret
}
@@ -1066,6 +1077,7 @@ func NewUeUpdate(e *ent.Ue) *UeUpdate {
ret.GameLv = NewOptString(e.GameLv)
ret.GameExp = NewOptString(e.GameExp)
ret.GameID = NewOptString(e.GameID)
ret.GameStory = NewOptInt(e.GameStory)
ret.CreatedAt = NewOptDateTime(e.CreatedAt)
return &ret
}
@@ -1140,6 +1152,8 @@ func NewUeOwnerRead(e *ent.User) *UeOwnerRead {
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.GameStory = NewOptInt(e.GameStory)
ret.GameLimit = NewOptBool(e.GameLimit)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@@ -1216,6 +1230,8 @@ func NewUserCreate(e *ent.User) *UserCreate {
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.GameStory = NewOptInt(e.GameStory)
ret.GameLimit = NewOptBool(e.GameLimit)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@@ -1292,6 +1308,8 @@ func NewUserList(e *ent.User) *UserList {
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.GameStory = NewOptInt(e.GameStory)
ret.GameLimit = NewOptBool(e.GameLimit)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@@ -1368,6 +1386,8 @@ func NewUserRead(e *ent.User) *UserRead {
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.GameStory = NewOptInt(e.GameStory)
ret.GameLimit = NewOptBool(e.GameLimit)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@@ -1444,6 +1464,8 @@ func NewUserUpdate(e *ent.User) *UserUpdate {
ret.GameAccount = NewOptBool(e.GameAccount)
ret.GameLv = NewOptInt(e.GameLv)
ret.GameExp = NewOptInt(e.GameExp)
ret.GameStory = NewOptInt(e.GameStory)
ret.GameLimit = NewOptBool(e.GameLimit)
ret.Coin = NewOptInt(e.Coin)
ret.CoinOpen = NewOptBool(e.CoinOpen)
ret.CoinAt = NewOptDateTime(e.CoinAt)
@@ -1613,6 +1635,7 @@ func NewUserUeList(e *ent.Ue) *UserUeList {
ret.GameLv = NewOptString(e.GameLv)
ret.GameExp = NewOptString(e.GameExp)
ret.GameID = NewOptString(e.GameID)
ret.GameStory = NewOptInt(e.GameStory)
ret.CreatedAt = NewOptDateTime(e.CreatedAt)
return &ret
}