feat: 字符串转struct slice
This commit is contained in:
@ -38,3 +38,15 @@ type BaseValueSliceResult[BaseType op_type.BaseType] struct {
|
||||
Value []BaseType `json:"value"` // 转换结果
|
||||
Err error `json:"err"` // 错误信息
|
||||
}
|
||||
|
||||
// MapValueSliceResult map类型切片转换结果
|
||||
type MapValueSliceResult[Key comparable, Value any] struct {
|
||||
Value []map[Key]Value `json:"value"` // 转换结果
|
||||
Err error `json:"err"` // 错误信息
|
||||
}
|
||||
|
||||
// StructValueSliceResult struct类型切片转换结果
|
||||
type StructValueSliceResult[Value any] struct {
|
||||
Value []Value `json:"value"` // 转换结果
|
||||
Err error `json:"err"` // 错误信息
|
||||
}
|
||||
|
Reference in New Issue
Block a user