add planet
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -645,7 +645,7 @@ func decodeListCardParams(args [0]string, r *http.Request) (params ListCardParam
|
||||
MinSet: true,
|
||||
Min: 1,
|
||||
MaxSet: true,
|
||||
Max: 5000,
|
||||
Max: 10000,
|
||||
MinExclusive: false,
|
||||
MaxExclusive: false,
|
||||
MultipleOfSet: false,
|
||||
@ -810,7 +810,7 @@ func decodeListGroupParams(args [0]string, r *http.Request) (params ListGroupPar
|
||||
MinSet: true,
|
||||
Min: 1,
|
||||
MaxSet: true,
|
||||
Max: 5000,
|
||||
Max: 10000,
|
||||
MinExclusive: false,
|
||||
MaxExclusive: false,
|
||||
MultipleOfSet: false,
|
||||
@ -1142,7 +1142,7 @@ func decodeListMaParams(args [0]string, r *http.Request) (params ListMaParams, _
|
||||
MinSet: true,
|
||||
Min: 1,
|
||||
MaxSet: true,
|
||||
Max: 5000,
|
||||
Max: 10000,
|
||||
MinExclusive: false,
|
||||
MaxExclusive: false,
|
||||
MultipleOfSet: false,
|
||||
@ -1307,7 +1307,7 @@ func decodeListSevParams(args [0]string, r *http.Request) (params ListSevParams,
|
||||
MinSet: true,
|
||||
Min: 1,
|
||||
MaxSet: true,
|
||||
Max: 5000,
|
||||
Max: 10000,
|
||||
MinExclusive: false,
|
||||
MaxExclusive: false,
|
||||
MultipleOfSet: false,
|
||||
@ -1472,7 +1472,7 @@ func decodeListUeParams(args [0]string, r *http.Request) (params ListUeParams, _
|
||||
MinSet: true,
|
||||
Min: 1,
|
||||
MaxSet: true,
|
||||
Max: 5000,
|
||||
Max: 10000,
|
||||
MinExclusive: false,
|
||||
MaxExclusive: false,
|
||||
MultipleOfSet: false,
|
||||
@ -1637,7 +1637,7 @@ func decodeListUserParams(args [0]string, r *http.Request) (params ListUserParam
|
||||
MinSet: true,
|
||||
Min: 1,
|
||||
MaxSet: true,
|
||||
Max: 5000,
|
||||
Max: 10000,
|
||||
MinExclusive: false,
|
||||
MaxExclusive: false,
|
||||
MultipleOfSet: false,
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1613,6 +1613,31 @@ func (h *OgentHandler) CreateUser(ctx context.Context, req *CreateUserReq) (Crea
|
||||
if v, ok := req.CoinAt.Get(); ok {
|
||||
b.SetCoinAt(v)
|
||||
}
|
||||
if v, ok := req.Planet.Get(); ok {
|
||||
b.SetPlanet(v)
|
||||
}
|
||||
if v, ok := req.PlanetAt.Get(); ok {
|
||||
b.SetPlanetAt(v)
|
||||
}
|
||||
if v, ok := req.Login.Get(); ok {
|
||||
b.SetLogin(v)
|
||||
}
|
||||
if v, ok := req.LoginAt.Get(); ok {
|
||||
b.SetLoginAt(v)
|
||||
}
|
||||
if v, ok := req.LocationX.Get(); ok {
|
||||
b.SetLocationX(v)
|
||||
}
|
||||
if v, ok := req.LocationY.Get(); ok {
|
||||
b.SetLocationY(v)
|
||||
}
|
||||
if v, ok := req.LocationZ.Get(); ok {
|
||||
b.SetLocationZ(v)
|
||||
}
|
||||
if v, ok := req.LocationN.Get(); ok {
|
||||
b.SetLocationN(v)
|
||||
}
|
||||
|
||||
// Add all edges.
|
||||
b.AddCardIDs(req.Card...)
|
||||
b.AddUeIDs(req.Ue...)
|
||||
@ -1831,6 +1856,31 @@ func (h *OgentHandler) UpdateUser(ctx context.Context, req *UpdateUserReq, param
|
||||
if v, ok := req.CoinAt.Get(); ok {
|
||||
b.SetCoinAt(v)
|
||||
}
|
||||
if v, ok := req.Planet.Get(); ok {
|
||||
b.SetPlanet(v)
|
||||
}
|
||||
if v, ok := req.PlanetAt.Get(); ok {
|
||||
b.SetPlanetAt(v)
|
||||
}
|
||||
if v, ok := req.Login.Get(); ok {
|
||||
b.SetLogin(v)
|
||||
}
|
||||
if v, ok := req.LoginAt.Get(); ok {
|
||||
b.SetLoginAt(v)
|
||||
}
|
||||
if v, ok := req.LocationX.Get(); ok {
|
||||
b.SetLocationX(v)
|
||||
}
|
||||
if v, ok := req.LocationY.Get(); ok {
|
||||
b.SetLocationY(v)
|
||||
}
|
||||
if v, ok := req.LocationZ.Get(); ok {
|
||||
b.SetLocationZ(v)
|
||||
}
|
||||
if v, ok := req.LocationN.Get(); ok {
|
||||
b.SetLocationN(v)
|
||||
}
|
||||
|
||||
// Add all edges.
|
||||
if req.Card != nil {
|
||||
b.ClearCard().AddCardIDs(req.Card...)
|
||||
|
@ -201,6 +201,14 @@ func NewCardOwnerRead(e *ent.User) *CardOwnerRead {
|
||||
ret.Coin = NewOptInt(e.Coin)
|
||||
ret.CoinOpen = NewOptBool(e.CoinOpen)
|
||||
ret.CoinAt = NewOptDateTime(e.CoinAt)
|
||||
ret.Planet = NewOptInt(e.Planet)
|
||||
ret.PlanetAt = NewOptDateTime(e.PlanetAt)
|
||||
ret.Login = NewOptBool(e.Login)
|
||||
ret.LoginAt = NewOptDateTime(e.LoginAt)
|
||||
ret.LocationX = NewOptInt(e.LocationX)
|
||||
ret.LocationY = NewOptInt(e.LocationY)
|
||||
ret.LocationZ = NewOptInt(e.LocationZ)
|
||||
ret.LocationN = NewOptInt(e.LocationN)
|
||||
return &ret
|
||||
}
|
||||
|
||||
@ -391,6 +399,14 @@ func NewGroupUsersList(e *ent.User) *GroupUsersList {
|
||||
ret.Coin = NewOptInt(e.Coin)
|
||||
ret.CoinOpen = NewOptBool(e.CoinOpen)
|
||||
ret.CoinAt = NewOptDateTime(e.CoinAt)
|
||||
ret.Planet = NewOptInt(e.Planet)
|
||||
ret.PlanetAt = NewOptDateTime(e.PlanetAt)
|
||||
ret.Login = NewOptBool(e.Login)
|
||||
ret.LoginAt = NewOptDateTime(e.LoginAt)
|
||||
ret.LocationX = NewOptInt(e.LocationX)
|
||||
ret.LocationY = NewOptInt(e.LocationY)
|
||||
ret.LocationZ = NewOptInt(e.LocationZ)
|
||||
ret.LocationN = NewOptInt(e.LocationN)
|
||||
return &ret
|
||||
}
|
||||
|
||||
@ -661,6 +677,14 @@ func NewMaOwnerRead(e *ent.User) *MaOwnerRead {
|
||||
ret.Coin = NewOptInt(e.Coin)
|
||||
ret.CoinOpen = NewOptBool(e.CoinOpen)
|
||||
ret.CoinAt = NewOptDateTime(e.CoinAt)
|
||||
ret.Planet = NewOptInt(e.Planet)
|
||||
ret.PlanetAt = NewOptDateTime(e.PlanetAt)
|
||||
ret.Login = NewOptBool(e.Login)
|
||||
ret.LoginAt = NewOptDateTime(e.LoginAt)
|
||||
ret.LocationX = NewOptInt(e.LocationX)
|
||||
ret.LocationY = NewOptInt(e.LocationY)
|
||||
ret.LocationZ = NewOptInt(e.LocationZ)
|
||||
ret.LocationN = NewOptInt(e.LocationN)
|
||||
return &ret
|
||||
}
|
||||
|
||||
@ -887,6 +911,14 @@ func NewSevOwnerRead(e *ent.User) *SevOwnerRead {
|
||||
ret.Coin = NewOptInt(e.Coin)
|
||||
ret.CoinOpen = NewOptBool(e.CoinOpen)
|
||||
ret.CoinAt = NewOptDateTime(e.CoinAt)
|
||||
ret.Planet = NewOptInt(e.Planet)
|
||||
ret.PlanetAt = NewOptDateTime(e.PlanetAt)
|
||||
ret.Login = NewOptBool(e.Login)
|
||||
ret.LoginAt = NewOptDateTime(e.LoginAt)
|
||||
ret.LocationX = NewOptInt(e.LocationX)
|
||||
ret.LocationY = NewOptInt(e.LocationY)
|
||||
ret.LocationZ = NewOptInt(e.LocationZ)
|
||||
ret.LocationN = NewOptInt(e.LocationN)
|
||||
return &ret
|
||||
}
|
||||
|
||||
@ -1161,6 +1193,14 @@ func NewUeOwnerRead(e *ent.User) *UeOwnerRead {
|
||||
ret.Coin = NewOptInt(e.Coin)
|
||||
ret.CoinOpen = NewOptBool(e.CoinOpen)
|
||||
ret.CoinAt = NewOptDateTime(e.CoinAt)
|
||||
ret.Planet = NewOptInt(e.Planet)
|
||||
ret.PlanetAt = NewOptDateTime(e.PlanetAt)
|
||||
ret.Login = NewOptBool(e.Login)
|
||||
ret.LoginAt = NewOptDateTime(e.LoginAt)
|
||||
ret.LocationX = NewOptInt(e.LocationX)
|
||||
ret.LocationY = NewOptInt(e.LocationY)
|
||||
ret.LocationZ = NewOptInt(e.LocationZ)
|
||||
ret.LocationN = NewOptInt(e.LocationN)
|
||||
return &ret
|
||||
}
|
||||
|
||||
@ -1239,6 +1279,14 @@ func NewUserCreate(e *ent.User) *UserCreate {
|
||||
ret.Coin = NewOptInt(e.Coin)
|
||||
ret.CoinOpen = NewOptBool(e.CoinOpen)
|
||||
ret.CoinAt = NewOptDateTime(e.CoinAt)
|
||||
ret.Planet = NewOptInt(e.Planet)
|
||||
ret.PlanetAt = NewOptDateTime(e.PlanetAt)
|
||||
ret.Login = NewOptBool(e.Login)
|
||||
ret.LoginAt = NewOptDateTime(e.LoginAt)
|
||||
ret.LocationX = NewOptInt(e.LocationX)
|
||||
ret.LocationY = NewOptInt(e.LocationY)
|
||||
ret.LocationZ = NewOptInt(e.LocationZ)
|
||||
ret.LocationN = NewOptInt(e.LocationN)
|
||||
return &ret
|
||||
}
|
||||
|
||||
@ -1317,6 +1365,14 @@ func NewUserList(e *ent.User) *UserList {
|
||||
ret.Coin = NewOptInt(e.Coin)
|
||||
ret.CoinOpen = NewOptBool(e.CoinOpen)
|
||||
ret.CoinAt = NewOptDateTime(e.CoinAt)
|
||||
ret.Planet = NewOptInt(e.Planet)
|
||||
ret.PlanetAt = NewOptDateTime(e.PlanetAt)
|
||||
ret.Login = NewOptBool(e.Login)
|
||||
ret.LoginAt = NewOptDateTime(e.LoginAt)
|
||||
ret.LocationX = NewOptInt(e.LocationX)
|
||||
ret.LocationY = NewOptInt(e.LocationY)
|
||||
ret.LocationZ = NewOptInt(e.LocationZ)
|
||||
ret.LocationN = NewOptInt(e.LocationN)
|
||||
return &ret
|
||||
}
|
||||
|
||||
@ -1395,6 +1451,14 @@ func NewUserRead(e *ent.User) *UserRead {
|
||||
ret.Coin = NewOptInt(e.Coin)
|
||||
ret.CoinOpen = NewOptBool(e.CoinOpen)
|
||||
ret.CoinAt = NewOptDateTime(e.CoinAt)
|
||||
ret.Planet = NewOptInt(e.Planet)
|
||||
ret.PlanetAt = NewOptDateTime(e.PlanetAt)
|
||||
ret.Login = NewOptBool(e.Login)
|
||||
ret.LoginAt = NewOptDateTime(e.LoginAt)
|
||||
ret.LocationX = NewOptInt(e.LocationX)
|
||||
ret.LocationY = NewOptInt(e.LocationY)
|
||||
ret.LocationZ = NewOptInt(e.LocationZ)
|
||||
ret.LocationN = NewOptInt(e.LocationN)
|
||||
return &ret
|
||||
}
|
||||
|
||||
@ -1473,6 +1537,14 @@ func NewUserUpdate(e *ent.User) *UserUpdate {
|
||||
ret.Coin = NewOptInt(e.Coin)
|
||||
ret.CoinOpen = NewOptBool(e.CoinOpen)
|
||||
ret.CoinAt = NewOptDateTime(e.CoinAt)
|
||||
ret.Planet = NewOptInt(e.Planet)
|
||||
ret.PlanetAt = NewOptDateTime(e.PlanetAt)
|
||||
ret.Login = NewOptBool(e.Login)
|
||||
ret.LoginAt = NewOptDateTime(e.LoginAt)
|
||||
ret.LocationX = NewOptInt(e.LocationX)
|
||||
ret.LocationY = NewOptInt(e.LocationY)
|
||||
ret.LocationZ = NewOptInt(e.LocationZ)
|
||||
ret.LocationN = NewOptInt(e.LocationN)
|
||||
return &ret
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user