refactor(rpc): 更新结构体标签以跳过特定字段序列化 将多个结构体中的 `struc:"[0]pad"` 标签更改为 `struc:"skip"`, 以避免在序列化过程中处理不必要的填充字段。同时新增放生与领回相关逻辑, 并完善部分控制器函数和消息结构定义。 ```
26 lines
1.1 KiB
Go
26 lines
1.1 KiB
Go
package item
|
||
|
||
import "blazing/logic/service/common"
|
||
|
||
type TalkCountInboundInfo struct {
|
||
Head common.TomeeHeader `cmd:"2701" struc:"skip"`
|
||
ID uint32 `description:"奖品的Type, 即ID" codec:"uint"` // @UInt long -> uint64,字段描述对应@FieldDescription
|
||
}
|
||
type TalkCountOutboundInfo struct {
|
||
GiftCount uint32 `description:"已领取奖励的次数" codec:"uint"` // @UInt long -> uint64,字段描述对应@FieldDescription
|
||
}
|
||
type TalkCateInboundInfo struct {
|
||
Head common.TomeeHeader `cmd:"2702" struc:"skip"`
|
||
ID uint32 `description:"奖品的Type, 即ID" codec:"uint"` // @UInt long -> uint64,字段描述对应@FieldDescription
|
||
}
|
||
type DayTalkInfo struct {
|
||
CateList uint32 `description:"要序列list数量字段 只序列数量 结构体数据给null"` // 对应Java的cateList
|
||
OutListLen uint32 `struc:"sizeof=OutList"`
|
||
OutList []CateInfo `description:"实际发放奖励使用的是outlist"` // 对应Java的outList
|
||
}
|
||
type CateInfo struct {
|
||
// 示例字段,需替换为实际定义
|
||
ID uint32
|
||
Count uint32
|
||
}
|