feat: remove doc && update json tag
This commit is contained in:
384
define.go
384
define.go
@ -9,474 +9,294 @@ package wrapper
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"git.zhangdeman.cn/zhangdeman/op_type"
|
||||
)
|
||||
|
||||
// BaseTypeValueResult 基础类型结果
|
||||
type BaseTypeValueResult[BaseType op_type.BaseType] struct {
|
||||
Value BaseType `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Int8Result ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:25 2023/5/8
|
||||
type Int8Result struct {
|
||||
Value int8
|
||||
Err error
|
||||
Value int8 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Int8PtrResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 18:05 2023/5/15
|
||||
type Int8PtrResult struct {
|
||||
Value *int8
|
||||
Err error
|
||||
Value *int8 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Int16Result ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:26 2023/5/8
|
||||
type Int16Result struct {
|
||||
Value int16
|
||||
Err error
|
||||
Value int16 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Int16PtrResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 18:05 2023/5/15
|
||||
type Int16PtrResult struct {
|
||||
Value *int16
|
||||
Err error
|
||||
Value *int16 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Int32Result ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:26 2023/5/8
|
||||
type Int32Result struct {
|
||||
Value int32
|
||||
Err error
|
||||
Value int32 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Int32PtrResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 18:04 2023/5/15
|
||||
type Int32PtrResult struct {
|
||||
Value *int32
|
||||
Err error
|
||||
Value *int32 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Int64Result ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:26 2023/5/8
|
||||
type Int64Result struct {
|
||||
Value int64
|
||||
Err error
|
||||
Value int64 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Int64PtrResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 18:04 2023/5/15
|
||||
type Int64PtrResult struct {
|
||||
Value *int64
|
||||
Err error
|
||||
Value *int64 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// IntResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:26 2023/5/8
|
||||
type IntResult struct {
|
||||
Value int
|
||||
Err error
|
||||
Value int `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// IntPtrResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 17:51 2023/5/15
|
||||
type IntPtrResult struct {
|
||||
Value *int
|
||||
Err error
|
||||
Value *int `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Uint8Result ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:28 2023/5/8
|
||||
type Uint8Result struct {
|
||||
Value uint8
|
||||
Err error
|
||||
Value uint8 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Uint8PtrResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 10:49 2023/5/16
|
||||
type Uint8PtrResult struct {
|
||||
Value *uint8
|
||||
Err error
|
||||
Value *uint8 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Uint16Result ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:28 2023/5/8
|
||||
type Uint16Result struct {
|
||||
Value uint16
|
||||
Err error
|
||||
Value uint16 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Uint16PtrResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 10:49 2023/5/16
|
||||
type Uint16PtrResult struct {
|
||||
Value *uint16
|
||||
Err error
|
||||
Value *uint16 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Uint32Result ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:28 2023/5/8
|
||||
type Uint32Result struct {
|
||||
Value uint32
|
||||
Err error
|
||||
Value uint32 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Uint32PtrResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 10:49 2023/5/16
|
||||
type Uint32PtrResult struct {
|
||||
Value *uint32
|
||||
Err error
|
||||
Value *uint32 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Uint64Result ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:28 2023/5/8
|
||||
type Uint64Result struct {
|
||||
Value uint64
|
||||
Err error
|
||||
Value uint64 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Uint64PtrResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 10:50 2023/5/16
|
||||
type Uint64PtrResult struct {
|
||||
Value *uint64
|
||||
Err error
|
||||
Value *uint64 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// UintResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:29 2023/5/8
|
||||
type UintResult struct {
|
||||
Value uint
|
||||
Err error
|
||||
Value uint `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// UintPtrResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 10:51 2023/5/16
|
||||
type UintPtrResult struct {
|
||||
Value *uint
|
||||
Err error
|
||||
Value *uint `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Float32Result ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:31 2023/5/8
|
||||
type Float32Result struct {
|
||||
Value float32
|
||||
Err error
|
||||
Value float32 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Float32PtrResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 11:10 2023/5/16
|
||||
type Float32PtrResult struct {
|
||||
Value *float32
|
||||
Err error
|
||||
Value *float32 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Float64Result ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:32 2023/5/8
|
||||
type Float64Result struct {
|
||||
Value float64
|
||||
Err error
|
||||
Value float64 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Float64PtrResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 10:52 2023/5/16
|
||||
type Float64PtrResult struct {
|
||||
Value *float64
|
||||
Err error
|
||||
Value *float64 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Any ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:40 2023/5/8
|
||||
type Any struct {
|
||||
Value any
|
||||
Err error
|
||||
Value any `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// BoolResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:36 2023/5/8
|
||||
type BoolResult struct {
|
||||
Value bool
|
||||
Err error
|
||||
Value bool `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// BoolPtrResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 10:53 2023/5/16
|
||||
type BoolPtrResult struct {
|
||||
Value *bool
|
||||
Err error
|
||||
Value *bool `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// ObjectResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:38 2023/5/8
|
||||
type ObjectResult struct {
|
||||
Value map[string]any
|
||||
Err error
|
||||
Value map[string]any `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// StringResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:57 2023/5/8
|
||||
type StringResult struct {
|
||||
Value string
|
||||
Err error
|
||||
Value string `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// StringPtrResult 字符串指针
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 18:02 2023/5/15
|
||||
type StringPtrResult struct {
|
||||
Value *string
|
||||
Err error
|
||||
Value *string `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Int8SliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 17:49 2023/5/8
|
||||
type Int8SliceResult struct {
|
||||
Value []int8
|
||||
Err error
|
||||
Value []int8 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Int16SliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 17:49 2023/5/8
|
||||
type Int16SliceResult struct {
|
||||
Value []int16
|
||||
Err error
|
||||
Value []int16 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Int32SliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 17:50 2023/5/8
|
||||
type Int32SliceResult struct {
|
||||
Value []int32
|
||||
Err error
|
||||
Value []int32 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Int64SliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 17:50 2023/5/8
|
||||
type Int64SliceResult struct {
|
||||
Value []int64
|
||||
Err error
|
||||
Value []int64 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// IntSliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 17:50 2023/5/8
|
||||
type IntSliceResult struct {
|
||||
Value []int
|
||||
Err error
|
||||
Value []int `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Uint8SliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 17:55 2023/5/8
|
||||
type Uint8SliceResult struct {
|
||||
Value []uint8
|
||||
Err error
|
||||
Value []uint8 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Uint16SliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 17:55 2023/5/8
|
||||
type Uint16SliceResult struct {
|
||||
Value []uint16
|
||||
Err error
|
||||
Value []uint16 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Uint32SliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 17:55 2023/5/8
|
||||
type Uint32SliceResult struct {
|
||||
Value []uint32
|
||||
Err error
|
||||
Value []uint32 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Uint64SliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 17:55 2023/5/8
|
||||
type Uint64SliceResult struct {
|
||||
Value []uint64
|
||||
Err error
|
||||
Value []uint64 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// UintSliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 17:56 2023/5/8
|
||||
type UintSliceResult struct {
|
||||
Value []uint
|
||||
Err error
|
||||
Value []uint `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// BoolSliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 18:22 2023/5/8
|
||||
type BoolSliceResult struct {
|
||||
Value []bool
|
||||
Err error
|
||||
Value []bool `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Float32SliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 18:24 2023/5/8
|
||||
type Float32SliceResult struct {
|
||||
Value []float32
|
||||
Err error
|
||||
Value []float32 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// Float64SliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 18:24 2023/5/8
|
||||
type Float64SliceResult struct {
|
||||
Value []float64
|
||||
Err error
|
||||
Value []float64 `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// DurationResult 时间转换结果
|
||||
//
|
||||
// Author : zhangdeman001@ke.com<张德满>
|
||||
//
|
||||
// Date : 20:32 2023/9/4
|
||||
type DurationResult struct {
|
||||
Value time.Duration
|
||||
Err error
|
||||
Value time.Duration `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// StringSliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 15:11 2023/8/6
|
||||
type StringSliceResult struct {
|
||||
Value []string
|
||||
Err error
|
||||
Value []string `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// MapResult 转map的结果
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:05 2023/8/10
|
||||
type MapResult struct {
|
||||
Value Map
|
||||
Err error
|
||||
Value Map `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
||||
// AnySliceResult ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 18:28 2023/5/8
|
||||
type AnySliceResult struct {
|
||||
Value []any
|
||||
Err error
|
||||
Value []any `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user