add skill
This commit is contained in:
@@ -34,6 +34,12 @@ func (s *CardCreate) encodeFields(e *jx.Encoder) {
|
||||
s.Card.Encode(e)
|
||||
}
|
||||
}
|
||||
{
|
||||
if s.Skill.Set {
|
||||
e.FieldStart("skill")
|
||||
s.Skill.Encode(e)
|
||||
}
|
||||
}
|
||||
{
|
||||
if s.Status.Set {
|
||||
e.FieldStart("status")
|
||||
@@ -60,13 +66,14 @@ func (s *CardCreate) encodeFields(e *jx.Encoder) {
|
||||
}
|
||||
}
|
||||
|
||||
var jsonFieldsNameOfCardCreate = [6]string{
|
||||
var jsonFieldsNameOfCardCreate = [7]string{
|
||||
0: "id",
|
||||
1: "card",
|
||||
2: "status",
|
||||
3: "cp",
|
||||
4: "url",
|
||||
5: "created_at",
|
||||
2: "skill",
|
||||
3: "status",
|
||||
4: "cp",
|
||||
5: "url",
|
||||
6: "created_at",
|
||||
}
|
||||
|
||||
// Decode decodes CardCreate from json.
|
||||
@@ -100,6 +107,16 @@ func (s *CardCreate) Decode(d *jx.Decoder) error {
|
||||
}(); err != nil {
|
||||
return errors.Wrap(err, "decode field \"card\"")
|
||||
}
|
||||
case "skill":
|
||||
if err := func() error {
|
||||
s.Skill.Reset()
|
||||
if err := s.Skill.Decode(d); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}(); err != nil {
|
||||
return errors.Wrap(err, "decode field \"skill\"")
|
||||
}
|
||||
case "status":
|
||||
if err := func() error {
|
||||
s.Status.Reset()
|
||||
@@ -216,6 +233,12 @@ func (s *CardList) encodeFields(e *jx.Encoder) {
|
||||
s.Card.Encode(e)
|
||||
}
|
||||
}
|
||||
{
|
||||
if s.Skill.Set {
|
||||
e.FieldStart("skill")
|
||||
s.Skill.Encode(e)
|
||||
}
|
||||
}
|
||||
{
|
||||
if s.Status.Set {
|
||||
e.FieldStart("status")
|
||||
@@ -242,13 +265,14 @@ func (s *CardList) encodeFields(e *jx.Encoder) {
|
||||
}
|
||||
}
|
||||
|
||||
var jsonFieldsNameOfCardList = [6]string{
|
||||
var jsonFieldsNameOfCardList = [7]string{
|
||||
0: "id",
|
||||
1: "card",
|
||||
2: "status",
|
||||
3: "cp",
|
||||
4: "url",
|
||||
5: "created_at",
|
||||
2: "skill",
|
||||
3: "status",
|
||||
4: "cp",
|
||||
5: "url",
|
||||
6: "created_at",
|
||||
}
|
||||
|
||||
// Decode decodes CardList from json.
|
||||
@@ -282,6 +306,16 @@ func (s *CardList) Decode(d *jx.Decoder) error {
|
||||
}(); err != nil {
|
||||
return errors.Wrap(err, "decode field \"card\"")
|
||||
}
|
||||
case "skill":
|
||||
if err := func() error {
|
||||
s.Skill.Reset()
|
||||
if err := s.Skill.Decode(d); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}(); err != nil {
|
||||
return errors.Wrap(err, "decode field \"skill\"")
|
||||
}
|
||||
case "status":
|
||||
if err := func() error {
|
||||
s.Status.Reset()
|
||||
@@ -598,6 +632,12 @@ func (s *CardRead) encodeFields(e *jx.Encoder) {
|
||||
s.Card.Encode(e)
|
||||
}
|
||||
}
|
||||
{
|
||||
if s.Skill.Set {
|
||||
e.FieldStart("skill")
|
||||
s.Skill.Encode(e)
|
||||
}
|
||||
}
|
||||
{
|
||||
if s.Status.Set {
|
||||
e.FieldStart("status")
|
||||
@@ -624,13 +664,14 @@ func (s *CardRead) encodeFields(e *jx.Encoder) {
|
||||
}
|
||||
}
|
||||
|
||||
var jsonFieldsNameOfCardRead = [6]string{
|
||||
var jsonFieldsNameOfCardRead = [7]string{
|
||||
0: "id",
|
||||
1: "card",
|
||||
2: "status",
|
||||
3: "cp",
|
||||
4: "url",
|
||||
5: "created_at",
|
||||
2: "skill",
|
||||
3: "status",
|
||||
4: "cp",
|
||||
5: "url",
|
||||
6: "created_at",
|
||||
}
|
||||
|
||||
// Decode decodes CardRead from json.
|
||||
@@ -664,6 +705,16 @@ func (s *CardRead) Decode(d *jx.Decoder) error {
|
||||
}(); err != nil {
|
||||
return errors.Wrap(err, "decode field \"card\"")
|
||||
}
|
||||
case "skill":
|
||||
if err := func() error {
|
||||
s.Skill.Reset()
|
||||
if err := s.Skill.Decode(d); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}(); err != nil {
|
||||
return errors.Wrap(err, "decode field \"skill\"")
|
||||
}
|
||||
case "status":
|
||||
if err := func() error {
|
||||
s.Status.Reset()
|
||||
@@ -780,6 +831,12 @@ func (s *CardUpdate) encodeFields(e *jx.Encoder) {
|
||||
s.Card.Encode(e)
|
||||
}
|
||||
}
|
||||
{
|
||||
if s.Skill.Set {
|
||||
e.FieldStart("skill")
|
||||
s.Skill.Encode(e)
|
||||
}
|
||||
}
|
||||
{
|
||||
if s.Status.Set {
|
||||
e.FieldStart("status")
|
||||
@@ -806,13 +863,14 @@ func (s *CardUpdate) encodeFields(e *jx.Encoder) {
|
||||
}
|
||||
}
|
||||
|
||||
var jsonFieldsNameOfCardUpdate = [6]string{
|
||||
var jsonFieldsNameOfCardUpdate = [7]string{
|
||||
0: "id",
|
||||
1: "card",
|
||||
2: "status",
|
||||
3: "cp",
|
||||
4: "url",
|
||||
5: "created_at",
|
||||
2: "skill",
|
||||
3: "status",
|
||||
4: "cp",
|
||||
5: "url",
|
||||
6: "created_at",
|
||||
}
|
||||
|
||||
// Decode decodes CardUpdate from json.
|
||||
@@ -846,6 +904,16 @@ func (s *CardUpdate) Decode(d *jx.Decoder) error {
|
||||
}(); err != nil {
|
||||
return errors.Wrap(err, "decode field \"card\"")
|
||||
}
|
||||
case "skill":
|
||||
if err := func() error {
|
||||
s.Skill.Reset()
|
||||
if err := s.Skill.Decode(d); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}(); err != nil {
|
||||
return errors.Wrap(err, "decode field \"skill\"")
|
||||
}
|
||||
case "status":
|
||||
if err := func() error {
|
||||
s.Status.Reset()
|
||||
@@ -962,6 +1030,12 @@ func (s *CreateCardReq) encodeFields(e *jx.Encoder) {
|
||||
s.Card.Encode(e)
|
||||
}
|
||||
}
|
||||
{
|
||||
if s.Skill.Set {
|
||||
e.FieldStart("skill")
|
||||
s.Skill.Encode(e)
|
||||
}
|
||||
}
|
||||
{
|
||||
if s.Status.Set {
|
||||
e.FieldStart("status")
|
||||
@@ -993,14 +1067,15 @@ func (s *CreateCardReq) encodeFields(e *jx.Encoder) {
|
||||
}
|
||||
}
|
||||
|
||||
var jsonFieldsNameOfCreateCardReq = [7]string{
|
||||
var jsonFieldsNameOfCreateCardReq = [8]string{
|
||||
0: "password",
|
||||
1: "card",
|
||||
2: "status",
|
||||
3: "cp",
|
||||
4: "url",
|
||||
5: "created_at",
|
||||
6: "owner",
|
||||
2: "skill",
|
||||
3: "status",
|
||||
4: "cp",
|
||||
5: "url",
|
||||
6: "created_at",
|
||||
7: "owner",
|
||||
}
|
||||
|
||||
// Decode decodes CreateCardReq from json.
|
||||
@@ -1034,6 +1109,16 @@ func (s *CreateCardReq) Decode(d *jx.Decoder) error {
|
||||
}(); err != nil {
|
||||
return errors.Wrap(err, "decode field \"card\"")
|
||||
}
|
||||
case "skill":
|
||||
if err := func() error {
|
||||
s.Skill.Reset()
|
||||
if err := s.Skill.Decode(d); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}(); err != nil {
|
||||
return errors.Wrap(err, "decode field \"skill\"")
|
||||
}
|
||||
case "status":
|
||||
if err := func() error {
|
||||
s.Status.Reset()
|
||||
@@ -1075,7 +1160,7 @@ func (s *CreateCardReq) Decode(d *jx.Decoder) error {
|
||||
return errors.Wrap(err, "decode field \"created_at\"")
|
||||
}
|
||||
case "owner":
|
||||
requiredBitSet[0] |= 1 << 6
|
||||
requiredBitSet[0] |= 1 << 7
|
||||
if err := func() error {
|
||||
v, err := d.Int()
|
||||
s.Owner = int(v)
|
||||
@@ -1096,7 +1181,7 @@ func (s *CreateCardReq) Decode(d *jx.Decoder) error {
|
||||
// Validate required fields.
|
||||
var failures []validate.FieldError
|
||||
for i, mask := range [1]uint8{
|
||||
0b01000001,
|
||||
0b10000001,
|
||||
} {
|
||||
if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
|
||||
// Mask only required fields and check equality to mask using XOR.
|
||||
@@ -3130,6 +3215,12 @@ func (s *UpdateCardReq) Encode(e *jx.Encoder) {
|
||||
|
||||
// encodeFields encodes fields.
|
||||
func (s *UpdateCardReq) encodeFields(e *jx.Encoder) {
|
||||
{
|
||||
if s.Skill.Set {
|
||||
e.FieldStart("skill")
|
||||
s.Skill.Encode(e)
|
||||
}
|
||||
}
|
||||
{
|
||||
if s.Owner.Set {
|
||||
e.FieldStart("owner")
|
||||
@@ -3138,8 +3229,9 @@ func (s *UpdateCardReq) encodeFields(e *jx.Encoder) {
|
||||
}
|
||||
}
|
||||
|
||||
var jsonFieldsNameOfUpdateCardReq = [1]string{
|
||||
0: "owner",
|
||||
var jsonFieldsNameOfUpdateCardReq = [2]string{
|
||||
0: "skill",
|
||||
1: "owner",
|
||||
}
|
||||
|
||||
// Decode decodes UpdateCardReq from json.
|
||||
@@ -3150,6 +3242,16 @@ func (s *UpdateCardReq) Decode(d *jx.Decoder) error {
|
||||
|
||||
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
|
||||
switch string(k) {
|
||||
case "skill":
|
||||
if err := func() error {
|
||||
s.Skill.Reset()
|
||||
if err := s.Skill.Decode(d); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}(); err != nil {
|
||||
return errors.Wrap(err, "decode field \"skill\"")
|
||||
}
|
||||
case "owner":
|
||||
if err := func() error {
|
||||
s.Owner.Reset()
|
||||
@@ -3458,6 +3560,12 @@ func (s *UserCardList) encodeFields(e *jx.Encoder) {
|
||||
s.Card.Encode(e)
|
||||
}
|
||||
}
|
||||
{
|
||||
if s.Skill.Set {
|
||||
e.FieldStart("skill")
|
||||
s.Skill.Encode(e)
|
||||
}
|
||||
}
|
||||
{
|
||||
if s.Status.Set {
|
||||
e.FieldStart("status")
|
||||
@@ -3484,13 +3592,14 @@ func (s *UserCardList) encodeFields(e *jx.Encoder) {
|
||||
}
|
||||
}
|
||||
|
||||
var jsonFieldsNameOfUserCardList = [6]string{
|
||||
var jsonFieldsNameOfUserCardList = [7]string{
|
||||
0: "id",
|
||||
1: "card",
|
||||
2: "status",
|
||||
3: "cp",
|
||||
4: "url",
|
||||
5: "created_at",
|
||||
2: "skill",
|
||||
3: "status",
|
||||
4: "cp",
|
||||
5: "url",
|
||||
6: "created_at",
|
||||
}
|
||||
|
||||
// Decode decodes UserCardList from json.
|
||||
@@ -3524,6 +3633,16 @@ func (s *UserCardList) Decode(d *jx.Decoder) error {
|
||||
}(); err != nil {
|
||||
return errors.Wrap(err, "decode field \"card\"")
|
||||
}
|
||||
case "skill":
|
||||
if err := func() error {
|
||||
s.Skill.Reset()
|
||||
if err := s.Skill.Decode(d); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}(); err != nil {
|
||||
return errors.Wrap(err, "decode field \"skill\"")
|
||||
}
|
||||
case "status":
|
||||
if err := func() error {
|
||||
s.Status.Reset()
|
||||
|
@@ -12,6 +12,7 @@ import (
|
||||
type CardCreate struct {
|
||||
ID int `json:"id"`
|
||||
Card OptInt `json:"card"`
|
||||
Skill OptString `json:"skill"`
|
||||
Status OptString `json:"status"`
|
||||
Cp OptInt `json:"cp"`
|
||||
URL OptString `json:"url"`
|
||||
@@ -28,6 +29,11 @@ func (s *CardCreate) GetCard() OptInt {
|
||||
return s.Card
|
||||
}
|
||||
|
||||
// GetSkill returns the value of Skill.
|
||||
func (s *CardCreate) GetSkill() OptString {
|
||||
return s.Skill
|
||||
}
|
||||
|
||||
// GetStatus returns the value of Status.
|
||||
func (s *CardCreate) GetStatus() OptString {
|
||||
return s.Status
|
||||
@@ -58,6 +64,11 @@ func (s *CardCreate) SetCard(val OptInt) {
|
||||
s.Card = val
|
||||
}
|
||||
|
||||
// SetSkill sets the value of Skill.
|
||||
func (s *CardCreate) SetSkill(val OptString) {
|
||||
s.Skill = val
|
||||
}
|
||||
|
||||
// SetStatus sets the value of Status.
|
||||
func (s *CardCreate) SetStatus(val OptString) {
|
||||
s.Status = val
|
||||
@@ -84,6 +95,7 @@ func (*CardCreate) createCardRes() {}
|
||||
type CardList struct {
|
||||
ID int `json:"id"`
|
||||
Card OptInt `json:"card"`
|
||||
Skill OptString `json:"skill"`
|
||||
Status OptString `json:"status"`
|
||||
Cp OptInt `json:"cp"`
|
||||
URL OptString `json:"url"`
|
||||
@@ -100,6 +112,11 @@ func (s *CardList) GetCard() OptInt {
|
||||
return s.Card
|
||||
}
|
||||
|
||||
// GetSkill returns the value of Skill.
|
||||
func (s *CardList) GetSkill() OptString {
|
||||
return s.Skill
|
||||
}
|
||||
|
||||
// GetStatus returns the value of Status.
|
||||
func (s *CardList) GetStatus() OptString {
|
||||
return s.Status
|
||||
@@ -130,6 +147,11 @@ func (s *CardList) SetCard(val OptInt) {
|
||||
s.Card = val
|
||||
}
|
||||
|
||||
// SetSkill sets the value of Skill.
|
||||
func (s *CardList) SetSkill(val OptString) {
|
||||
s.Skill = val
|
||||
}
|
||||
|
||||
// SetStatus sets the value of Status.
|
||||
func (s *CardList) SetStatus(val OptString) {
|
||||
s.Status = val
|
||||
@@ -237,6 +259,7 @@ func (*CardOwnerRead) readCardOwnerRes() {}
|
||||
type CardRead struct {
|
||||
ID int `json:"id"`
|
||||
Card OptInt `json:"card"`
|
||||
Skill OptString `json:"skill"`
|
||||
Status OptString `json:"status"`
|
||||
Cp OptInt `json:"cp"`
|
||||
URL OptString `json:"url"`
|
||||
@@ -253,6 +276,11 @@ func (s *CardRead) GetCard() OptInt {
|
||||
return s.Card
|
||||
}
|
||||
|
||||
// GetSkill returns the value of Skill.
|
||||
func (s *CardRead) GetSkill() OptString {
|
||||
return s.Skill
|
||||
}
|
||||
|
||||
// GetStatus returns the value of Status.
|
||||
func (s *CardRead) GetStatus() OptString {
|
||||
return s.Status
|
||||
@@ -283,6 +311,11 @@ func (s *CardRead) SetCard(val OptInt) {
|
||||
s.Card = val
|
||||
}
|
||||
|
||||
// SetSkill sets the value of Skill.
|
||||
func (s *CardRead) SetSkill(val OptString) {
|
||||
s.Skill = val
|
||||
}
|
||||
|
||||
// SetStatus sets the value of Status.
|
||||
func (s *CardRead) SetStatus(val OptString) {
|
||||
s.Status = val
|
||||
@@ -309,6 +342,7 @@ func (*CardRead) readCardRes() {}
|
||||
type CardUpdate struct {
|
||||
ID int `json:"id"`
|
||||
Card OptInt `json:"card"`
|
||||
Skill OptString `json:"skill"`
|
||||
Status OptString `json:"status"`
|
||||
Cp OptInt `json:"cp"`
|
||||
URL OptString `json:"url"`
|
||||
@@ -325,6 +359,11 @@ func (s *CardUpdate) GetCard() OptInt {
|
||||
return s.Card
|
||||
}
|
||||
|
||||
// GetSkill returns the value of Skill.
|
||||
func (s *CardUpdate) GetSkill() OptString {
|
||||
return s.Skill
|
||||
}
|
||||
|
||||
// GetStatus returns the value of Status.
|
||||
func (s *CardUpdate) GetStatus() OptString {
|
||||
return s.Status
|
||||
@@ -355,6 +394,11 @@ func (s *CardUpdate) SetCard(val OptInt) {
|
||||
s.Card = val
|
||||
}
|
||||
|
||||
// SetSkill sets the value of Skill.
|
||||
func (s *CardUpdate) SetSkill(val OptString) {
|
||||
s.Skill = val
|
||||
}
|
||||
|
||||
// SetStatus sets the value of Status.
|
||||
func (s *CardUpdate) SetStatus(val OptString) {
|
||||
s.Status = val
|
||||
@@ -380,6 +424,7 @@ func (*CardUpdate) updateCardRes() {}
|
||||
type CreateCardReq struct {
|
||||
Password string `json:"password"`
|
||||
Card OptInt `json:"card"`
|
||||
Skill OptString `json:"skill"`
|
||||
Status OptString `json:"status"`
|
||||
Cp OptInt `json:"cp"`
|
||||
URL OptString `json:"url"`
|
||||
@@ -397,6 +442,11 @@ func (s *CreateCardReq) GetCard() OptInt {
|
||||
return s.Card
|
||||
}
|
||||
|
||||
// GetSkill returns the value of Skill.
|
||||
func (s *CreateCardReq) GetSkill() OptString {
|
||||
return s.Skill
|
||||
}
|
||||
|
||||
// GetStatus returns the value of Status.
|
||||
func (s *CreateCardReq) GetStatus() OptString {
|
||||
return s.Status
|
||||
@@ -432,6 +482,11 @@ func (s *CreateCardReq) SetCard(val OptInt) {
|
||||
s.Card = val
|
||||
}
|
||||
|
||||
// SetSkill sets the value of Skill.
|
||||
func (s *CreateCardReq) SetSkill(val OptString) {
|
||||
s.Skill = val
|
||||
}
|
||||
|
||||
// SetStatus sets the value of Status.
|
||||
func (s *CreateCardReq) SetStatus(val OptString) {
|
||||
s.Status = val
|
||||
@@ -1229,7 +1284,13 @@ func (*R500) updateGroupRes() {}
|
||||
func (*R500) updateUserRes() {}
|
||||
|
||||
type UpdateCardReq struct {
|
||||
Owner OptInt `json:"owner"`
|
||||
Skill OptString `json:"skill"`
|
||||
Owner OptInt `json:"owner"`
|
||||
}
|
||||
|
||||
// GetSkill returns the value of Skill.
|
||||
func (s *UpdateCardReq) GetSkill() OptString {
|
||||
return s.Skill
|
||||
}
|
||||
|
||||
// GetOwner returns the value of Owner.
|
||||
@@ -1237,6 +1298,11 @@ func (s *UpdateCardReq) GetOwner() OptInt {
|
||||
return s.Owner
|
||||
}
|
||||
|
||||
// SetSkill sets the value of Skill.
|
||||
func (s *UpdateCardReq) SetSkill(val OptString) {
|
||||
s.Skill = val
|
||||
}
|
||||
|
||||
// SetOwner sets the value of Owner.
|
||||
func (s *UpdateCardReq) SetOwner(val OptInt) {
|
||||
s.Owner = val
|
||||
@@ -1340,6 +1406,7 @@ func (s *UpdateUserReq) SetCard(val []int) {
|
||||
type UserCardList struct {
|
||||
ID int `json:"id"`
|
||||
Card OptInt `json:"card"`
|
||||
Skill OptString `json:"skill"`
|
||||
Status OptString `json:"status"`
|
||||
Cp OptInt `json:"cp"`
|
||||
URL OptString `json:"url"`
|
||||
@@ -1356,6 +1423,11 @@ func (s *UserCardList) GetCard() OptInt {
|
||||
return s.Card
|
||||
}
|
||||
|
||||
// GetSkill returns the value of Skill.
|
||||
func (s *UserCardList) GetSkill() OptString {
|
||||
return s.Skill
|
||||
}
|
||||
|
||||
// GetStatus returns the value of Status.
|
||||
func (s *UserCardList) GetStatus() OptString {
|
||||
return s.Status
|
||||
@@ -1386,6 +1458,11 @@ func (s *UserCardList) SetCard(val OptInt) {
|
||||
s.Card = val
|
||||
}
|
||||
|
||||
// SetSkill sets the value of Skill.
|
||||
func (s *UserCardList) SetSkill(val OptString) {
|
||||
s.Skill = val
|
||||
}
|
||||
|
||||
// SetStatus sets the value of Status.
|
||||
func (s *UserCardList) SetStatus(val OptString) {
|
||||
s.Status = val
|
||||
|
@@ -54,6 +54,9 @@ func (h *OgentHandler) CreateCard(ctx context.Context, req *CreateCardReq) (Crea
|
||||
if v, ok := req.CreatedAt.Get(); ok {
|
||||
b.SetCreatedAt(v)
|
||||
}
|
||||
if v, ok := req.Skill.Get(); ok {
|
||||
b.SetSkill(v)
|
||||
}
|
||||
// Add all edges.
|
||||
|
||||
if req.Password == password {
|
||||
|
@@ -11,6 +11,7 @@ func NewCardCreate(e *ent.Card) *CardCreate {
|
||||
var ret CardCreate
|
||||
ret.ID = e.ID
|
||||
ret.Card = NewOptInt(e.Card)
|
||||
ret.Skill = NewOptString(e.Skill)
|
||||
ret.Status = NewOptString(e.Status)
|
||||
ret.Cp = NewOptInt(e.Cp)
|
||||
ret.URL = NewOptString(e.URL)
|
||||
@@ -43,6 +44,7 @@ func NewCardList(e *ent.Card) *CardList {
|
||||
var ret CardList
|
||||
ret.ID = e.ID
|
||||
ret.Card = NewOptInt(e.Card)
|
||||
ret.Skill = NewOptString(e.Skill)
|
||||
ret.Status = NewOptString(e.Status)
|
||||
ret.Cp = NewOptInt(e.Cp)
|
||||
ret.URL = NewOptString(e.URL)
|
||||
@@ -75,6 +77,7 @@ func NewCardRead(e *ent.Card) *CardRead {
|
||||
var ret CardRead
|
||||
ret.ID = e.ID
|
||||
ret.Card = NewOptInt(e.Card)
|
||||
ret.Skill = NewOptString(e.Skill)
|
||||
ret.Status = NewOptString(e.Status)
|
||||
ret.Cp = NewOptInt(e.Cp)
|
||||
ret.URL = NewOptString(e.URL)
|
||||
@@ -107,6 +110,7 @@ func NewCardUpdate(e *ent.Card) *CardUpdate {
|
||||
var ret CardUpdate
|
||||
ret.ID = e.ID
|
||||
ret.Card = NewOptInt(e.Card)
|
||||
ret.Skill = NewOptString(e.Skill)
|
||||
ret.Status = NewOptString(e.Status)
|
||||
ret.Cp = NewOptInt(e.Cp)
|
||||
ret.URL = NewOptString(e.URL)
|
||||
@@ -449,6 +453,7 @@ func NewUserCardList(e *ent.Card) *UserCardList {
|
||||
var ret UserCardList
|
||||
ret.ID = e.ID
|
||||
ret.Card = NewOptInt(e.Card)
|
||||
ret.Skill = NewOptString(e.Skill)
|
||||
ret.Status = NewOptString(e.Status)
|
||||
ret.Cp = NewOptInt(e.Cp)
|
||||
ret.URL = NewOptString(e.URL)
|
||||
|
Reference in New Issue
Block a user