feat: 增加map类型转换

This commit is contained in:
2025-10-13 12:52:01 +08:00
parent 059830d87d
commit 2100caa5e4
5 changed files with 73 additions and 2 deletions

View File

@ -20,3 +20,9 @@ type BaseValuePtrResult[BaseType op_type.BaseType] struct {
Value *BaseType `json:"result"` // 转换结果
Err error `json:"err"` // 错误信息
}
// MapValueResult map类型转换结果
type MapValueResult[Key comparable, Value comparable] struct {
Value map[Key]Value `json:"result"` // 转换结果
Err error `json:"err"` // 错误信息
}