func (p *User) writeField15(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("Index", thrift.I32, 15); err != nil { return fmt.Errorf("%T write field begin error 15:Index: %s", p, err) } if err := oprot.WriteI32(int32(p.Index)); err != nil { return fmt.Errorf("%T.Index (15) field write error: %s", p, err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 15:Index: %s", p, err) } return err }
func (p *User) writeField11(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("Status", thrift.I32, 11); err != nil { return fmt.Errorf("%T write field begin error 11:Status: %s", p, err) } if err := oprot.WriteI32(int32(p.Status)); err != nil { return fmt.Errorf("%T.Status (11) field write error: %s", p, err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 11:Status: %s", p, err) } return err }