2 Star 0 Fork 0

nextcyber/go-next-result

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
result.go 993 Bytes
Copy Edit Raw Blame History
wvkity authored 2024-01-19 23:54 +08:00 . - 修改Brief中的timestamp属性数据类型
package res
// Result 结果集接口
type Result interface {
Error
Response
}
// MapResult 数据结果集
type MapResult[K DRKey, V any] interface {
// Get 根据key获取值
//
// @param key 键
Get(key K) V
// Put 添加值
//
// @param key 键
//
// @param value 值
Put(key K, value V)
// PutIfAbsent 添加值
//
// @param key 键
//
// @param value 值
PutIfAbsent(key K, value V)
// PutAll 添加多个值
//
// @param data map值
PutAll(data map[K]V)
// PutAllIfAbsent 添加多个值
//
// @param data map值
PutAllIfAbsent(data map[K]V)
// Remove 根据指定键移除值
//
// @param key 键
Remove(key K)
// Clear 清空数据
Clear()
// ContainsKey 检查是否包含指定的键
//
// @param key 键
ContainsKey(key K) bool
// ContainsValue 检查是否包含指定的值
//
// @param value 值
ContainsValue(value V) bool
// GetSize 获取元素个数
GetSize() int
// IsEmpty 检查是否存在数据
IsEmpty() bool
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/nextcyber/go-next-result.git
git@gitee.com:nextcyber/go-next-result.git
nextcyber
go-next-result
go-next-result
47b8d5d30115

Search