升级接口约束

This commit is contained in:
2025-05-04 13:59:08 +08:00
parent 0c3d7b7e92
commit 8d68e6106e
7 changed files with 22 additions and 4 deletions

View File

@ -15,6 +15,8 @@ import "io"
//
// Date : 16:55 2024/10/23
type Serializable interface {
// Unmarshal 反序列化
Unmarshal(byteData []byte, receiver any) error
// UnmarshalWithNumber 反序列化,同时解析数字
UnmarshalWithNumber(byteData []byte, receiver any) error
// UnmarshalWithNumberIgnoreError 反序列化,同时解析数字, 忽略结果的成功与失败