Compare commits
No commits in common. "feature/shard" and "master" have entirely different histories.
feature/sh
...
master
@ -1,16 +0,0 @@
|
|||||||
// Package abstract ...
|
|
||||||
//
|
|
||||||
// Description : abstract ...
|
|
||||||
//
|
|
||||||
// Author : go_developer@163.com<白茶清欢>
|
|
||||||
//
|
|
||||||
// Date : 2025-06-21 15:20
|
|
||||||
package abstract
|
|
||||||
|
|
||||||
// IShardStrategy 自定义数据分片策略
|
|
||||||
type IShardStrategy interface {
|
|
||||||
// ShardField 按照哪些字段分表
|
|
||||||
ShardField() []string
|
|
||||||
// Calculate 计算分片值
|
|
||||||
Calculate(inputData map[string]any) (int, error)
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user