Files
bl/logic/service/friend/friend.go
昔念 50232339d9 ```
refactor(rpc): 更新结构体标签以跳过特定字段序列化

将多个结构体中的 `struc:"[0]pad"` 标签更改为 `struc:"skip"`,
以避免在序列化过程中处理不必要的填充字段。同时新增放生与领回相关逻辑,
并完善部分控制器函数和消息结构定义。
```
2025-11-24 11:56:20 +08:00

23 lines
630 B
Go

package friend
import "blazing/logic/service/common"
//基地查看好友列表
type SeeOnlineInboundInfo struct {
Head common.TomeeHeader `cmd:"2157" struc:"skip"`
UserIdsLen uint32 `json:"userIdsLen" struc:"sizeof=UserIds"`
UserIds []uint32 `json:"userIds" `
}
type OnlineInfo struct {
UserId uint32 `json:"userId" `
ServerId uint32 `json:"serverId" `
MapType uint32 `json:"mapType" `
MapId uint32 `json:"mapId" `
}
type SeeOnlineOutboundInfo struct {
FriendsLen uint32 `json:"friendsLen" struc:"sizeof=Friends"`
Friends []OnlineInfo `json:"friends" fieldDescription:"好友在线列表" `
}