refactor(rpc): 更新结构体标签以跳过特定字段序列化

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

View File

@@ -14,11 +14,11 @@ type TomeeHeader struct {
Version byte `json:"version" struc:"[1]byte"`
CMD uint32 `json:"cmdId" struc:"uint32"`
UserID uint32 `json:"userId"`
//Error uint32 `json:"error" struc:"[0]pad"`
//Error uint32 `json:"error" struc:"skip"`
Result uint32 `json:"result"`
Data []byte `json:"data" struc:"skip"` //组包忽略此字段// struc:"[0]pad"
//Return []byte `struc:"[0]pad"` //返回记录
Data []byte `json:"data" struc:"skip"` //组包忽略此字段// struc:"skip"
//Return []byte `struc:"skip"` //返回记录
}
func NewTomeeHeader(cmd uint32, userid uint32) *TomeeHeader {