// Package define ... // // Description : define ... // // Author : go_developer@163.com<白茶清欢> // // Date : 2025-10-13 11:22 package define import "git.zhangdeman.cn/zhangdeman/op_type" // BaseValueResult 基础类型转换结果 type BaseValueResult[BaseType op_type.BaseType] struct { Value BaseType `json:"value"` // 转换结果 Err error `json:"err"` // 错误信息 } // BaseValuePtrResult 基础类型指针转换结果 type BaseValuePtrResult[BaseType op_type.BaseType] struct { Value *BaseType `json:"value"` // 转换结果 Err error `json:"err"` // 错误信息 } // MapValueResult map类型转换结果 type MapValueResult[Key comparable, Value any] struct { Value map[Key]Value `json:"value"` // 转换结果 Err error `json:"err"` // 错误信息 } // StructValueResult struct类型转换结果 type StructValueResult[Value any] struct { Value Value `json:"value"` // 转换结果 Err error `json:"err"` // 错误信息 } // BaseValueSliceResult 基础类型切片转换结果 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"` // 错误信息 }