协议更新

This commit is contained in:
hahwu 2026-04-10 17:18:14 +08:00
parent 1d4baca598
commit 5e33548606
2 changed files with 89 additions and 0 deletions

View File

@ -10255,11 +10255,13 @@ func (p *ForceKickOut) Validate() error {
// - Id
// - Type
// - Items
// - Uid
//
type FriendBubbleInfo struct {
Id int32 `thrift:"Id,1" db:"Id" json:"Id"`
Type int32 `thrift:"Type,2" db:"Type" json:"Type"`
Items []*ItemInfo `thrift:"Items,3" db:"Items" json:"Items"`
Uid int64 `thrift:"Uid,4" db:"Uid" json:"Uid"`
}
func NewFriendBubbleInfo() *FriendBubbleInfo {
@ -10278,6 +10280,10 @@ func (p *FriendBubbleInfo) GetItems() []*ItemInfo {
return p.Items
}
func (p *FriendBubbleInfo) GetUid() int64 {
return p.Uid
}
func (p *FriendBubbleInfo) Read(ctx context.Context, iprot thrift.TProtocol) error {
if _, err := iprot.ReadStructBegin(ctx); err != nil {
return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
@ -10322,6 +10328,16 @@ func (p *FriendBubbleInfo) Read(ctx context.Context, iprot thrift.TProtocol) err
return err
}
}
case 4:
if fieldTypeId == thrift.I64 {
if err := p.ReadField4(ctx, iprot); err != nil {
return err
}
} else {
if err := iprot.Skip(ctx, fieldTypeId); err != nil {
return err
}
}
default:
if err := iprot.Skip(ctx, fieldTypeId); err != nil {
return err
@ -10375,6 +10391,15 @@ func (p *FriendBubbleInfo) ReadField3(ctx context.Context, iprot thrift.TProtoco
return nil
}
func (p *FriendBubbleInfo) ReadField4(ctx context.Context, iprot thrift.TProtocol) error {
if v, err := iprot.ReadI64(ctx); err != nil {
return thrift.PrependError("error reading field 4: ", err)
} else {
p.Uid = v
}
return nil
}
func (p *FriendBubbleInfo) Write(ctx context.Context, oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin(ctx, "FriendBubbleInfo"); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
@ -10389,6 +10414,9 @@ func (p *FriendBubbleInfo) Write(ctx context.Context, oprot thrift.TProtocol) er
if err := p.writeField3(ctx, oprot); err != nil {
return err
}
if err := p.writeField4(ctx, oprot); err != nil {
return err
}
}
if err := oprot.WriteFieldStop(ctx); err != nil {
return thrift.PrependError("write field stop error: ", err)
@ -10446,6 +10474,19 @@ func (p *FriendBubbleInfo) writeField3(ctx context.Context, oprot thrift.TProtoc
return err
}
func (p *FriendBubbleInfo) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) {
if err := oprot.WriteFieldBegin(ctx, "Uid", thrift.I64, 4); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:Uid: ", p), err)
}
if err := oprot.WriteI64(ctx, int64(p.Uid)); err != nil {
return thrift.PrependError(fmt.Sprintf("%T.Uid (4) field write error: ", p), err)
}
if err := oprot.WriteFieldEnd(ctx); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write field end error 4:Uid: ", p), err)
}
return err
}
func (p *FriendBubbleInfo) Equals(other *FriendBubbleInfo) bool {
if p == other {
return true
@ -10467,6 +10508,9 @@ func (p *FriendBubbleInfo) Equals(other *FriendBubbleInfo) bool {
return false
}
}
if p.Uid != other.Uid {
return false
}
return true
}
@ -86747,6 +86791,7 @@ func (p *ResPlayerProfileData) Validate() error {
// - FurSet
// - Last
// - PetName
// - Rank
//
type ResPlayerRank struct {
Uid int64 `thrift:"Uid,1" db:"Uid" json:"Uid"`
@ -86761,6 +86806,7 @@ type ResPlayerRank struct {
FurSet int32 `thrift:"FurSet,10" db:"FurSet" json:"FurSet"`
Last *ActLog `thrift:"Last,11" db:"Last" json:"Last"`
PetName string `thrift:"PetName,12" db:"PetName" json:"PetName"`
Rank int32 `thrift:"Rank,13" db:"Rank" json:"Rank"`
}
func NewResPlayerRank() *ResPlayerRank {
@ -86820,6 +86866,10 @@ func (p *ResPlayerRank) GetPetName() string {
return p.PetName
}
func (p *ResPlayerRank) GetRank() int32 {
return p.Rank
}
func (p *ResPlayerRank) IsSetLast() bool {
return p.Last != nil
}
@ -86958,6 +87008,16 @@ func (p *ResPlayerRank) Read(ctx context.Context, iprot thrift.TProtocol) error
return err
}
}
case 13:
if fieldTypeId == thrift.I32 {
if err := p.ReadField13(ctx, iprot); err != nil {
return err
}
} else {
if err := iprot.Skip(ctx, fieldTypeId); err != nil {
return err
}
}
default:
if err := iprot.Skip(ctx, fieldTypeId); err != nil {
return err
@ -87118,6 +87178,15 @@ func (p *ResPlayerRank) ReadField12(ctx context.Context, iprot thrift.TProtocol)
return nil
}
func (p *ResPlayerRank) ReadField13(ctx context.Context, iprot thrift.TProtocol) error {
if v, err := iprot.ReadI32(ctx); err != nil {
return thrift.PrependError("error reading field 13: ", err)
} else {
p.Rank = v
}
return nil
}
func (p *ResPlayerRank) Write(ctx context.Context, oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin(ctx, "ResPlayerRank"); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
@ -87159,6 +87228,9 @@ func (p *ResPlayerRank) Write(ctx context.Context, oprot thrift.TProtocol) error
if err := p.writeField12(ctx, oprot); err != nil {
return err
}
if err := p.writeField13(ctx, oprot); err != nil {
return err
}
}
if err := oprot.WriteFieldStop(ctx); err != nil {
return thrift.PrependError("write field stop error: ", err)
@ -87347,6 +87419,19 @@ func (p *ResPlayerRank) writeField12(ctx context.Context, oprot thrift.TProtocol
return err
}
func (p *ResPlayerRank) writeField13(ctx context.Context, oprot thrift.TProtocol) (err error) {
if err := oprot.WriteFieldBegin(ctx, "Rank", thrift.I32, 13); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write field begin error 13:Rank: ", p), err)
}
if err := oprot.WriteI32(ctx, int32(p.Rank)); err != nil {
return thrift.PrependError(fmt.Sprintf("%T.Rank (13) field write error: ", p), err)
}
if err := oprot.WriteFieldEnd(ctx); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write field end error 13:Rank: ", p), err)
}
return err
}
func (p *ResPlayerRank) Equals(other *ResPlayerRank) bool {
if p == other {
return true
@ -87401,6 +87486,9 @@ func (p *ResPlayerRank) Equals(other *ResPlayerRank) bool {
if p.PetName != other.PetName {
return false
}
if p.Rank != other.Rank {
return false
}
return true
}

View File

@ -310,6 +310,7 @@ struct FriendBubbleInfo {
1: i32 Id,
2: i32 Type,
3: list<ItemInfo> Items,
4: i64 Uid,
}